Documentation ¶
Index ¶
- func GenerateContainerInterfaceKey(podName, podNamespace string) string
- func GenerateContainerInterfaceName(podName string, podNamespace string) string
- func GenerateNodeTunnelInterfaceKey(nodeName string) string
- func GenerateNodeTunnelInterfaceName(nodeName string) string
- func GetIPNetDeviceFromIP(localIP net.IP) (*net.IPNet, netlink.Link, error)
- func GetNetLink(dev string) netlink.Link
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateContainerInterfaceKey ¶ added in v0.3.0
GenerateContainerInterfaceKey generates a unique string for a Pod interface as: pod/<Pod-Namespace-name>/<Pod-name>.
func GenerateContainerInterfaceName ¶
GenerateContainerInterfaceName generates a unique interface name using the Pod's Namespace and name. The output should be deterministic (so that multiple calls to GenerateContainerInterfaceName with the same parameters return the same value). The output has the length of interfaceNameLength(15). The probability of collision should be neglectable.
func GenerateNodeTunnelInterfaceKey ¶ added in v0.3.0
GenerateNodeTunnelInterfaceKey generates a unique string for a Node's tunnel interface as: node/<Node-name>.
func GenerateNodeTunnelInterfaceName ¶ added in v0.3.0
GenerateNodeTunnelInterfaceName generates a unique interface name for the tunnel to the Node, using the Node's name.
func GetIPNetDeviceFromIP ¶ added in v0.4.0
GetIPNetDeviceFromIP returns a local IP/mask and associated device from IP.
func GetNetLink ¶ added in v0.4.0
GetNetLink returns dev link from name.
Types ¶
This section is empty.