dnshelpers

package
v0.0.0-alpha.0....-eeef803 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEscapedPreferredInternalIPAddressForNodeName

func GetEscapedPreferredInternalIPAddressForNodeName(network *configv1.Network, node *corev1.Node) (string, error)

GetEscapedPreferredInternalIPAddressForNodeName returns the first internal ip address of the correct family with escaping for ipv6.

func GetIPFromAddress

func GetIPFromAddress(address string) (string, error)

GetIPFromAddress takes a client or peer address and returns the IP address (unescaped if IPv6).

func GetInternalIPAddressesForNodeName

func GetInternalIPAddressesForNodeName(node *corev1.Node) ([]string, error)

func GetPreferredIPFamily

func GetPreferredIPFamily(network *configv1.Network) (string, error)

GetPreferredIPFamily checks network status for service CIDR to conclude IP family. If status is not yet populated fallback to spec.

func GetPreferredInternalIPAddressForNodeName

func GetPreferredInternalIPAddressForNodeName(network *configv1.Network, node *corev1.Node) (string, string, error)

GetPreferredInternalIPAddressForNodeName returns the first internal ip address of the correct family and the family

func IsIPv4

func IsIPv4(ipString string) (bool, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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