Documentation
¶
Index ¶
- type OpenRC
- func (i OpenRC) DaemonReload() error
- func (i OpenRC) DisableService(s string) error
- func (i OpenRC) EnableService(s string) error
- func (i OpenRC) RestartService(s string) error
- func (i OpenRC) ServiceIsRunning(s string) bool
- func (i OpenRC) ServiceScriptPath(s string) (string, error)
- func (i OpenRC) StartService(s string) error
- func (i OpenRC) StopService(s string) error
- type Systemd
- func (i Systemd) DaemonReload() error
- func (i Systemd) DisableService(s string) error
- func (i Systemd) EnableService(s string) error
- func (i Systemd) RestartService(s string) error
- func (i Systemd) ServiceIsRunning(s string) bool
- func (i Systemd) ServiceScriptPath(s string) (string, error)
- func (i Systemd) StartService(s string) error
- func (i Systemd) StopService(s string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenRC ¶
type OpenRC struct {
Host host
}
OpenRC is found on some linux systems, often installed on Alpine for example.
func (OpenRC) DaemonReload ¶
DaemonReload reloads init system configuration
func (OpenRC) DisableService ¶
DisableService disables a a service
func (OpenRC) EnableService ¶
EnableService enables a a service
func (OpenRC) RestartService ¶
RestartService restarts a a service
func (OpenRC) ServiceIsRunning ¶
ServiceIsRunning returns true if a service is running
func (OpenRC) ServiceScriptPath ¶
ServiceScriptPath returns the path to a service configuration file
func (OpenRC) StartService ¶
StartService starts a a service
func (OpenRC) StopService ¶
StopService stops a a service
type Systemd ¶
type Systemd struct {
Host host
}
Systemd is found by default on most linux distributions today
func (Systemd) DaemonReload ¶
DaemonReload reloads init system configuration
func (Systemd) DisableService ¶
DisableService disables a a service
func (Systemd) EnableService ¶
EnableService enables a a service
func (Systemd) RestartService ¶
RestartService restarts a a service
func (Systemd) ServiceIsRunning ¶
ServiceIsRunning returns true if a service is running
func (Systemd) ServiceScriptPath ¶
ServiceScriptPath returns the path to a service configuration file
func (Systemd) StartService ¶
StartService starts a a service
func (Systemd) StopService ¶
StopService stops a a service