instancepoller

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 8 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.EnvironWatcher
	// 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) WatchEnvironMachines

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

WatchEnvironMachines return a StringsWatcher reporting waiting for the environment 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() (string, 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 string) 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