Documentation
¶
Index ¶
- type Openrc
- func (s *Openrc) IsActive(serviceName string) (bool, error)
- func (s *Openrc) IsEnable(serviceName string) (bool, error)
- func (s *Openrc) IsExist(serviceName string) (bool, error)
- func (s *Openrc) Name() string
- func (s *Openrc) Operate(operate, serviceName string) error
- func (s *Openrc) Reload() error
- func (s *Openrc) Status(serviceName string) (string, error)
- type Snap
- type Systemd
- func (s *Systemd) IsActive(serviceName string) (bool, error)
- func (s *Systemd) IsEnable(serviceName string) (bool, error)
- func (s *Systemd) IsExist(serviceName string) (bool, error)
- func (s *Systemd) Name() string
- func (s *Systemd) Operate(operate, serviceName string) error
- func (s *Systemd) Reload() error
- func (s *Systemd) Status(serviceName string) (string, error)
- type Sysvinit
- func (s *Sysvinit) IsActive(serviceName string) (bool, error)
- func (s *Sysvinit) IsEnable(serviceName string) (bool, error)
- func (s *Sysvinit) IsExist(serviceName string) (bool, error)
- func (s *Sysvinit) Name() string
- func (s *Sysvinit) Operate(operate, serviceName string) error
- func (s *Sysvinit) Reload() error
- func (s *Sysvinit) Status(serviceName string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Systemd ¶
func NewSystemd ¶
func NewSystemd() *Systemd
type Sysvinit ¶
func NewSysvinit ¶
func NewSysvinit() *Sysvinit
Click to show internal directories.
Click to hide internal directories.