modelconfig

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

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

Go to latest
Published: Oct 13, 2016 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) Close

func (c *Client) Close() error

Close closes the 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.

Jump to

Keyboard shortcuts

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