Documentation ¶
Overview ¶
Package svcmanager contains svcmanager implementations
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶ added in v0.52.0
type Service struct {
// contains filtered or unexported fields
}
Service struct for Service service manager
func NewService ¶ added in v0.52.0
func NewService(host *components.RemoteHost) *Service
NewService return service service manager
type ServiceManager ¶ added in v0.52.0
type ServiceManager interface { Status(service string) (string, error) Start(service string) (string, error) Stop(service string) (string, error) Restart(service string) (string, error) }
ServiceManager generic interface
type SystemCtl ¶ added in v0.52.0
type SystemCtl struct {
// contains filtered or unexported fields
}
SystemCtl struct for the Systemctl service manager
func NewSystemctl ¶ added in v0.52.0
func NewSystemctl(host *components.RemoteHost) *SystemCtl
NewSystemctl return systemctl service manager
type Upstart ¶ added in v0.52.0
type Upstart struct {
// contains filtered or unexported fields
}
Upstart is a service manager for upstart
func NewUpstart ¶ added in v0.52.0
func NewUpstart(host *components.RemoteHost) *Upstart
NewUpstart return upstart service manager
type Windows ¶ added in v0.52.0
type Windows struct {
// contains filtered or unexported fields
}
Windows struct for Windows service manager (SCM)
func NewWindows ¶ added in v0.52.0
func NewWindows(host *components.RemoteHost) *Windows
NewWindows returns Windows service manager
Click to show internal directories.
Click to hide internal directories.