Documentation
¶
Index ¶
- type Client
- func (s *Client) FinishUpgradeSeries(hostBase corebase.Base) error
- func (s *Client) MachineStatus() (model.UpgradeSeriesStatus, error)
- func (s *Client) SetInstanceStatus(sts model.UpgradeSeriesStatus, msg string) error
- func (s *Client) SetMachineStatus(status model.UpgradeSeriesStatus, reason string) error
- func (s *Client) StartUnitCompletion(reason string) error
- func (s *Client) UnitsCompleted() ([]names.UnitTag, error)
- func (s *Client) UnitsPrepared() ([]names.UnitTag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *common.UpgradeSeriesAPI *common.LeadershipPinningAPI // contains filtered or unexported fields }
Client provides access to the UpgradeSeries API facade.
func (*Client) FinishUpgradeSeries ¶
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)
MachineStatus 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 ¶
StartUnitCompletion starts the complete phase for all subordinate units.
func (*Client) UnitsCompleted ¶
UnitsCompleted returns the units running on this machine that have completed the upgrade-machine workflow and are in their normal running state.
func (*Client) UnitsPrepared ¶
UnitsPrepared returns the units running on this machine that have completed their upgrade-machine preparation, and are ready to be stopped and have their unit agent services converted for the target series.