iputil

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddress

func GetAddress(p netaddr.IPPrefix) string

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

func GetAddressPrefixLength(p netaddr.IPPrefix) string

GetAddressPrefixLength return the prefix lenght of the address in the prefix used only for IP addresses

func GetFirstAddress

func GetFirstAddress(p netaddr.IPPrefix) string

GetAddress return a string prefix notation for an address

func GetPrefixFromAlloc

func GetPrefixFromAlloc(p string, alloc *ipamv1alpha1.IPAllocation) string

func GetPrefixFromRoute

func GetPrefixFromRoute(route *table.Route) *string

func GetPrefixLength

func GetPrefixLength(p netaddr.IPPrefix) string

GetPrefixLength returns a prefix length in string format

func GetPrefixLengthAsInt

func GetPrefixLengthAsInt(p netaddr.IPPrefix) int

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

func GetSubnetName(prefix string) string

func IsAddress

func IsAddress(p netaddr.IPPrefix) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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