svcmanager

package
v0.52.0-devel Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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

func (*ServiceSvcManager) Status added in v0.51.0

func (s *ServiceSvcManager) Status(service string) (string, error)

Status returns status from service

func (*ServiceSvcManager) Stop added in v0.51.0

func (s *ServiceSvcManager) Stop(service string) (string, error)

Stop executes stop 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

func (*SystemCtlSvcManager) Status

func (s *SystemCtlSvcManager) Status(service string) (string, error)

Status returns status from systemctl

func (*SystemCtlSvcManager) Stop

func (s *SystemCtlSvcManager) Stop(service string) (string, error)

Stop executes stop command from stystemctl

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

func (*UpstartSvcManager) Status added in v0.51.0

func (s *UpstartSvcManager) Status(service string) (string, error)

Status returns status from upstart

func (*UpstartSvcManager) Stop added in v0.51.0

func (s *UpstartSvcManager) Stop(service string) (string, error)

Stop executes stop command from upstart

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL