| 1 | //go:build !linux && !darwin && !windows |
| 2 | |
| 3 | package service |
| 4 | |
| 5 | import ( |
| 6 | "context" |
| 7 | "errors" |
| 8 | ) |
| 9 | |
| 10 | func Install(context.Context, Definition) error { |
| 11 | return errors.New("portal agent service install is not supported on this OS") |
| 12 | } |
| 13 | |
| 14 | func Start(context.Context, string) error { |
| 15 | return errors.New("portal agent service start is not supported on this OS") |
| 16 | } |
| 17 | |
| 18 | func Stop(context.Context, string) error { |
| 19 | return errors.New("portal agent service stop is not supported on this OS") |
| 20 | } |
| 21 | |
| 22 | func StopDisable(context.Context, string) error { |
| 23 | return errors.New("portal agent service stop is not supported on this OS") |
| 24 | } |
| 25 | |
| 26 | func Run(ctx context.Context, name string, run func(context.Context) error) error { |
| 27 | return run(ctx) |
| 28 | } |