utils

package
v1.16.15 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseCIDRs

func ParseCIDRs(cidrs string) (v4IPs, v6IPs []string, err error)

ParseCIDRs parses the comma-separated list of CIDRs and returns the IPv4 and IPv6 CIDRs.

func ParseIPAndPrefix added in v1.5.30

func ParseIPAndPrefix(primaryIP string) (ip string, prefixSize int, err error)

ParseIPAndPrefix parses the primaryIP and returns the IP address and prefix length.

Types

This section is empty.

Jump to

Keyboard shortcuts

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