rules

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const NodePortLocalChain = "ANTREA-NODE-PORT-LOCAL"

NodePortLocalChain is the name of the chain in IPTABLES for Node Port Local

Variables

This section is empty.

Functions

func NewIPTableRules

func NewIPTableRules() *iptablesRules

NewIPTableRules retruns a new instance of IPTableRules

Types

type PodNodePort

type PodNodePort struct {
	NodePort int
	PodPort  int
	PodIP    string
}

PodNodePort contains the Node Port, Pod Port and the Pod IP for NodePortLocal.

type PodPortRules

type PodPortRules interface {
	Init() error
	AddRule(port int, podip string) error
	DeleteRule(port int, podip string) error
	DeleteAllRules() error
	AddAllRules(nplList []PodNodePort) error
}

PodPortRules is an interface to abstract operations on rules for Pods

func InitRules

func InitRules() PodPortRules

InitRules initializes rules based on the underlying implementation

Directories

Path Synopsis
Package testing is a generated GoMock package.
Package testing is a generated GoMock package.

Jump to

Keyboard shortcuts

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