firewaller

package
v0.0.0-...-a002913 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2015 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirewallerAPI

type FirewallerAPI struct {
	*common.LifeGetter
	*common.EnvironWatcher
	*common.AgentEntityWatcher
	*common.UnitsWatcher
	*common.EnvironMachinesWatcher
	*common.InstanceIdGetter
	// contains filtered or unexported fields
}

FirewallerAPI provides access to the Firewaller API facade.

func NewFirewallerAPI

func NewFirewallerAPI(
	st *state.State,
	resources *common.Resources,
	authorizer common.Authorizer,
) (*FirewallerAPI, error)

NewFirewallerAPI creates a new server-side FirewallerAPI facade.

func (*FirewallerAPI) GetAssignedMachine

func (f *FirewallerAPI) GetAssignedMachine(args params.Entities) (params.StringResults, error)

GetAssignedMachine returns the assigned machine tag (if any) for each given unit.

func (*FirewallerAPI) GetExposed

func (f *FirewallerAPI) GetExposed(args params.Entities) (params.BoolResults, error)

GetExposed returns the exposed flag value for each given service.

func (*FirewallerAPI) GetMachineActiveNetworks

func (f *FirewallerAPI) GetMachineActiveNetworks(args params.Entities) (params.StringsResults, error)

GetMachineActiveNetworks returns the tags of the all networks the each given machine has open ports on.

func (*FirewallerAPI) GetMachinePorts

GetMachinePorts returns the port ranges opened on a machine for the specified network as a map mapping port ranges to the tags of the units that opened them.

func (*FirewallerAPI) WatchOpenedPorts

func (f *FirewallerAPI) WatchOpenedPorts(args params.Entities) (params.StringsWatchResults, error)

WatchOpenedPorts returns a new StringsWatcher for each given environment tag.

Jump to

Keyboard shortcuts

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