iptables_manager

package
v0.0.0-...-8791bc1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilterChain

func NewFilterChain(cfg *sysconfig.IPTablesFilterConfig, runner command_runner.CommandRunner, logger lager.Logger) *filterChain

func NewNATChain

func NewNATChain(cfg *sysconfig.IPTablesNATConfig, runner command_runner.CommandRunner, logger lager.Logger) *natChain

Types

type Chain

type Chain interface {
	Setup(containerID, bridgeName string, ip net.IP, network *net.IPNet) error
	Teardown(containerID string) error
}

type IPTablesManager

type IPTablesManager struct {
	// contains filtered or unexported fields
}

func New

func New() *IPTablesManager

func (*IPTablesManager) AddChain

func (mgr *IPTablesManager) AddChain(chain Chain) *IPTablesManager

func (*IPTablesManager) ContainerSetup

func (mgr *IPTablesManager) ContainerSetup(containerID, bridgeName string, ip net.IP, network *net.IPNet) error

func (*IPTablesManager) ContainerTeardown

func (mgr *IPTablesManager) ContainerTeardown(containerID string) error

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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