Documentation
¶
Index ¶
- type SSHSystemdCommander
- type SystemdCommander
- type VmSystemdCommander
- func (c VmSystemdCommander) DaemonReload() (bool, error)
- func (c VmSystemdCommander) Disable(name string) (bool, error)
- func (c VmSystemdCommander) Enable(name string) (bool, error)
- func (c VmSystemdCommander) Exec(cmd string) (string, error)
- func (c VmSystemdCommander) Restart(name string) (bool, error)
- func (c VmSystemdCommander) Start(name string) (bool, error)
- func (c VmSystemdCommander) Status(name string) (string, error)
- func (c VmSystemdCommander) Stop(name string) (bool, error)
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)
Click to show internal directories.
Click to hide internal directories.