rules

package
v1.13.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 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
	Protocol  string
	Protocols []string
}

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

type PodPortRules

type PodPortRules interface {
	Init() error
	AddRule(nodePort int, podIP string, podPort int, protocol string) error
	DeleteRule(nodePort int, podIP string, podPort int, protocol 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