Documentation ¶
Index ¶
- type API
- type Machine
- func (m *Machine) Id() string
- func (m *Machine) InstanceId() (instance.Id, error)
- func (m *Machine) InstanceStatus() (params.StatusResult, error)
- func (m *Machine) IsManual() (bool, error)
- func (m *Machine) Life() params.Life
- func (m *Machine) ProviderAddresses() ([]network.Address, error)
- func (m *Machine) Refresh() error
- func (m *Machine) SetInstanceStatus(status status.Status, message string, data map[string]interface{}) error
- func (m *Machine) SetProviderAddresses(addrs ...network.Address) error
- func (m *Machine) Status() (params.StatusResult, error)
- func (m *Machine) String() string
- func (m *Machine) Tag() names.MachineTag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { *common.ModelWatcher // contains filtered or unexported fields }
API provides access to the InstancePoller API facade.
func (*API) Machine ¶
func (api *API) Machine(tag names.MachineTag) (*Machine, error)
Machine provides access to methods of a state.Machine through the facade.
func (*API) WatchModelMachines ¶
func (api *API) WatchModelMachines() (watcher.StringsWatcher, error)
WatchModelMachines return a StringsWatcher reporting waiting for the model configuration to change.
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
Machine represents a juju machine as seen by an instancepoller worker.
func (*Machine) InstanceId ¶
InstanceId returns the machine's instance id.
func (*Machine) InstanceStatus ¶
func (m *Machine) InstanceStatus() (params.StatusResult, error)
InstanceStatus returns the machine's instance status.
func (*Machine) ProviderAddresses ¶
ProviderAddresses returns all addresses of the machine known to the cloud provider.
func (*Machine) SetInstanceStatus ¶
func (m *Machine) SetInstanceStatus(status status.Status, message string, data map[string]interface{}) error
SetInstanceStatus sets the instance status of the machine.
func (*Machine) SetProviderAddresses ¶
SetProviderAddresses sets the cached provider addresses for the machine.
Click to show internal directories.
Click to hide internal directories.