systemd

package
v1.99.4 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UserUnitPath added in v1.31.0

func UserUnitPath(unitName string) string

func UserUnitsDir added in v1.31.0

func UserUnitsDir() string

Types

type Commander added in v1.14.0

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

func NewHostSystemdCommander

func NewHostSystemdCommander() *Commander

func NewInstanceSystemdCommander

func NewInstanceSystemdCommander(sshRunner *ssh.Runner) *Commander

func (Commander) DaemonReload added in v1.14.0

func (c Commander) DaemonReload() error

func (Commander) Disable added in v1.14.0

func (c Commander) Disable(name string) error

func (Commander) Enable added in v1.14.0

func (c Commander) Enable(name string) error

func (Commander) Reload added in v1.14.0

func (c Commander) Reload(name string) error

func (Commander) Restart added in v1.14.0

func (c Commander) Restart(name string) error

func (Commander) Start added in v1.14.0

func (c Commander) Start(name string) error

func (Commander) Status added in v1.14.0

func (c Commander) Status(name string) (states.State, error)

func (Commander) Stop added in v1.14.0

func (c Commander) Stop(name string) error

func (*Commander) User added in v1.31.0

func (c *Commander) User() *Commander

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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