Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // Review all configuration and start services as necessary Reload() error // Start a service Start(string) error // Stop a service Stop(string) error }
Interface abstracts out the supervisor. This will eventually encapsulate all of systemd, launchd etc configuration and management.
type Mock ¶
type Mock struct { Reloads uint Starts map[string]uint Stops map[string]uint // contains filtered or unexported fields }
Mock mocks the supervisor
func (*Mock) ErrorNext ¶
ErrorNext sets the error for the next call to return. The error is cleared after returning the error the first time.
Click to show internal directories.
Click to hide internal directories.