juju: github.com/juju/juju/api/machinemanager Index | Files

package machinemanager

import "github.com/juju/juju/api/machinemanager"


Package Files


type Client Uses

type Client struct {
    // contains filtered or unexported fields

Client provides access to the machinemanager, used to add machines to state.

func ConstructClient Uses

func ConstructClient(clientFacade base.ClientFacade, facadeCaller base.FacadeCaller) *Client

ConstructClient is a constructor function for a machine manager client

func NewClient Uses

func NewClient(st base.APICallCloser) *Client

NewClient returns a new machinemanager client.

func (*Client) AddMachines Uses

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 Uses

func (client *Client) DestroyMachines(machines ...string) ([]params.DestroyMachineResult, error)

DestroyMachines removes a given set of machines.

func (*Client) DestroyMachinesWithParams Uses

func (client *Client) DestroyMachinesWithParams(force, keep 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. TODO(wallyworld) - for Juju 3.0, this should be the preferred api to use.

func (*Client) ForceDestroyMachines Uses

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.

func (*Client) GetUpgradeSeriesMessages Uses

func (client *Client) GetUpgradeSeriesMessages(machineName, watcherId string) ([]string, error)

GetUpgradeSeriesMessages returns a StringsWatcher for observing the state of a series upgrade.

func (*Client) UpgradeSeriesComplete Uses

func (client *Client) UpgradeSeriesComplete(machineName string) error

UpgradeSeriesComplete notifies the controller that a given machine has successfully completed the managed series upgrade process.

func (*Client) UpgradeSeriesPrepare Uses

func (client *Client) UpgradeSeriesPrepare(machineName, series string, force bool) error

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 Uses

func (client *Client) UpgradeSeriesValidate(machineName, series string) ([]string, error)

func (*Client) WatchUpgradeSeriesNotifications Uses

func (client *Client) WatchUpgradeSeriesNotifications(machineName string) (watcher.NotifyWatcher, string, error)

WatchUpgradeSeriesNotifications returns a NotifyWatcher for observing the state of a series upgrade.

Package machinemanager imports 8 packages (graph) and is imported by 35 packages. Updated 2020-07-24. Refresh now. Tools for package owners.