Documentation ¶
Index ¶
- func CheckNotEmpty(name, input string) error
- func DeepCopyStringSlice(in []string) []string
- func DeepEqualStringSlice(a []string, b []string) bool
- func Intersect(rangeA *networkingv1.AddressRange, rangeB *networkingv1.AddressRange) bool
- func LastIP(subnet *net.IPNet) net.IP
- func MinUint32(a, b uint32) uint32
- func NextIP(ip net.IP) net.IP
- func NormalizedIP(ip string) string
- func ParseBoolOrDefault(in string, defaultValue bool) bool
- func PickFirstNonEmptyString(ss ...string) string
- func StringSliceToMap(in []string) (out map[string]struct{})
- func StringToIPNet(in string) *net.IPNet
- func ToDNSFormat(ip net.IP) string
- func ValidateIP(ip string) error
- func ValidateIPv4(ip string) error
- func ValidateIPv6(ip string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNotEmpty ¶ added in v0.6.0
func DeepCopyStringSlice ¶ added in v0.5.0
func DeepEqualStringSlice ¶ added in v0.4.0
func Intersect ¶ added in v0.3.0
func Intersect(rangeA *networkingv1.AddressRange, rangeB *networkingv1.AddressRange) bool
Intersect returns if ip address range of rangeA is overlapped with rangeB.
func LastIP ¶ added in v0.3.0
LastIP Determine the last IP of a subnet, excluding the broadcast if IPv4
func NormalizedIP ¶
NormalizedIP If IP is valid, return itself otherwise empty string
func ParseBoolOrDefault ¶
func PickFirstNonEmptyString ¶
func StringSliceToMap ¶
func StringToIPNet ¶
func ToDNSFormat ¶ added in v0.5.0
func ValidateIP ¶ added in v0.6.0
func ValidateIPv4 ¶ added in v0.6.0
func ValidateIPv6 ¶ added in v0.6.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.