Version: v0.0.0-...-32e80b1 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Jul 27, 2021 License: AGPL-3.0 Imports: 8 Imported by: 1




This section is empty.


This section is empty.


This section is empty.


type Client

type Client struct {
	// contains filtered or unexported fields

Client provides access to the UpgradeSeries API facade.

func NewClient

func NewClient(caller base.APICaller, authTag names.Tag) *Client

NewClient Constructs an API caller.

func (*Client) CurrentSeries

func (s *Client) CurrentSeries() (string, error)

CurrentSeries returns what Juju thinks the current series of the machine is. Note that a machine could have been upgraded out-of-band by running do-release-upgrade outside of the upgrade-series workflow, making this value incorrect.

func (*Client) FinishUpgradeSeries

func (s *Client) FinishUpgradeSeries(hostSeries string) error

FinishUpgradeSeries notifies the controller that the upgrade process is completely finished, passing the current host OS series. We use the name "Finish" to distinguish this method from the various "Complete" phases.

func (*Client) MachineStatus

func (s *Client) MachineStatus() (model.UpgradeSeriesStatus, error)

Machine status retrieves the machine status from remote state.

func (*Client) SetInstanceStatus

func (s *Client) SetInstanceStatus(sts model.UpgradeSeriesStatus, msg string) error

SetInstanceStatus sets the machine status in remote state.

func (*Client) SetMachineStatus

func (s *Client) SetMachineStatus(status model.UpgradeSeriesStatus, reason string) error

SetMachineStatus sets the series upgrade status in remote state.

func (*Client) StartUnitCompletion

func (s *Client) StartUnitCompletion(reason string) error

StartUnitCompletion starts the complete phase for all subordinate units.

func (*Client) TargetSeries

func (s *Client) TargetSeries() (string, error)

TargetSeries returns the series that a machine has been locked for upgrading to.

func (*Client) UnitsCompleted

func (s *Client) UnitsCompleted() ([]names.UnitTag, error)

UnitsCompleted returns the units running on this machine that have completed the upgrade-series workflow and are in their normal running state.

func (*Client) UnitsPrepared

func (s *Client) UnitsPrepared() ([]names.UnitTag, error)

UnitsPrepared returns the units running on this machine that have completed their upgrade-series preparation, and are ready to be stopped and have their unit agent services converted for the target series.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto