Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface { IsExposed() bool ApplicationConfig() (application.ConfigAttributes, error) Watch() state.NotifyWatcher Charm() (ch Charm, force bool, err error) }
Application provides the subset of application state required by the CAAS operator facade.
type CAASFirewallerState ¶
type CAASFirewallerState interface { FindEntity(tag names.Tag) (state.Entity, error) Application(string) (Application, error) WatchApplications() state.StringsWatcher WatchOpenedPorts() state.StringsWatcher }
CAASFirewallerState provides the subset of global state required by the CAAS operator facade.
type Facade ¶
type Facade struct { *common.LifeGetter *common.AgentEntityWatcher *common.ApplicationWatcherFacade // contains filtered or unexported fields }
func NewStateFacadeLegacy ¶
NewStateFacadeLegacy provides the signature required for facade registration.
func (*Facade) ApplicationsConfig ¶
func (f *Facade) ApplicationsConfig(args params.Entities) (params.ApplicationGetConfigResults, error)
ApplicationsConfig returns the config for the specified applications.
type FacadeEmbedded ¶
type FacadeEmbedded struct { *Facade *charmscommon.CharmsAPI // contains filtered or unexported fields }
FacadeEmbedded provides access to the CAASFireWaller API facade for embedded applications.
func NewStateFacadeEmbedded ¶
func NewStateFacadeEmbedded(ctx facade.Context) (*FacadeEmbedded, error)
NewStateFacadeEmbedded provides the signature required for facade registration.
func (*FacadeEmbedded) ApplicationCharmURLs ¶
func (f *FacadeEmbedded) ApplicationCharmURLs(args params.Entities) (params.StringResults, error)
ApplicationCharmURLs finds the CharmURL for an application.
func (*FacadeEmbedded) WatchOpenedPorts ¶
func (f *FacadeEmbedded) WatchOpenedPorts(args params.Entities) (params.StringsWatchResults, error)
WatchOpenedPorts returns a new StringsWatcher for each given model tag.