Documentation ¶
Index ¶
- Variables
- func DisableService(name string) error
- func EnableService(nameOrPath string) error
- func IsServiceEnabled(name string) (bool, error)
- func IsServiceRunning(name string) (bool, error)
- func ReloadDaemon() error
- func StartService(name string) error
- func StopService(name string) error
- type Service
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // `done` indicates successful execution of a job. ResultDone = "done" // `canceled` indicates that a job has been canceled before it finished execution. ResultCanceled = "canceled" ErrorCanceled = errors.New("job has been canceled before it finished execution") // `timeout` indicates that the job timeout was reached. ResultTimeout = "timeout" ErrorTimeout = errors.New("job timeout was reached") // `failed` indicates that the job failed. ResultFailed = "failed" ErrorFailed = errors.New("job failed") // `dependency` indicates that a job this job has been depending on failed and the job hence has been removed too. ResultDependency = "dependency" ErrorDependency = errors.New("another job this job has been depending on failed and the job hence has been removed too") // `skipped` indicates that a job was skipped because it didn't apply to the units current state. ResultSkipped = "skipped" ErrorSkipped = errors.New("job was skipped because it didn't apply to the units current state") ErrorMap = map[string]error{ ResultDone: nil, ResultCanceled: ErrorCanceled, ResultTimeout: ErrorTimeout, ResultFailed: ErrorFailed, ResultDependency: ErrorDependency, ResultSkipped: ErrorSkipped, } ErrorUnknown = errors.New("unknown error") )
Functions ¶
func DisableService ¶
func EnableService ¶
func IsServiceEnabled ¶
func IsServiceRunning ¶
func ReloadDaemon ¶ added in v0.4.0
func ReloadDaemon() error
func StartService ¶ added in v0.4.0
func StopService ¶ added in v0.4.0
Types ¶
Click to show internal directories.
Click to hide internal directories.