Documentation ¶
Index ¶
- Variables
- type Client
- type Machine
- func (m *Machine) EnsureDead(ctx context.Context) error
- func (m *Machine) IsController(ctx context.Context, machineName string) (bool, error)
- func (m *Machine) Life() life.Value
- func (m *Machine) RecordAgentStartInformation(ctx context.Context, hostname string) error
- func (m *Machine) Refresh(ctx context.Context) error
- func (m *Machine) SetMachineAddresses(ctx context.Context, addresses []network.MachineAddress) error
- func (m *Machine) SetObservedNetworkConfig(ctx context.Context, netConfig []params.NetworkConfig) error
- func (m *Machine) SetStatus(ctx context.Context, status status.Status, info string, ...) error
- func (m *Machine) Tag() names.Tag
- func (m *Machine) Watch(ctx context.Context) (watcher.NotifyWatcher, error)
- type Option
Constants ¶
This section is empty.
Variables ¶
View Source
var WithTracer = base.WithTracer
WithTracer returns an Option that configures the Client to use the supplied tracer.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { *common.APIAddresser // contains filtered or unexported fields }
Client provides access to the Machiner API facade.
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) IsController ¶
IsController returns true if the provided machine is a controller one.
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(ctx context.Context, addresses []network.MachineAddress) error
SetMachineAddresses sets the machine determined addresses of the machine.
func (*Machine) SetObservedNetworkConfig ¶
func (m *Machine) SetObservedNetworkConfig(ctx context.Context, 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.