caasfirewaller

package
v0.0.0-...-8ff1004 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2019 License: AGPL-3.0 Imports: 8 Imported by: 0

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

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

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) IsExposed

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

IsExposed returns whether the specified applications are exposed.

func (*Facade) WatchApplications

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL