remotefirewaller

package
v0.0.0-...-a0d7459 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2017 License: AGPL-3.0 Imports: 12 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 {
	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 Relation

type Relation interface {
	Endpoints() []state.Endpoint
}

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.

type Subnet

type Subnet interface {
	CIDR() string
}

Jump to

Keyboard shortcuts

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