instancepoller

package
v0.0.0-...-6cf1bc9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2016 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API provides access to the InstancePoller API facade.

func NewAPI

func NewAPI(caller base.APICaller) *API

NewAPI creates a new client-side InstancePoller facade.

func (*API) Machine

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

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

func (*API) WatchModelMachines

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

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

type Machine

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

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

func (*Machine) Id

func (m *Machine) Id() string

Id returns the machine's id.

func (*Machine) InstanceId

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

InstanceId returns the machine's instance id.

func (*Machine) InstanceStatus

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

InstanceStatus returns the machine's instance status.

func (*Machine) IsManual

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

IsManual returns whether the machine is manually provisioned.

func (*Machine) Life

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

Life returns the machine's lifecycle value.

func (*Machine) ProviderAddresses

func (m *Machine) ProviderAddresses() ([]network.Address, error)

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

func (*Machine) Refresh

func (m *Machine) Refresh() error

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

func (*Machine) SetInstanceStatus

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

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

SetProviderAddresses sets the cached provider addresses for the machine.

func (*Machine) Status

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

Status returns the machine status.

func (*Machine) String

func (m *Machine) String() string

String returns the machine as a string.

func (*Machine) Tag

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

Tag returns the machine's tag.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL