Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Application ¶
type Application interface {
Name() string
}
type FirewallerAPI ¶
type FirewallerAPI struct {
// contains filtered or unexported fields
}
FirewallerAPI provides access to the Remote Firewaller API facade.
func NewRemoteFirewallerAPI ¶
func NewRemoteFirewallerAPI( st State, resources facade.Resources, authorizer facade.Authorizer, ) (*FirewallerAPI, error)
NewRemoteFirewallerAPI creates a new server-side FirewallerAPI facade.
func NewStateRemoteFirewallerAPI ¶
func NewStateRemoteFirewallerAPI(ctx facade.Context) (*FirewallerAPI, error)
NewStateRemoteFirewallerAPI creates a new server-side RemoteFirewallerAPI facade.
func (*FirewallerAPI) IngressSubnetsForRelations ¶
func (api *FirewallerAPI) IngressSubnetsForRelations(remoteEntities params.RemoteEntities) (params.IngressSubnetResults, error)
IngressSubnetsForRelations returns any CIDRs for which ingress is required to allow the specified relations to properly function.
func (*FirewallerAPI) WatchSubnets ¶
func (f *FirewallerAPI) WatchSubnets() (params.StringsWatchResult, error)
WatchSubnets creates a strings watcher that notifies of the addition, removal, and lifecycle changes of subnets in the model.
type State ¶
type State interface { ModelUUID() string WatchSubnets() state.StringsWatcher GetRemoteEntity(model names.ModelTag, token string) (names.Tag, error) AllSubnets() (subnets []Subnet, err error) KeyRelation(string) (Relation, error) Application(string) (Application, error) }
State provides the subset of global state required by the remote firewaller facade.
Click to show internal directories.
Click to hide internal directories.