Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) ModelEnvironVersion(ctx context.Context, tag names.ModelTag) (int, error)
- func (c *Client) ModelTargetEnvironVersion(ctx context.Context, tag names.ModelTag) (int, error)
- func (c *Client) SetModelEnvironVersion(ctx context.Context, tag names.ModelTag, v int) error
- func (c *Client) SetModelStatus(ctx context.Context, tag names.ModelTag, status status.Status, info string, ...) error
- func (c *Client) WatchModelEnvironVersion(ctx context.Context, tag names.ModelTag) (watcher.NotifyWatcher, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
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 {
// 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 ¶
NewClient creates a new `Client` based on an existing authenticated API connection.
func (*Client) ModelEnvironVersion ¶
ModelEnvironVersion returns the current version of the environ corresponding to the specified model.
func (*Client) ModelTargetEnvironVersion ¶
ModelTargetEnvironVersion returns the target version of the environ corresponding to the specified model.
func (*Client) SetModelEnvironVersion ¶
SetModelEnvironVersion sets the current version of the environ corresponding to the specified model.
func (*Client) SetModelStatus ¶
func (c *Client) SetModelStatus(ctx context.Context, 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(ctx context.Context, 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.