| 13 | ) |
| 14 | |
| 15 | type Controller interface { |
| 16 | Name() string |
| 17 | IsActive(serviceName string) (bool, error) |
| 18 | IsEnable(serviceName string) (bool, error) |
| 19 | IsExist(serviceName string) (bool, error) |
| 20 | Status(serviceName string) (string, error) |
| 21 | |
| 22 | Operate(operate, serviceName string) error |
| 23 | |
| 24 | Reload() error |
| 25 | } |
| 26 | |
| 27 | func New() (Controller, error) { |
| 28 | managerOptions := []string{"systemctl", "rc-service", "service"} |
nothing calls this directly
no outgoing calls
no test coverage detected