UndertakerAPI implements the API used by the model undertaker worker.

Hierarchy

  • default

Implements

Constructors

Properties

NAME: string = "Undertaker"
VERSION: number = 1
_transport: Transport
NAME: string = "Undertaker"
VERSION: number = 1

Methods

  • GetCloudSpec constructs the CloudSpec for a validated and authorized model.

    Parameters

    Returns Promise<CloudSpecResult>

  • ModelConfig returns the current model's configuration.

    Parameters

    • params: any

    Returns Promise<ModelConfigResult>

  • ModelInfo returns information on the model needed by the undertaker worker.

    Parameters

    • params: any

    Returns Promise<UndertakerModelInfoResult>

  • ProcessDyingModel checks if a dying model has any machines or applications. If there are none, the model's life is changed from dying to dead.

    Parameters

    • params: any

    Returns Promise<any>

  • RemoveModel removes any records of this model from Juju.

    Parameters

    • params: any

    Returns Promise<any>

  • SetStatus sets the status of each given entity.

    Parameters

    Returns Promise<ErrorResults>

  • WatchForModelConfigChanges returns a NotifyWatcher that observes changes to the model configuration. Note that although the NotifyWatchResult contains an Error field, it's not used because we are only returning a single watcher, so we use the regular error return.

    Parameters

    • params: any

    Returns Promise<NotifyWatchResult>

  • WatchModel creates a watcher for the current model.

    Parameters

    • params: any

    Returns Promise<NotifyWatchResults>

  • WatchModelResources creates watchers for changes to the lifecycle of an model's machines and applications and storage.

    Parameters

    • params: any

    Returns Promise<NotifyWatchResults>

Generated using TypeDoc