controllers

package
v0.0.1-beta2 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotSupportedOperation = errors.New("not supported operation")
)

Functions

func CommandLine

func CommandLine(enableCmd, disableCmd, startCmd, stopCmd, restartCmd, statusCmd string, logger loggers.Logger) *commandLine

func InitD

func InitD(bashFile string, logger loggers.Logger) *initD

func NoController

func NoController() *noController

func Service

func Service(name string, logger loggers.Logger) *service

func Systemctl

func Systemctl(name string, logger loggers.Logger) *systemctl

Types

type Controller

type Controller interface {
	Enable() (ok bool, err error)
	Disable() (ok bool, err error)
	Start() (ok bool, err error)
	Stop() (ok bool, err error)
	Restart() (ok bool, err error)
	Status() (st string, ok bool, err error)
}

Jump to

Keyboard shortcuts

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