legacynet

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2016 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainNamer

type ChainNamer struct {
	MaxLength int
}

func (*ChainNamer) Name

func (n *ChainNamer) Name(prefix, containerHandle string) string

type NetIn

type NetIn struct {
	ChainNamer chainNamer
	IPTables   rules.IPTables
}

func (*NetIn) AddRule

func (m *NetIn) AddRule(containerHandle string,
	hostPort, containerPort int, hostIP, containerIP string) error

func (*NetIn) Cleanup

func (m *NetIn) Cleanup(containerHandle string) error

func (*NetIn) Initialize

func (m *NetIn) Initialize(containerHandle string) error

type NetOut

type NetOut struct {
	ChainNamer chainNamer
	IPTables   rules.IPTables
}

func (*NetOut) Cleanup

func (m *NetOut) Cleanup(containerHandle string) error

func (*NetOut) Initialize

func (m *NetOut) Initialize(logger lager.Logger, containerHandle string, containerIP net.IP, overlayNetwork string) error

func (*NetOut) InsertRule

func (m *NetOut) InsertRule(containerHandle string, rule garden.NetOutRule, containerIP string) error

Jump to

Keyboard shortcuts

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