Documentation ¶
Index ¶
- type Client
- func (client *Client) AddMachines(machineParams []params.AddMachineParams) ([]params.AddMachinesResult, error)
- func (client *Client) DestroyMachines(machines ...string) ([]params.DestroyMachineResult, error)
- func (client *Client) ForceDestroyMachines(machines ...string) ([]params.DestroyMachineResult, 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 access to the machinemanager, used to add machines to state.
func NewClient ¶
func NewClient(st base.APICallCloser) *Client
NewClient returns a new machinemanager client.
func (*Client) AddMachines ¶
func (client *Client) AddMachines(machineParams []params.AddMachineParams) ([]params.AddMachinesResult, error)
AddMachines adds new machines with the supplied parameters, creating any requested disks.
func (*Client) DestroyMachines ¶
func (client *Client) DestroyMachines(machines ...string) ([]params.DestroyMachineResult, error)
DestroyMachines removes a given set of machines.
func (*Client) ForceDestroyMachines ¶
func (client *Client) ForceDestroyMachines(machines ...string) ([]params.DestroyMachineResult, error)
ForceDestroyMachines removes a given set of machines and all associated units.
Click to show internal directories.
Click to hide internal directories.