modelupgrader

package
v0.0.0-...-f88c608 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: AGPL-3.0 Imports: 11 Imported by: 2

Documentation

Index

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

func (c *Client) AbortModelUpgrade(ctx context.Context, modelUUID string) error

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.

func (*Client) UploadTools

func (c *Client) UploadTools(ctx context.Context, r io.Reader, vers version.Binary) (tools.List, error)

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

type Option

type Option = base.Option

Option is a function that can be used to configure a Client.

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