Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { base.ClientFacade // contains filtered or unexported fields }
Client provides methods that the Juju client command uses to upgrade models.
func NewClient ¶
func NewClient(st base.APICallCloser) *Client
NewClient creates a new `Client` based on an existing authenticated API connection.
func (*Client) AbortModelUpgrade ¶
AbortModelUpgrade aborts and archives the model upgrade synchronisation record, if any.
func (*Client) UpgradeModel ¶
func (c *Client) UpgradeModel( modelUUID string, targetVersion version.Number, stream string, ignoreAgentVersions, druRun bool, ) (version.Number, error)
UpgradeModel upgrades the model to the provided agent version. The provided target version could be version.Zero, in which case the best version is selected by the controller and returned as ChosenVersion in the result.
func (*Client) UploadTools ¶
UploadTools uploads tools at the specified location to the API server over HTTPS.
Click to show internal directories.
Click to hide internal directories.