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) GetMachineActiveNetworks(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.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 ¶
func (f *FirewallerAPI) GetMachinePorts(args params.MachinePortsParams) (params.MachinePortsResults, error)
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.
Click to show internal directories.
Click to hide internal directories.