svcmanager

package
v0.50.0-rc.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2023 License: Apache-2.0 Imports: 2 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 SystemCtlSvcManager

type SystemCtlSvcManager struct {
	// contains filtered or unexported fields
}

SystemCtlSvcManager struct for the Systemctl service manager

func NewSystemctlSvcManager

func NewSystemctlSvcManager(vmClient client.VM) *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

Jump to

Keyboard shortcuts

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