Documentation ¶
Index ¶
- type FirewallerAPI
- func (f *FirewallerAPI) GetAssignedMachine(args params.Entities) (params.StringResults, error)
- func (f *FirewallerAPI) GetExposed(args params.Entities) (params.BoolResults, error)
- func (f *FirewallerAPI) GetMachineActiveSubnets(args params.Entities) (params.StringsResults, error)
- func (f *FirewallerAPI) GetMachinePorts(args params.MachinePortsParams) (params.MachinePortsResults, error)
- func (f *FirewallerAPI) WatchOpenedPorts(args params.Entities) (params.StringsWatchResults, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FirewallerAPI ¶
type FirewallerAPI struct { *common.LifeGetter *common.ModelWatcher *common.AgentEntityWatcher *common.UnitsWatcher *common.ModelMachinesWatcher *common.InstanceIdGetter cloudspec.CloudSpecAPI // contains filtered or unexported fields }
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 ¶
func (f *FirewallerAPI) GetMachinePorts(args params.MachinePortsParams) (params.MachinePortsResults, error)
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.
Click to show internal directories.
Click to hide internal directories.