juju: github.com/juju/juju/api/modelupgrader Index | Files

package modelupgrader

import "github.com/juju/juju/api/modelupgrader"

Index

Package Files

modelupgrader.go

type Client Uses

type Client struct {
    // contains filtered or unexported fields
}

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

func NewClient Uses

func NewClient(caller base.APICaller) *Client

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

func (*Client) ModelEnvironVersion Uses

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 Uses

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 Uses

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 Uses

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 Uses

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.

Package modelupgrader imports 8 packages (graph) and is imported by 6 packages. Updated 2019-08-23. Refresh now. Tools for package owners.