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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type State

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

State provides access to an reboot worker's view of the state.

func NewState

func NewState(caller base.APICaller, machineTag names.MachineTag) *State

NewState returns a version of the state that provides functionality required by the reboot worker.

func (*State) ClearReboot

func (st *State) ClearReboot() error

ClearReboot clears the reboot flag for the calling machine

func (*State) GetRebootAction

func (st *State) GetRebootAction() (params.RebootAction, error)

GetRebootAction returns the reboot action for the calling machine

func (*State) RequestReboot

func (st *State) RequestReboot() error

RequestReboot sets the reboot flag for the calling machine

func (*State) WatchForRebootEvent

func (st *State) WatchForRebootEvent() (watcher.NotifyWatcher, error)

WatchForRebootEvent returns a watcher.NotifyWatcher that reacts to reboot flag changes

Jump to

Keyboard shortcuts

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