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
Click to show internal directories.
Click to hide internal directories.