modelconfig

package
v0.0.0-...-8ff1004 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 4 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 {
	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) ModelGet

func (c *Client) ModelGet() (map[string]interface{}, error)

ModelGet returns all model settings.

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) ModelSet

func (c *Client) ModelSet(config map[string]interface{}) error

ModelSet sets the given key-value pairs in the model.

func (*Client) ModelUnset

func (c *Client) ModelUnset(keys ...string) error

ModelUnset sets the given key-value pairs in the model.

func (*Client) SLALevel

func (c *Client) SLALevel() (string, error)

SLALevel gets the support level for the given model.

func (*Client) Sequences

func (c *Client) Sequences() (map[string]int, error)

Sequences returns all sequence names and next values.

func (*Client) SetSLALevel

func (c *Client) SetSLALevel(level, owner string, creds []byte) error

SetSLALevel sets the support level for the given model.

Jump to

Keyboard shortcuts

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