rules

package
v1.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNetNatRules added in v1.7.0

func NewNetNatRules() *netnatRules

NewNetNatRules retruns a new instance of netnatRules.

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 added in v1.7.0

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 added in v1.7.0

func InitRules() PodPortRules

InitRules initializes rules based on the netnatstaticmapping implementation on windows

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