instancepoller

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 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 InstancePollerAPI

type InstancePollerAPI struct {
	*common.LifeGetter
	*common.EnvironWatcher
	*common.EnvironMachinesWatcher
	*common.InstanceIdGetter
	*common.StatusGetter
	// contains filtered or unexported fields
}

InstancePollerAPI provides access to the InstancePoller API facade.

func NewInstancePollerAPI

func NewInstancePollerAPI(
	st *state.State,
	resources *common.Resources,
	authorizer common.Authorizer,
) (*InstancePollerAPI, error)

NewInstancePollerAPI creates a new server-side InstancePoller API facade.

func (*InstancePollerAPI) AreManuallyProvisioned

func (a *InstancePollerAPI) AreManuallyProvisioned(args params.Entities) (params.BoolResults, error)

AreManuallyProvisioned returns whether each given entity is manually provisioned or not. Only machine tags are accepted.

func (*InstancePollerAPI) InstanceStatus

func (a *InstancePollerAPI) InstanceStatus(args params.Entities) (params.StringResults, error)

InstanceStatus returns the instance status for each given entity. Only machine tags are accepted.

func (*InstancePollerAPI) ProviderAddresses

func (a *InstancePollerAPI) ProviderAddresses(args params.Entities) (params.MachineAddressesResults, error)

ProviderAddresses returns the list of all known provider addresses for each given entity. Only machine tags are accepted.

func (*InstancePollerAPI) SetInstanceStatus

func (a *InstancePollerAPI) SetInstanceStatus(args params.SetInstancesStatus) (params.ErrorResults, error)

SetInstanceStatus updates the instance status for each given entity. Only machine tags are accepted.

func (*InstancePollerAPI) SetProviderAddresses

func (a *InstancePollerAPI) SetProviderAddresses(args params.SetMachinesAddresses) (params.ErrorResults, error)

SetProviderAddresses updates the list of known provider addresses for each given entity. Only machine tags are accepted.

type StateMachine

type StateMachine interface {
	state.Entity

	Id() string
	InstanceId() (instance.Id, error)
	ProviderAddresses() []network.Address
	SetProviderAddresses(...network.Address) error
	InstanceStatus() (string, error)
	SetInstanceStatus(status string) error
	String() string
	Refresh() error
	Life() state.Life
	Status() (state.StatusInfo, error)
	IsManual() (bool, error)
}

Jump to

Keyboard shortcuts

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