Documentation
¶
Index ¶
- Variables
- type API
- type Machine
- func (m *Machine) Id() string
- func (m *Machine) InstanceId(ctx context.Context) (instance.Id, error)
- func (m *Machine) InstanceStatus(ctx context.Context) (params.StatusResult, error)
- func (m *Machine) IsManual(ctx context.Context) (bool, error)
- func (m *Machine) Life() life.Value
- func (m *Machine) Refresh(ctx context.Context) error
- func (m *Machine) SetInstanceStatus(ctx context.Context, status status.Status, message string, ...) error
- func (m *Machine) SetProviderNetworkConfig(ctx context.Context, ifList network.InterfaceInfos) (network.ProviderAddresses, bool, error)
- func (m *Machine) Status(ctx context.Context) (params.StatusResult, error)
- func (m *Machine) String() string
- func (m *Machine) Tag() names.MachineTag
- 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 API ¶
type API struct {
// contains filtered or unexported fields
}
API provides access to the InstancePoller API facade.
func (*API) WatchModelMachines ¶
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 ¶
InstanceStatus returns the machine's instance status.
func (*Machine) SetInstanceStatus ¶
func (m *Machine) SetInstanceStatus(ctx context.Context, 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(ctx context.Context, 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.