ipam

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: GPL-2.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAllocationNotImplemented = errors.New("ipv4 allocation not implemented")
)

Functions

func GetIPByLocation

func GetIPByLocation(subnet *net.IPNet, rack string, bottomU uint, sublocation string) (net.IP, error)

func GetIpById

func GetIpById(id int, subnet *net.IPNet, reservedAdresses ...net.IP) (net.IP, error)

func GetRangeByLocation

func GetRangeByLocation(subnet *net.IPNet, rack string, bottomU uint, sublocation string) (net.IP, net.IP, error)

func IsV6

func IsV6(ip net.IP) bool

func LocationBits

func LocationBits(rack string, bottomU uint, sublocation string) (uint64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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