modelupgrader

package
v0.0.0-...-51a0f74 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: AGPL-3.0 Imports: 10 Imported by: 0

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

func (c *Client) AbortModelUpgrade(modelUUID string) error

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

func (c *Client) UploadTools(r io.ReadSeeker, vers version.Binary) (tools.List, error)

UploadTools uploads tools at the specified location to the API server over HTTPS.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL