utils

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIPAddrInGivenForm

func GetIPAddrInGivenForm(addr *net.IPNet, form netalloc.IPAddressForm) *net.IPNet

GetIPAddrInGivenForm returns IP address in the requested form.

func ParseAddrAllocRef

func ParseAddrAllocRef(addrAllocRef, expIface string) (
	network, iface string, isGW, isRef bool, err error)

ParseAddrAllocRef parses reference to allocated address.

func ParseIPAddr

func ParseIPAddr(addr string, expNet *net.IPNet) (ipNet *net.IPNet, fromExpNet bool, err error)

ParseIPAddr parses IP address from string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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