Documentation ¶
Overview ¶
Copyright 2012, 2013 Canonical Ltd. Licensed under the AGPLv3, see LICENCE file for details.
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) OpenedPorts ¶
func (f *FirewallerAPI) OpenedPorts(args params.Entities) (params.PortsResults, error)
OpenedPorts returns the list of opened ports for each given unit.
Click to show internal directories.
Click to hide internal directories.