network

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2018 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupAndEnsureIPTables added in v0.9.1

func SetupAndEnsureIPTables(rules []IPTablesRule)

Types

type IPTables added in v0.9.1

type IPTables interface {
	AppendUnique(table string, chain string, rulespec ...string) error
	Delete(table string, chain string, rulespec ...string) error
	Exists(table string, chain string, rulespec ...string) (bool, error)
}

type IPTablesRule added in v0.9.1

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

func ForwardRules added in v0.9.1

func ForwardRules(flannelNetwork string) []IPTablesRule

func MasqRules added in v0.9.1

func MasqRules(ipn ip.IP4Net, lease *subnet.Lease) []IPTablesRule

Jump to

Keyboard shortcuts

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