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

func DeleteIPTables(rules []IPTablesRule) error

DeleteIPTables delete specified iptables rules

func SetupAndEnsureIPTables

func SetupAndEnsureIPTables(rules []IPTablesRule, resyncPeriod int)

Types

type IPTables

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

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

func ForwardRules

func ForwardRules(flannelNetwork string) []IPTablesRule

func MasqRules

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