juju: github.com/juju/juju/api/upgradeseries Index | Files

package upgradeseries

import "github.com/juju/juju/api/upgradeseries"

Index

Package Files

upgradeseries.go

type Client Uses

type Client struct {
    *common.UpgradeSeriesAPI
    *common.LeadershipPinningAPI
    // contains filtered or unexported fields
}

Client provides access to the UpgradeSeries API facade.

func NewClient Uses

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

NewClient Constructs an API caller.

func (*Client) FinishUpgradeSeries Uses

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 Uses

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

Machine status retrieves the machine status from remote state.

func (*Client) SetMachineStatus Uses

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

SetMachineStatus sets the machine status in remote state.

func (*Client) StartUnitCompletion Uses

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

StartUnitCompletion starts the complete phase for all subordinate units.

func (*Client) TargetSeries Uses

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

func (*Client) UnitsCompleted Uses

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 Uses

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.

Package upgradeseries imports 6 packages (graph) and is imported by 3 packages. Updated 2019-08-25. Refresh now. Tools for package owners.