Documentation ¶
Index ¶
- type Machine
- func (m *Machine) EnsureDead() error
- func (m *Machine) Jobs() (*params.JobsResult, error)
- func (m *Machine) Life() life.Value
- func (m *Machine) RecordAgentStartInformation(hostname string) error
- func (m *Machine) Refresh() error
- func (m *Machine) SetMachineAddresses(addresses []network.MachineAddress) error
- func (m *Machine) SetObservedNetworkConfig(netConfig []params.NetworkConfig) error
- func (m *Machine) SetStatus(status status.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) RecordAgentStartInformation ¶
RecordAgentStartInformation reports the host name of the machine and updates the start time for the agent.
func (*Machine) SetMachineAddresses ¶
func (m *Machine) SetMachineAddresses(addresses []network.MachineAddress) error
SetMachineAddresses sets the machine determined addresses of the machine.
func (*Machine) SetObservedNetworkConfig ¶
func (m *Machine) SetObservedNetworkConfig(netConfig []params.NetworkConfig) error
SetObservedNetworkConfig sets the machine network config as observed on the machine.
Click to show internal directories.
Click to hide internal directories.