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() life.Value
- func (m *Machine) Refresh() error
- func (m *Machine) SetInstanceStatus(status status.Status, message string, data map[string]interface{}) error
- func (m *Machine) SetProviderNetworkConfig(ifList network.InterfaceInfos) (network.ProviderAddresses, bool, 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) WatchModelMachines ¶
func (api *API) WatchModelMachines() (watcher.StringsWatcher, error)
WatchModelMachines returns a StringsWatcher reporting changes to the machine life or agent start timestamps.
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) 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) SetProviderNetworkConfig ¶
func (m *Machine) SetProviderNetworkConfig(ifList network.InterfaceInfos) (network.ProviderAddresses, bool, error)
SetProviderNetworkConfig updates the provider addresses for this machine.
Click to show internal directories.
Click to hide internal directories.