Documentation ¶
Index ¶
- type Machine
- func (m *Machine) EnsureDead() error
- func (m *Machine) Jobs() (*params.JobsResult, error)
- func (m *Machine) Life() params.Life
- func (m *Machine) Refresh() error
- func (m *Machine) SetMachineAddresses(addresses []network.Address) error
- func (m *Machine) SetStatus(status params.Status, info string, data map[string]interface{}) error
- func (m *Machine) Tag() names.Tag
- func (m *Machine) Watch() (watcher.NotifyWatcher, error)
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Machine ¶
type Machine struct {
// contains filtered or unexported fields
}
Machine represents a juju machine as seen by a machiner worker.
func (*Machine) EnsureDead ¶
EnsureDead sets the machine lifecycle to Dead if it is Alive or Dying. It does nothing otherwise.
func (*Machine) Jobs ¶
func (m *Machine) Jobs() (*params.JobsResult, error)
Jobs returns a list of jobs for the machine.
func (*Machine) SetMachineAddresses ¶
SetMachineAddresses sets the machine determined addresses of the machine.
Click to show internal directories.
Click to hide internal directories.