systemmanager

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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 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

func (c *Client) DestroySystem(destroyEnvs bool, ignoreBlocks bool) error

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

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

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

func (c *Client) RemoveBlocks() error

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

Jump to

Keyboard shortcuts

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