environmentmanager

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 6 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 environments 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) ConfigSkeleton

func (c *Client) ConfigSkeleton(provider, region string) (params.EnvironConfig, error)

ConfigSkeleton returns config values to be used as a starting point for the API caller to construct a valid environment specific config. The provider and region params are there for future use, and current behaviour expects both of these to be empty.

func (*Client) CreateEnvironment

func (c *Client) CreateEnvironment(owner string, account, config map[string]interface{}) (params.Environment, error)

CreateEnvironment creates a new environment using the account and environment config specified in the args.

func (*Client) ListEnvironments

func (c *Client) ListEnvironments(user string) ([]params.Environment, error)

ListEnvironments returns the environments that the specified user has access to in the current server. Only that state server owner can list environments for any user (at this stage). Other users can only ask about their own environments.

Jump to

Keyboard shortcuts

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