Documentation ¶
Overview ¶
Package darwin provides a configurer for macOS
Index ¶
- Variables
- type Darwin
- func (c Darwin) DaemonReload(_ os.Host) error
- func (c Darwin) DisableService(h os.Host, s string) error
- func (c Darwin) EnableService(h os.Host, s string) error
- func (c Darwin) InstallPackage(h os.Host, s ...string) error
- func (c Darwin) Kind() string
- func (c Darwin) RestartService(h os.Host, s string) error
- func (c Darwin) ServiceIsRunning(h os.Host, s string) bool
- func (c Darwin) ServiceScriptPath(_ string) (string, error)
- func (c Darwin) StartService(h os.Host, s string) error
- func (c Darwin) Stat(h os.Host, path string, opts ...exec.Option) (*os.FileInfo, error)
- func (c Darwin) StopService(h os.Host, s string) error
- func (c Darwin) Touch(h os.Host, path string, ts time.Time, opts ...exec.Option) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not implemented")
ErrNotImplemented is returned when a method is not implemented
Functions ¶
This section is empty.
Types ¶
type Darwin ¶
Darwin provides OS support for macOS Darwin
func (Darwin) DaemonReload ¶
DaemonReload reloads init system configuration -- does nothing on darwin
func (Darwin) DisableService ¶
DisableService disables a service
func (Darwin) EnableService ¶
EnableService enables a service
func (Darwin) InstallPackage ¶
InstallPackage installs a package using brew
func (Darwin) RestartService ¶
RestartService restarts 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 service
func (Darwin) StopService ¶
StopService stops a service
Click to show internal directories.
Click to hide internal directories.