Static
NAMEStatic
VERSIONAPIAddresses returns the list of addresses used to connect to the API.
APIHostPorts returns the API server addresses.
EnsureDead calls EnsureDead on each given entity from state. It will fail if the entity is not present. If it's Alive, nothing will happen (see state/EnsureDead() for units or machines).
Jobs returns the jobs assigned to the given entities.
Life returns the life status of every supplied entity, where available.
ModelUUID returns the model UUID to connect to the model that the current connection is for.
RecordAgentStartTime updates the agent start time field in the machine doc.
SetObservedNetworkConfig reads the network config for the machine identified by the input args. This config is merged with the new network config supplied in the same args and updated if it has changed.
SetStatus sets the status of each given entity.
UpdateStatus updates the status data of each given entity. TODO(fwereade): WTF. This method exists only for the convenience of the client API -- and is itself completely broken -- but we still expose it in every facade with a StatusSetter? FFS.
Watch starts an NotifyWatcher for each given entity.
WatchAPIHostPorts watches the API server addresses.
Generated using TypeDoc
MachinerAPI implements the API used by the machiner worker.