Documentation ¶
Index ¶
- func FindNodeIPv6(node *corev1.Node) net.IP
- func FormatIPNets(ipNets []*net.IPNet) string
- func IsV4(ip net.IP) bool
- func IsV6(ip net.IP) bool
- func NewUID() string
- func ParseIPNets(ipNetStrings []string) ([]*net.IPNet, error)
- func ParseNodePodCIDRs(node *corev1.Node) ([]*net.IPNet, error)
- type Tables
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindNodeIPv6 ¶
FindNodeIPv6 returns the first IPv6 address of the node's InternalIPs, nil if not found.
func FormatIPNets ¶
FormatIPNets returns the string representation of a slice of net.IPNet.
func NewUID ¶
func NewUID() string
NewUID tries to return a locally unique ID. Don't use it concurrently. Not thread safe.
func ParseIPNets ¶
ParseIPNets returns the parsed subnets.
Types ¶
type Tables ¶
Tables wraps iptables.IPTables.
func (*Tables) InsertUnique ¶
InsertUnique inserts a rule if it doesn't already exist.
func (*Tables) NewChainUnique ¶
NewChainUnique creates a chain if it doesn't already exist.
Click to show internal directories.
Click to hide internal directories.