juju: github.com/juju/juju/apiserver/facades/agent/caasoperator Index | Files

package caasoperator

import "github.com/juju/juju/apiserver/facades/agent/caasoperator"

Index

Package Files

operator.go state.go

type Application Uses

type Application interface {
    Charm() (Charm, bool, error)
    CharmModifiedVersion() int
    SetOperatorStatus(status.StatusInfo) error
    WatchUnits() state.StringsWatcher
    AllUnits() ([]Unit, error)
}

Application provides the subset of application state required by the CAAS operator facade.

type CAASOperatorState Uses

type CAASOperatorState interface {
    network.SpaceLookup

    Application(string) (Application, error)
    Model() (Model, error)
    ModelUUID() string
    FindEntity(names.Tag) (state.Entity, error)
    APIHostPortsForAgents() ([]network.SpaceHostPorts, error)
    Addresses() ([]string, error)
    WatchAPIHostPortsForAgents() state.NotifyWatcher
}

CAASOperatorState provides the subset of global state required by the CAAS operator facade.

type Charm Uses

type Charm interface {
    URL() *charm.URL
    BundleSha256() string
}

Charm provides the subset of charm state required by the CAAS operator facade.

type Facade Uses

type Facade struct {
    *common.LifeGetter
    *common.AgentEntityWatcher
    *common.Remover
    *common.ToolsSetter
    *common.APIAddresser
    // contains filtered or unexported fields
}

func NewFacade Uses

func NewFacade(
    resources facade.Resources,
    authorizer facade.Authorizer,
    st CAASOperatorState,
) (*Facade, error)

NewFacade returns a new CAASOperator facade.

func NewStateFacade Uses

func NewStateFacade(ctx facade.Context) (*Facade, error)

NewStateFacade provides the signature required for facade registration.

func (*Facade) Charm Uses

func (f *Facade) Charm(args params.Entities) (params.ApplicationCharmResults, error)

Charm returns the charm info for all given applications.

func (*Facade) CurrentModel Uses

func (f *Facade) CurrentModel() (params.ModelResult, error)

CurrentModel returns the name and UUID for the current juju model.

func (*Facade) SetPodSpec Uses

func (f *Facade) SetPodSpec(args params.SetPodSpecParams) (params.ErrorResults, error)

SetPodSpec sets the container specs for a set of applications.

func (*Facade) SetStatus Uses

func (f *Facade) SetStatus(args params.SetStatus) (params.ErrorResults, error)

SetStatus sets the status of each given entity.

func (*Facade) WatchUnits Uses

func (f *Facade) WatchUnits(args params.Entities) (params.StringsWatchResults, error)

WatchUnits starts a StringsWatcher to watch changes to the lifecycle states of units for the specified applications in this model.

type Model Uses

type Model interface {
    SetPodSpec(names.ApplicationTag, string) error
    Name() string
    UUID() string
    Type() state.ModelType
    ModelConfig() (*config.Config, error)
}

Model provides the subset of CAAS model state required by the CAAS operator facade.

type Unit Uses

type Unit interface {
    Tag() names.Tag
}

Package caasoperator imports 12 packages (graph) and is imported by 3 packages. Updated 2019-09-29. Refresh now. Tools for package owners.