util

package
v0.0.0-...-e0f77fc Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeInternalIP

func GetNodeInternalIP(node *kapi.Node) (string, error)

GetNodeInternalIP returns the first NodeInternalIP address of the node

func ParseHybridOverlayHostSubnet

func ParseHybridOverlayHostSubnet(node *kapi.Node) (*net.IPNet, error)

ParseHybridOverlayHostSubnet returns the parsed hybrid overlay hostsubnet if the annotations included a valid one, or nil if they did not include one. If one was included, but it is invalid, an error is returned.

func SameIPNet

func SameIPNet(a, b *net.IPNet) bool

SameIPNet returns true if both inputs are nil or if both inputs have the same value

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL