network

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteIPTables added in v0.11.0

func DeleteIPTables(rules []IPTablesRule) error

DeleteIPTables delete specified iptables rules

func SetupAndEnsureIPTables added in v0.9.1

func SetupAndEnsureIPTables(rules []IPTablesRule, resyncPeriod int)

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