Documentation ¶
Index ¶
- func GetAddress(p netaddr.IPPrefix) string
- func GetAddressFamily(p netaddr.IPPrefix) ipamv1alpha1.AddressFamily
- func GetAddressPrefixLength(p netaddr.IPPrefix) string
- func GetFirstAddress(p netaddr.IPPrefix) string
- func GetPrefixFromAlloc(p string, alloc *ipamv1alpha1.IPAllocation) string
- func GetPrefixFromRoute(route *table.Route) *string
- func GetPrefixLength(p netaddr.IPPrefix) string
- func GetPrefixLengthAsInt(p netaddr.IPPrefix) int
- func GetPrefixLengthFromAlloc(route *table.Route, alloc *ipamv1alpha1.IPAllocation) uint8
- func GetSubnetName(prefix string) string
- func IsAddress(p netaddr.IPPrefix) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddress ¶
GetAddress return a string prefix notation for an address
func GetAddressFamily ¶
func GetAddressFamily(p netaddr.IPPrefix) ipamv1alpha1.AddressFamily
GetAddressFamily returns an address family
func GetAddressPrefixLength ¶
GetAddressPrefixLength return the prefix lenght of the address in the prefix used only for IP addresses
func GetFirstAddress ¶
GetAddress return a string prefix notation for an address
func GetPrefixFromAlloc ¶
func GetPrefixFromAlloc(p string, alloc *ipamv1alpha1.IPAllocation) string
func GetPrefixFromRoute ¶
func GetPrefixLength ¶
GetPrefixLength returns a prefix length in string format
func GetPrefixLengthAsInt ¶
GetPrefixLength returns a prefix length in int format
func GetPrefixLengthFromAlloc ¶
func GetPrefixLengthFromAlloc(route *table.Route, alloc *ipamv1alpha1.IPAllocation) uint8
func GetSubnetName ¶ added in v0.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.