legacynet

package
v2.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 30, 2018 License: Apache-2.0 Imports: 8 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 IpTablesFullChain added in v0.3.0

type IpTablesFullChain struct {
	Table          string
	ParentChain    string
	ChainName      string
	JumpConditions []rules.IPTablesRule
	Rules          []rules.IPTablesRule
}

type NetIn

type NetIn struct {
	ChainNamer         chainNamer
	IPTables           rules.IPTablesAdapter
	IngressTag         string
	HostInterfaceNames []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
	HostInterfaceNames    []string
	DeniedLogsPerSec      int
	AcceptedUDPLogsPerSec int
	ContainerHandle       string
	ContainerIP           string
	HostTCPServices       []string
	DNSServers            []string
}

func (*NetOut) BulkInsertRules

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

func (*NetOut) Cleanup

func (m *NetOut) Cleanup() error

func (*NetOut) Initialize

func (m *NetOut) Initialize() 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