net

package
v1.102.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDualStackForKubeComponents added in v1.101.0

func CheckDualStackForKubeComponents(cidrs []net.IPNet, networkType string) error

CheckDualStackForKubeComponents checks if the given list of CIDRs does not include more than one element of the same IP family.

func GetBitLen

func GetBitLen(address string) (int, error)

GetBitLen returns the bit length of the given IP address.

func Join added in v1.99.0

func Join(cidrs []net.IPNet, sep string) string

Join concatenates the CIDRs of the given networks to create a single string with a custom separator character.

func JoinByComma added in v1.99.0

func JoinByComma(cidrs []net.IPNet) string

JoinByComma concatenates the CIDRs of the given networks to create a single string with comma as separator.

Types

This section is empty.

Jump to

Keyboard shortcuts

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