RebootAPI provides access to the Upgrader API facade.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "Reboot"
VERSION: number = 2
_transport: Transport
NAME: string = "Reboot"
VERSION: number = 2

Methods

  • ClearReboot will clear the reboot flag on provided machines, if it exists.

    Parameters

    Returns Promise<ErrorResults>

  • GetRebootAction returns the action a machine agent should take. If a reboot flag is set on the machine, then that machine is expected to reboot (params.ShouldReboot). a reboot flag set on the machine parent or grandparent, will cause the machine to shutdown (params.ShouldShutdown). If no reboot flag is set, the machine should do nothing (params.ShouldDoNothing).

    Parameters

    Returns Promise<RebootActionResults>

  • RequestReboot sets the reboot flag on the provided machines

    Parameters

    Returns Promise<ErrorResults>

  • 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).

    Parameters

    • params: any

    Returns Promise<NotifyWatchResult>

Generated using TypeDoc