legacynet

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 7 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) Postfix

func (n *ChainNamer) Postfix(body, suffix string) (string, error)

func (*ChainNamer) Prefix

func (n *ChainNamer) Prefix(prefix, body string) string

type NetIn

type NetIn struct {
	ChainNamer        chainNamer
	IPTables          rules.IPTablesAdapter
	IngressTag        string
	HostInterfaceName string
}

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.IPTablesAdapter
	Converter             netOutRuleConverter
	ASGLogging            bool
	C2CLogging            bool
	IngressTag            string
	VTEPName              string
	HostInterfaceName     string
	DeniedLogsPerSec      int
	AcceptedUDPLogsPerSec int
}

func (*NetOut) BulkInsertRules

func (m *NetOut) BulkInsertRules(containerHandle string, netOutRules []garden.NetOutRule) error

func (*NetOut) Cleanup

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

func (*NetOut) Initialize

func (m *NetOut) Initialize(containerHandle string, containerIP net.IP, dnsServers []string) error

func (*NetOut) InsertRule

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

type NetOutRuleConverter

type NetOutRuleConverter struct {
	Logger io.Writer
}

func (*NetOutRuleConverter) BulkConvert

func (c *NetOutRuleConverter) BulkConvert(netOutRules []garden.NetOutRule, logChainName string, globalLogging bool) []rules.IPTablesRule

func (*NetOutRuleConverter) Convert

func (c *NetOutRuleConverter) Convert(rule garden.NetOutRule, logChainName string, globalLogging bool) []rules.IPTablesRule

Jump to

Keyboard shortcuts

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