stubbs out errors, adds mask and unmask to scope

This commit is contained in:
Tai Groot
2021-05-14 14:46:38 -07:00
parent 50f85eb623
commit 7762c3af12
3 changed files with 27 additions and 0 deletions

14
errors.go Normal file
View File

@@ -0,0 +1,14 @@
package systemctl
import (
"errors"
)
var (
// ErrSystemctlNotInstalled means that upon trying to manually locate systemctl in the user's path,
// it was not found. If this error occurs, the library isn't entirely useful.
ErrNotInstalled = errors.New("systemd binary was not found")
// ErrExecTimeout means that the provided context was done before the command finished execution.
ErrExecTimeout = errors.New("command timed out")
)