Client provides access to the machinemanager, used to add machines to state.
ConstructClient is a constructor function for a machine manager client
NewClient returns a new machinemanager client.
func (client *Client) AddMachines(machineParams params.AddMachineParams) (params.AddMachinesResult, error)
AddMachines adds new machines with the supplied parameters, creating any requested disks.
DestroyMachines removes a given set of machines.
DestroyMachinesWithParams removes the given set of machines, the semantics of which is determined by the force and keep parameters. TODO(wallyworld) - for Juju 3.0, this should be the preferred api to use.
func (client *Client) ForceDestroyMachines(machines ...string) (params.DestroyMachineResult, error)
ForceDestroyMachines removes a given set of machines and all associated units. TODO (anastasiamac 2019-4-24) From Juju 3.0 this call will be removed in favour of DestroyMachinesWithParams. Also from ModelManger v6 this call is less useful as it ignores MaxWait customisation.
GetUpgradeSeriesMessages returns a StringsWatcher for observing the state of a series upgrade.
UpgradeSeriesComplete notifies the controller that a given machine has successfully completed the managed series upgrade process.
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.
WatchUpgradeSeriesNotifications returns a NotifyWatcher for observing the state of a series upgrade.