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 ServiceSvcManager ¶ added in v0.51.0
type ServiceSvcManager struct {
// contains filtered or unexported fields
}
ServiceSvcManager struct for Service service manager
func NewServiceSvcManager ¶ added in v0.51.0
func NewServiceSvcManager(host *components.RemoteHost) *ServiceSvcManager
NewServiceSvcManager return service service manager
func (*ServiceSvcManager) Restart ¶ added in v0.51.0
func (s *ServiceSvcManager) Restart(service string) (string, error)
Restart executes restart command from service
func (*ServiceSvcManager) Start ¶ added in v0.51.0
func (s *ServiceSvcManager) Start(service string) (string, error)
Start executes start command from service
type SystemCtlSvcManager ¶
type SystemCtlSvcManager struct {
// contains filtered or unexported fields
}
SystemCtlSvcManager struct for the Systemctl service manager
func NewSystemctlSvcManager ¶
func NewSystemctlSvcManager(host *components.RemoteHost) *SystemCtlSvcManager
NewSystemctlSvcManager return systemctl service manager
func (*SystemCtlSvcManager) Restart ¶
func (s *SystemCtlSvcManager) Restart(service string) (string, error)
Restart executes restart command from systemctl
func (*SystemCtlSvcManager) Start ¶
func (s *SystemCtlSvcManager) Start(service string) (string, error)
Start executes start command from systemctl
type UpstartSvcManager ¶ added in v0.51.0
type UpstartSvcManager struct {
// contains filtered or unexported fields
}
UpstartSvcManager is a service manager for upstart
func NewUpstartSvcManager ¶ added in v0.51.0
func NewUpstartSvcManager(host *components.RemoteHost) *UpstartSvcManager
NewUpstartSvcManager return upstart service manager
func (*UpstartSvcManager) Restart ¶ added in v0.51.0
func (s *UpstartSvcManager) Restart(service string) (string, error)
Restart executes restart command from upstart
func (*UpstartSvcManager) Start ¶ added in v0.51.0
func (s *UpstartSvcManager) Start(service string) (string, error)
Start executes start command from upstart