Documentation
¶
Index ¶
- func Create(u *Unit) error
- func Exists(name string) bool
- func GetUser(name string) string
- func ListSlipgateServices() []string
- func Logs(name string, lines string) (string, error)
- func ReadUnitFile(name string) string
- func Reload(name string) error
- func Remove(name string) error
- func Restart(name string) error
- func Start(name string) error
- func Status(name string) (string, error)
- func Stop(name string) error
- func TunnelServiceName(tag string) string
- type Unit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListSlipgateServices ¶ added in v1.5.0
func ListSlipgateServices() []string
ListSlipgateServices returns the names of all slipgate-* service files found in the systemd directory (without the .service suffix).
func ReadUnitFile ¶ added in v1.6.3
ReadUnitFile returns the raw unit file contents, or empty string if absent.
func Reload ¶ added in v1.6.3
Reload asks systemd to run the service's ExecReload (typically sending SIGHUP to the main pid). Does not drop live connections.
func TunnelServiceName ¶
TunnelServiceName returns the systemd service name for a tunnel.
Types ¶
Click to show internal directories.
Click to hide internal directories.