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: 10 Imported by: 0

Documentation

Index

Constants

View Source
const RebootMessage = "preparing for reboot"

Variables

This section is empty.

Functions

func NewReboot

func NewReboot(st *reboot.State, agentConfig agent.Config, machineLock *fslock.Lock) (worker.Worker, error)

Types

type Reboot

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

The reboot worker listens for changes to the reboot flag and exists with worker.ErrRebootMachine if the machine should reboot or with worker.ErrShutdownMachine if it should shutdown. This will be picked up by the machine agent as a fatal error and will do the right thing (reboot or shutdown)

func (*Reboot) Handle

func (r *Reboot) Handle(_ <-chan struct{}) error

func (*Reboot) SetUp

func (r *Reboot) SetUp() (watcher.NotifyWatcher, error)

func (*Reboot) TearDown

func (r *Reboot) TearDown() error

Jump to

Keyboard shortcuts

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