systemd

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HostSystemdCommander

type HostSystemdCommander struct {
}

func NewHostSystemdCommander

func NewHostSystemdCommander() *HostSystemdCommander

func (HostSystemdCommander) DaemonReload

func (c HostSystemdCommander) DaemonReload() (bool, error)

func (HostSystemdCommander) Disable

func (c HostSystemdCommander) Disable(name string) (bool, error)

func (HostSystemdCommander) Enable

func (c HostSystemdCommander) Enable(name string) (bool, error)

func (HostSystemdCommander) Reload

func (c HostSystemdCommander) Reload(name string) (bool, error)

func (HostSystemdCommander) Restart

func (c HostSystemdCommander) Restart(name string) (bool, error)

func (HostSystemdCommander) Start

func (c HostSystemdCommander) Start(name string) (bool, error)

func (HostSystemdCommander) Status

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

func (HostSystemdCommander) Stop

func (c HostSystemdCommander) Stop(name string) (bool, error)

type InstanceSystemdCommander

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

func NewInstanceSystemdCommander

func NewInstanceSystemdCommander(sshRunner *ssh.SSHRunner) *InstanceSystemdCommander

NewVmSystemdCommander creates a new instance of a VmSystemdCommander

func (InstanceSystemdCommander) DaemonReload

func (c InstanceSystemdCommander) DaemonReload() (bool, error)

func (InstanceSystemdCommander) Disable

func (c InstanceSystemdCommander) Disable(name string) (bool, error)

func (InstanceSystemdCommander) Enable

func (c InstanceSystemdCommander) Enable(name string) (bool, error)

func (InstanceSystemdCommander) IsActive

func (c InstanceSystemdCommander) IsActive(name string) (bool, error)

func (InstanceSystemdCommander) Restart

func (c InstanceSystemdCommander) Restart(name string) (bool, error)

func (InstanceSystemdCommander) Start

func (c InstanceSystemdCommander) Start(name string) (bool, error)

func (InstanceSystemdCommander) Status

func (c InstanceSystemdCommander) Status(name string) (string, error)

func (InstanceSystemdCommander) Stop

func (c InstanceSystemdCommander) Stop(name string) (bool, error)

type SystemdCommander

type SystemdCommander interface {
	Start(name string) (bool, error)
	Stop(name string) (bool, error)
	Reload(name string) (bool, error)
	Restart(name string) (bool, error)
	Status(name string) (states.State, error)
	Enable(name string) (bool, error)
	Disable(name string) (bool, error)
	DaemonReload() (bool, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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