Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Unknown when we failed to find out. Unknown installState = iota // NotInstalled means launchd has never heard of the service. NotInstalled // PlistPresentButNotLoaded means the file exists but hasn't been registered. PlistPresentButNotLoaded // Installed means everything is good, the service is properly registered. Installed )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Install ¶
type Install struct {
// contains filtered or unexported fields
}
Install describes the current installation state of a launchd service.
func NewInstall ¶
func NewInstall(svc Installable) *Install
NewInstall computes and returns the installation state for a service.
func (*Install) Err ¶
Err is a description of the error encountered while computing the state, if any.
type Installable ¶
Installable is the interface we depend on to determine install state.
type Run ¶
type Run struct {
// contains filtered or unexported fields
}
Run describes the current runtime state of a launchd service.
Click to show internal directories.
Click to hide internal directories.