Documentation ¶
Index ¶
- type Client
- func (c *Client) ModelGet() (map[string]interface{}, error)
- func (c *Client) ModelGetWithMetadata() (config.ConfigValues, error)
- func (c *Client) ModelSet(config map[string]interface{}) error
- func (c *Client) ModelUnset(keys ...string) error
- func (c *Client) SLALevel() (string, error)
- func (c *Client) Sequences() (map[string]int, error)
- func (c *Client) SetSLALevel(level, owner string, creds []byte) error
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 interact with models stored in the Juju Server.
func NewClient ¶
func NewClient(st base.APICallCloser) *Client
NewClient creates a new `Client` based on an existing authenticated API connection.
func (*Client) ModelGetWithMetadata ¶
func (c *Client) ModelGetWithMetadata() (config.ConfigValues, error)
ModelGetWithMetadata returns all model settings along with extra metadata like the source of the setting value.
func (*Client) ModelUnset ¶
ModelUnset sets the given key-value pairs in the model.
Click to show internal directories.
Click to hide internal directories.