reboot

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Reboot

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

Reboot implements the ExecuteReboot command which will reboot a machine once all containers have shut down, or a timeout is reached

func NewRebootWaiter

func NewRebootWaiter(apistate api.Connection, acfg agent.Config) (*Reboot, error)

func (*Reboot) ExecuteReboot

func (r *Reboot) ExecuteReboot(action params.RebootAction) error

ExecuteReboot will wait for all running containers to stop, and then execute a shutdown or a reboot (based on the action param)

Jump to

Keyboard shortcuts

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