juju: github.com/juju/juju/apiserver/facades/controller/instancepoller Index | Files

package instancepoller

import "github.com/juju/juju/apiserver/facades/controller/instancepoller"


Package Files

instancepoller.go state.go

type InstancePollerAPI Uses

type InstancePollerAPI struct {
    // contains filtered or unexported fields

InstancePollerAPI provides access to the InstancePoller API facade.

func NewFacade Uses

func NewFacade(
    st *state.State,
    resources facade.Resources,
    authorizer facade.Authorizer,
) (*InstancePollerAPI, error)

NewFacade wraps NewInstancePollerAPI for facade registration.

func NewInstancePollerAPI Uses

func NewInstancePollerAPI(
    st *state.State,
    m *state.Model,
    resources facade.Resources,
    authorizer facade.Authorizer,
    clock clock.Clock,
) (*InstancePollerAPI, error)

NewInstancePollerAPI creates a new server-side InstancePoller API facade.

func (*InstancePollerAPI) AreManuallyProvisioned Uses

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 Uses

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

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

func (*InstancePollerAPI) ProviderAddresses Uses

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 Uses

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

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

func (*InstancePollerAPI) SetProviderAddresses Uses

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.

func (*InstancePollerAPI) SetProviderNetworkConfig Uses

func (a *InstancePollerAPI) SetProviderNetworkConfig(req params.SetProviderNetworkConfig) (params.SetProviderNetworkConfigResults, error)

SetProviderNetworkConfig updates the provider addresses for one or more machines.

What's more, if the client request includes provider-specific IDs (e.g. network, subnet or address IDs), this method will also iterate any present link layer devices (and their addresses) and backfill any missing provider-specific information.

type StateInterface Uses

type StateInterface interface {

    Machine(id string) (StateMachine, error)

type StateLinkLayerDevice Uses

type StateLinkLayerDevice interface {
    Name() string
    MTU() uint
    Type() network.LinkLayerDeviceType
    IsLoopbackDevice() bool
    MACAddress() string
    IsAutoStart() bool
    IsUp() bool
    ParentName() string
    Addresses() ([]StateLinkLayerDeviceAddress, error)

StateLinkLayerDevice represents a link layer device from state package.

type StateLinkLayerDeviceAddress Uses

type StateLinkLayerDeviceAddress interface {
    ConfigMethod() state.AddressConfigMethod
    SubnetCIDR() string
    DNSServers() []string
    DNSSearchDomains() []string
    GatewayAddress() string
    IsDefaultGateway() bool
    Value() string

StateLinkLayerDevice represents a link layer device address from state package.

type StateMachine Uses

type StateMachine interface {

    Id() string
    InstanceId() (instance.Id, error)
    ProviderAddresses() network.SpaceAddresses
    SetProviderAddresses(...network.SpaceAddress) error
    AllLinkLayerDevices() ([]StateLinkLayerDevice, error)
    SetParentLinkLayerDevicesBeforeTheirChildren([]state.LinkLayerDeviceArgs) error
    SetDevicesAddressesIdempotently([]state.LinkLayerDeviceAddress) error
    InstanceStatus() (status.StatusInfo, error)
    SetInstanceStatus(status.StatusInfo) error
    SetStatus(status.StatusInfo) error
    String() string
    Refresh() error
    Life() state.Life
    Status() (status.StatusInfo, error)
    IsManual() (bool, error)

StateMachine represents a machine from state package.

Package instancepoller imports 11 packages (graph) and is imported by 4 packages. Updated 2020-01-16. Refresh now. Tools for package owners.