environupgrader

package
v0.0.0-...-6dcaeb9 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: AGPL-3.0 Imports: 7 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 {
	// contains filtered or unexported fields
}

Client provides methods that the Juju client command uses to interact with environs stored in the Juju Server.

func NewClient

func NewClient(caller base.APICaller) *Client

NewClient creates a new `Client` based on an existing authenticated API connection.

func (*Client) ModelEnvironVersion

func (c *Client) ModelEnvironVersion(tag names.ModelTag) (int, error)

ModelEnvironVersion returns the current version of the environ corresponding to the specified model.

func (*Client) ModelTargetEnvironVersion

func (c *Client) ModelTargetEnvironVersion(tag names.ModelTag) (int, error)

ModelTargetEnvironVersion returns the target version of the environ corresponding to the specified model.

func (*Client) SetModelEnvironVersion

func (c *Client) SetModelEnvironVersion(tag names.ModelTag, v int) error

SetModelEnvironVersion sets the current version of the environ corresponding to the specified model.

func (*Client) SetModelStatus

func (c *Client) SetModelStatus(tag names.ModelTag, status status.Status, info string, data map[string]interface{}) error

SetModelStatus sets the status of a model.

func (*Client) WatchModelEnvironVersion

func (c *Client) WatchModelEnvironVersion(tag names.ModelTag) (watcher.NotifyWatcher, error)

WatchModelEnvironVersion starts a NotifyWatcher that notifies the caller upon changes to the environ version of the model with the specified tag.

Jump to

Keyboard shortcuts

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