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 }
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 }
CAASUnitProvisionerState provides the subset of global state required by the CAAS operator facade.
type Facade ¶
type Facade struct { *common.LifeGetter *common.AgentEntityWatcher // contains filtered or unexported fields }
func NewFacade ¶
func NewFacade( resources facade.Resources, authorizer facade.Authorizer, st CAASFirewallerState, ) (*Facade, error)
NewFacade returns a new CAAS firewaller Facade facade.
func NewStateFacade ¶
NewStateFacade 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.
func (*Facade) WatchApplications ¶
func (f *Facade) WatchApplications() (params.StringsWatchResult, error)
WatchApplications starts a StringsWatcher to watch CAAS applications deployed to this model.
Click to show internal directories.
Click to hide internal directories.