systemd

package
v1.34.3 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHSystemdCommander

type SSHSystemdCommander interface {
	SystemdCommander
	provision.SSHCommander
}

SSHSystemdCommander is a SystemdCommander which communicates over ssh with the systemd daemon

type SystemdCommander

type SystemdCommander interface {
	Start(name string) (bool, error)
	Stop(name string) (bool, error)
	Restart(name string) (bool, error)
	Status(name string) (string, error)
	Enable(name string) (bool, error)
	Disable(name string) (bool, error)
	DaemonReload() (bool, error)

	// Exec runs the specified command on the Docker host
	Exec(cmd string) (string, error)
}

type VmSystemdCommander

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

VmSystemdCommander allows to communicate with the systemd daemon w/i the VM

func NewVmSystemdCommander

func NewVmSystemdCommander(sshCommander provision.SSHCommander) *VmSystemdCommander

NewVmSystemdCommander creates a new instance of a VmSystemdCommander

func (VmSystemdCommander) DaemonReload

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

func (VmSystemdCommander) Disable

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

func (VmSystemdCommander) Enable

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

func (VmSystemdCommander) Exec

func (c VmSystemdCommander) Exec(cmd string) (string, error)

func (VmSystemdCommander) Restart

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

func (VmSystemdCommander) Start

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

func (VmSystemdCommander) Status

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

func (VmSystemdCommander) Stop

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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