juju: github.com/juju/juju/apiserver/facades/agent/reboot Index | Files

package reboot

import "github.com/juju/juju/apiserver/facades/agent/reboot"


Package Files


type RebootAPI Uses

type RebootAPI struct {
    // The ability for a machine to reboot itself is not yet used.
    // It will be used for situations like container support in Windows
    // Where installing the hyper-v role will require a reboot.
    // contains filtered or unexported fields

RebootAPI provides access to the Upgrader API facade.

func NewRebootAPI Uses

func NewRebootAPI(st *state.State, resources facade.Resources, auth facade.Authorizer) (*RebootAPI, error)

NewRebootAPI creates a new server-side RebootAPI facade.

func (*RebootAPI) WatchForRebootEvent Uses

func (r *RebootAPI) WatchForRebootEvent() (params.NotifyWatchResult, error)

WatchForRebootEvent starts a watcher to track if there is a new reboot request on the machines ID or any of its parents (in case we are a container).

Package reboot imports 8 packages (graph) and is imported by 4 packages. Updated 2020-07-22. Refresh now. Tools for package owners.