Documentation ¶
Index ¶
- type NodePortData
- type PortTable
- func (pt *PortTable) AddRule(podIP string, podPort int) (int, error)
- func (pt *PortTable) AddUpdateEntry(nodeport, podport int, podip string)
- func (pt *PortTable) CleanupAllEntries()
- func (pt *PortTable) DeleteEntry(nodeport int)
- func (pt *PortTable) DeleteEntryByPodIP(ip string)
- func (pt *PortTable) DeleteEntryByPodIPPort(ip string, port int)
- func (pt *PortTable) DeleteRule(podIP string, podPort int) error
- func (pt *PortTable) GetDataForPodIP(ip string) []NodePortData
- func (pt *PortTable) GetEntry(nodeport int) *NodePortData
- func (pt *PortTable) GetEntryByPodIPPort(ip string, port int) *NodePortData
- func (pt *PortTable) RuleExists(podIP string, podPort int) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortTable ¶
type PortTable struct { Table map[int]NodePortData StartPort int EndPort int PodPortRules rules.PodPortRules // contains filtered or unexported fields }
func NewPortTable ¶
func (*PortTable) AddUpdateEntry ¶
func (*PortTable) CleanupAllEntries ¶
func (pt *PortTable) CleanupAllEntries()
func (*PortTable) DeleteEntry ¶
func (*PortTable) DeleteEntryByPodIP ¶
func (*PortTable) DeleteEntryByPodIPPort ¶
func (*PortTable) GetDataForPodIP ¶
func (pt *PortTable) GetDataForPodIP(ip string) []NodePortData
func (*PortTable) GetEntry ¶
func (pt *PortTable) GetEntry(nodeport int) *NodePortData
func (*PortTable) GetEntryByPodIPPort ¶
func (pt *PortTable) GetEntryByPodIPPort(ip string, port int) *NodePortData
Click to show internal directories.
Click to hide internal directories.