firewaller

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FirewallerAPI

FirewallerAPI provides access to the Firewaller API facade.

func NewFirewallerAPI

func NewFirewallerAPI(
	st *state.State,
	resources facade.Resources,
	authorizer facade.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 application.

func (*FirewallerAPI) GetMachineActiveSubnets

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

GetMachineActiveSubnets returns the tags of the all subnets that each machine (in args) has open ports on.

func (*FirewallerAPI) GetMachinePorts

GetMachinePorts returns the port ranges opened on a machine for the specified subnet 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