darwin

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Darwin

type Darwin struct {
	os.Linux
}

Darwin provides OS support for macOS Darwin

func (Darwin) DaemonReload

func (c Darwin) DaemonReload() error

DaemonReload reloads init system configuration

func (Darwin) DisableService

func (c Darwin) DisableService(s string) error

DisableService disables a a service

func (Darwin) EnableService

func (c Darwin) EnableService(s string) error

EnableService enables a a service

func (Darwin) InstallPackage

func (c Darwin) InstallPackage(s ...string) error

InstallPackage installs a package using brew

func (Darwin) Kind

func (c Darwin) Kind() string

Kind returns "darwin"

func (Darwin) RestartService

func (c Darwin) RestartService(s string) error

RestartService restarts a a service

func (Darwin) ServiceIsRunning

func (c Darwin) ServiceIsRunning(s string) bool

ServiceIsRunning returns true if a service is running

func (Darwin) ServiceScriptPath

func (c Darwin) ServiceScriptPath(s string) (string, error)

ServiceScriptPath returns the path to a service configuration file

func (Darwin) StartService

func (c Darwin) StartService(s string) error

StartService starts a a service

func (Darwin) StopService

func (c Darwin) StopService(s string) error

StopService stops a a service

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL