Documentation ¶
Index ¶
- type API
- type Machine
- func (m *Machine) Id() string
- func (m *Machine) InstanceId() (instance.Id, error)
- func (m *Machine) InstanceStatus() (string, 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 string) 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.EnvironWatcher // 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) WatchEnvironMachines ¶
func (api *API) WatchEnvironMachines() (watcher.StringsWatcher, error)
WatchEnvironMachines return a StringsWatcher reporting waiting for the environment 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 ¶
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 ¶
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.