Documentation
¶
Index ¶
- type Client
- func (client *Client) AddMachines(machineParams []params.AddMachineParams) ([]params.AddMachinesResult, error)
- func (client *Client) DestroyMachinesWithParams(force, keep, dryRun bool, maxWait *time.Duration, machines ...string) ([]params.DestroyMachineResult, error)
- func (client *Client) GetUpgradeSeriesMessages(machineName, watcherId string) ([]string, error)
- func (c *Client) ModelUUID() (string, bool)
- func (c *Client) ProvisioningScript(args params.ProvisioningScriptParams) (script string, err error)
- func (c *Client) RetryProvisioning(all bool, machines ...names.MachineTag) ([]params.ErrorResult, error)
- func (client *Client) UpgradeSeriesComplete(machineName string) error
- func (client *Client) UpgradeSeriesPrepare(machineName, channel string, force bool) error
- func (client *Client) UpgradeSeriesValidate(machineName, channel string) ([]string, error)
- func (client *Client) WatchUpgradeSeriesNotifications(machineName string) (watcher.NotifyWatcher, string, 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 ConstructClient ¶
func ConstructClient(clientFacade base.ClientFacade, facadeCaller base.FacadeCaller) *Client
ConstructClient is a constructor function for a machine manager client
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) DestroyMachinesWithParams ¶
func (client *Client) DestroyMachinesWithParams(force, keep, dryRun bool, maxWait *time.Duration, machines ...string) ([]params.DestroyMachineResult, error)
DestroyMachinesWithParams removes the given set of machines, the semantics of which is determined by the force and keep parameters.
func (*Client) GetUpgradeSeriesMessages ¶
GetUpgradeSeriesMessages returns a StringsWatcher for observing the state of a series upgrade.
func (*Client) ProvisioningScript ¶
func (c *Client) ProvisioningScript(args params.ProvisioningScriptParams) (script string, err error)
ProvisioningScript returns a shell script that, when run, provisions a machine agent on the machine executing the script.
func (*Client) RetryProvisioning ¶
func (c *Client) RetryProvisioning(all bool, machines ...names.MachineTag) ([]params.ErrorResult, error)
RetryProvisioning updates the provisioning status of a machine allowing the provisioner to retry.
func (*Client) UpgradeSeriesComplete ¶
UpgradeSeriesComplete notifies the controller that a given machine has successfully completed the managed series upgrade process.
func (*Client) UpgradeSeriesPrepare ¶
UpgradeSeriesPrepare notifies the controller that a series upgrade is taking place for a given machine and as such the machine is guarded against operations that would impede, fail, or interfere with the upgrade process.
func (*Client) UpgradeSeriesValidate ¶
func (*Client) WatchUpgradeSeriesNotifications ¶
func (client *Client) WatchUpgradeSeriesNotifications(machineName string) (watcher.NotifyWatcher, string, error)
WatchUpgradeSeriesNotifications returns a NotifyWatcher for observing the state of a series upgrade.