Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) AbortModelUpgrade(ctx context.Context, modelUUID string) error
- func (c *Client) UpgradeModel(ctx context.Context, modelUUID string, targetVersion version.Number, ...) (version.Number, error)
- func (c *Client) UploadTools(ctx context.Context, r io.Reader, vers version.Binary) (tools.List, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var WithTracer = base.WithTracer
WithTracer returns an Option that configures the Client to use the supplied tracer.
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, options ...Option) *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( ctx context.Context, 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.
Click to show internal directories.
Click to hide internal directories.