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

package caasfirewaller

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

Index

Package Files

firewaller.go state.go

type Application Uses

type Application interface {
    IsExposed() bool
    ApplicationConfig() (application.ConfigAttributes, error)
    Watch() state.NotifyWatcher
}

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

type CAASFirewallerState Uses

type CAASFirewallerState interface {
    FindEntity(tag names.Tag) (state.Entity, error)
    Application(string) (Application, error)
    WatchApplications() state.StringsWatcher
}

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

type Facade Uses

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

func NewFacade Uses

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

NewFacade returns a new CAAS firewaller Facade facade.

func NewStateFacade Uses

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

NewStateFacade provides the signature required for facade registration.

func (*Facade) ApplicationsConfig Uses

func (f *Facade) ApplicationsConfig(args params.Entities) (params.ApplicationGetConfigResults, error)

ApplicationsConfig returns the config for the specified applications.

func (*Facade) IsExposed Uses

func (f *Facade) IsExposed(args params.Entities) (params.BoolResults, error)

IsExposed returns whether the specified applications are exposed.

func (*Facade) WatchApplications Uses

func (f *Facade) WatchApplications() (params.StringsWatchResult, error)

WatchApplications starts a StringsWatcher to watch CAAS applications deployed to this model.

Package caasfirewaller imports 8 packages (graph) and is imported by 3 packages. Updated 2019-08-23. Refresh now. Tools for package owners.