firewaller

package
v0.0.0-...-732aecd Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2014 License: AGPL-3.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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