Documentation ¶
Index ¶
- func Install(plist Plist) (err error)
- func Restart(label string) error
- func ShowServices(filter string, name string) (err error)
- func ShowStatus(label string) error
- func Start(label string) error
- func Stop(label string) error
- func Uninstall(label string) error
- type Plist
- type Service
- type ServiceStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowServices ¶
ShowServices ouputs keybase service info.
Types ¶
type Plist ¶
type Plist struct {
// contains filtered or unexported fields
}
Plist defines a launchd plist
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service defines a service
func ListServices ¶
ListServices will return service with label containing the filter string.
func (Service) Status ¶
func (s Service) Status() (*ServiceStatus, error)
Status returns service status
func (Service) StatusDescription ¶
StatusDescription returns the service status description
type ServiceStatus ¶
type ServiceStatus struct {
// contains filtered or unexported fields
}
ServiceStatus defines status for a service
func (ServiceStatus) Description ¶
func (s ServiceStatus) Description() string
Description returns service status info
func (ServiceStatus) IsRunning ¶
func (s ServiceStatus) IsRunning() bool
IsRunning is true if the service is running (with a pid)
func (ServiceStatus) Pid ¶
func (s ServiceStatus) Pid() string
Pid for status (empty string if not running)
Click to show internal directories.
Click to hide internal directories.