service

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PodmanServiceName is the service name of podman service
	PodmanServiceName = "container-atest.service"

	SystemCtl   = "systemctl"
	ServiceName = "atest"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service added in v0.0.15

type Service interface {
	Start() (string, error)     // start the service
	Stop() (string, error)      // stop the service gracefully
	Restart() (string, error)   // restart the service gracefully
	Status() (string, error)    // status of the service
	Install() (string, error)   // install the service
	Uninstall() (string, error) // uninstall the service
}

Service is the interface of service

func NewService added in v0.0.15

func NewService(execer fakeruntime.Execer, scriptPath string) Service

Jump to

Keyboard shortcuts

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