Documentation
¶
Index ¶
- func Register(registry facade.FacadeRegistry)
- type Application
- type ApplicationService
- type CAASFirewallerState
- type Facade
- func (f *Facade) ApplicationCharmInfo(ctx context.Context, args params.Entity) (params.Charm, error)
- func (f *Facade) ApplicationsConfig(ctx context.Context, args params.Entities) (params.ApplicationGetConfigResults, error)
- func (f *Facade) CharmInfo(ctx context.Context, args params.CharmURL) (params.Charm, error)
- func (f *Facade) IsExposed(ctx context.Context, args params.Entities) (params.BoolResults, error)
- func (f *Facade) Life(ctx context.Context, args params.Entities) (params.LifeResults, error)
- func (f *Facade) WatchApplications(ctx context.Context) (params.StringsWatchResult, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(registry facade.FacadeRegistry)
Register is called to expose a package of facades onto a given registry.
Types ¶
type Application ¶
type Application interface { IsExposed() bool ApplicationConfig() (config.ConfigAttributes, error) Watch() state.NotifyWatcher }
Application provides the subset of application state required by the CAAS operator facade.
type ApplicationService ¶
type ApplicationService interface { // GetApplicationLife looks up the life of the specified application. GetApplicationLife(context.Context, string) (life.Value, error) // GetUnitLife looks up the life of the specified unit. GetUnitLife(context.Context, unit.Name) (life.Value, error) // GetApplicationIDByName returns a application ID by application name. It // returns an error if the application can not be found by the name. GetApplicationIDByName(ctx context.Context, name string) (application.ID, error) }
ApplicationService provides access to the application service.
type CAASFirewallerState ¶
type CAASFirewallerState interface { FindEntity(tag names.Tag) (state.Entity, error) Application(string) (Application, error) WatchApplications() state.StringsWatcher }
CAASFirewallerState provides the subset of global state required by the CAAS operator facade.
type Facade ¶
type Facade struct { *common.AgentEntityWatcher // contains filtered or unexported fields }
func NewFacade ¶
func NewFacade( resources facade.Resources, watcherRegistry facade.WatcherRegistry, authorizer facade.Authorizer, st CAASFirewallerState, commonCharmsAPI *charmscommon.CharmInfoAPI, appCharmInfoAPI *charmscommon.ApplicationCharmInfoAPI, applicationService ApplicationService, ) (*Facade, error)
func (*Facade) ApplicationCharmInfo ¶
func (f *Facade) ApplicationCharmInfo(ctx context.Context, args params.Entity) (params.Charm, error)
ApplicationCharmInfo returns information about an application's charm.
func (*Facade) ApplicationsConfig ¶
func (f *Facade) ApplicationsConfig(ctx context.Context, args params.Entities) (params.ApplicationGetConfigResults, error)
ApplicationsConfig returns the config for the specified applications.
func (*Facade) WatchApplications ¶
WatchApplications starts a StringsWatcher to watch applications deployed to this model.
Click to show internal directories.
Click to hide internal directories.