juju: github.com/juju/juju/api/instancepoller Index | Files

package instancepoller

import "github.com/juju/juju/api/instancepoller"

Index

Package Files

instancepoller.go machine.go

type API Uses

type API struct {
    *common.ModelWatcher
    // contains filtered or unexported fields
}

API provides access to the InstancePoller API facade.

func NewAPI Uses

func NewAPI(caller base.APICaller) *API

NewAPI creates a new client-side InstancePoller facade.

func (*API) Machine Uses

func (api *API) Machine(tag names.MachineTag) (*Machine, error)

Machine provides access to methods of a state.Machine through the facade.

func (*API) WatchModelMachines Uses

func (api *API) WatchModelMachines() (watcher.StringsWatcher, error)

WatchModelMachines return a StringsWatcher reporting waiting for the model configuration to change.

type Machine Uses

type Machine struct {
    // contains filtered or unexported fields
}

Machine represents a juju machine as seen by an instancepoller worker.

func (*Machine) Id Uses

func (m *Machine) Id() string

Id returns the machine's id.

func (*Machine) InstanceId Uses

func (m *Machine) InstanceId() (instance.Id, error)

InstanceId returns the machine's instance id.

func (*Machine) InstanceStatus Uses

func (m *Machine) InstanceStatus() (params.StatusResult, error)

InstanceStatus returns the machine's instance status.

func (*Machine) IsManual Uses

func (m *Machine) IsManual() (bool, error)

IsManual returns whether the machine is manually provisioned.

func (*Machine) Life Uses

func (m *Machine) Life() params.Life

Life returns the machine's lifecycle value.

func (*Machine) ProviderAddresses Uses

func (m *Machine) ProviderAddresses() (network.ProviderAddresses, error)

ProviderAddresses returns all addresses of the machine known to the cloud provider.

func (*Machine) Refresh Uses

func (m *Machine) Refresh() error

Refresh updates the cached local copy of the machine's data.

func (*Machine) SetInstanceStatus Uses

func (m *Machine) SetInstanceStatus(status status.Status, message string, data map[string]interface{}) error

SetInstanceStatus sets the instance status of the machine.

func (*Machine) SetProviderAddresses Uses

func (m *Machine) SetProviderAddresses(addrs ...network.ProviderAddress) error

SetProviderAddresses sets the cached provider addresses for the machine.

func (*Machine) Status Uses

func (m *Machine) Status() (params.StatusResult, error)

Status returns the machine status.

func (*Machine) String Uses

func (m *Machine) String() string

String returns the machine as a string.

func (*Machine) Tag Uses

func (m *Machine) Tag() names.MachineTag

Tag returns the machine's tag.

Package instancepoller imports 10 packages (graph) and is imported by 63 packages. Updated 2019-09-24. Refresh now. Tools for package owners.