Documentation ¶
Index ¶
- type Application
- type CAASFirewallerState
- type Facade
- func (f *Facade) ApplicationCharmInfo(args params.Entity) (params.Charm, error)
- func (f *Facade) ApplicationsConfig(args params.Entities) (params.ApplicationGetConfigResults, error)
- func (f *Facade) CharmInfo(args params.CharmURL) (params.Charm, error)
- func (f *Facade) IsExposed(args params.Entities) (params.BoolResults, error)
- func (f *Facade) WatchApplications() (params.StringsWatchResult, error)
- type FacadeSidecar
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 charmscommon.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 // contains filtered or unexported fields }
func NewStateFacadeLegacy ¶
NewStateFacadeLegacy provides the signature required for facade registration.
func (*Facade) ApplicationCharmInfo ¶
ApplicationCharmInfo returns information about an application's charm.
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 applications deployed to this model.
type FacadeSidecar ¶
type FacadeSidecar struct { *Facade // contains filtered or unexported fields }
FacadeSidecar provides access to the CAASFirewaller API facade for sidecar applications.
func NewStateFacadeSidecar ¶
func NewStateFacadeSidecar(ctx facade.Context) (*FacadeSidecar, error)
NewStateFacadeSidecar provides the signature required for facade registration.
func (*FacadeSidecar) WatchOpenedPorts ¶
func (f *FacadeSidecar) WatchOpenedPorts(args params.Entities) (params.StringsWatchResults, error)
WatchOpenedPorts returns a new StringsWatcher for each given model tag.