Documentation
¶
Index ¶
- type Client
- func (c *Client) AllEnvironments() ([]base.UserEnvironment, error)
- func (c *Client) DestroySystem(destroyEnvs bool, ignoreBlocks bool) error
- func (c *Client) EnvironmentConfig() (map[string]interface{}, error)
- func (c *Client) ListBlockedEnvironments() ([]params.EnvironmentBlockInfo, error)
- func (c *Client) RemoveBlocks() error
- func (c *Client) WatchAllEnvs() (*api.AllWatcher, 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 systems 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) AllEnvironments ¶
func (c *Client) AllEnvironments() ([]base.UserEnvironment, error)
AllEnvironments allows system administrators to get the list of all the environments in the system.
func (*Client) DestroySystem ¶
DestroySystem puts the system environment into a "dying" state, and removes all non-manager machine instances. Underlying DestroyEnvironment calls will fail if there are any manually-provisioned non-manager machines in state.
func (*Client) EnvironmentConfig ¶
EnvironmentConfig returns all environment settings for the system environment.
func (*Client) ListBlockedEnvironments ¶
func (c *Client) ListBlockedEnvironments() ([]params.EnvironmentBlockInfo, error)
ListBlockedEnvironments returns a list of all environments within the system which have at least one block in place.
func (*Client) RemoveBlocks ¶
RemoveBlocks removes all the blocks in the system.
func (*Client) WatchAllEnvs ¶
func (c *Client) WatchAllEnvs() (*api.AllWatcher, error)
WatchAllEnv returns an AllEnvWatcher, from which you can request the Next collection of Deltas (for all environments).