Documentation ¶
Index ¶
- type Darwin
- func (c Darwin) DaemonReload() error
- func (c Darwin) DisableService(s string) error
- func (c Darwin) EnableService(s string) error
- func (c Darwin) InstallPackage(s ...string) error
- func (c Darwin) Kind() string
- func (c Darwin) RestartService(s string) error
- func (c Darwin) ServiceIsRunning(s string) bool
- func (c Darwin) ServiceScriptPath(s string) (string, error)
- func (c Darwin) StartService(s string) error
- func (c Darwin) StopService(s string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Darwin ¶
Darwin provides OS support for macOS Darwin
func (Darwin) DaemonReload ¶
DaemonReload reloads init system configuration
func (Darwin) DisableService ¶
DisableService disables a a service
func (Darwin) EnableService ¶
EnableService enables a a service
func (Darwin) InstallPackage ¶
InstallPackage installs a package using brew
func (Darwin) RestartService ¶
RestartService restarts a a service
func (Darwin) ServiceIsRunning ¶
ServiceIsRunning returns true if a service is running
func (Darwin) ServiceScriptPath ¶
ServiceScriptPath returns the path to a service configuration file
func (Darwin) StartService ¶
StartService starts a a service
func (Darwin) StopService ¶
StopService stops a a service
Click to show internal directories.
Click to hide internal directories.