Documentation ¶
Overview ¶
Package ipam is a very simple IPAM it administers a single CIDR range, e.g "172.30.0.0/16"
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoAddressesLeft = errors.New("error: no addresses left") ErrAddressOutOfRange = errors.New("error: address out of range") ErrAddressAlreadyUsed = errors.New("error: address already used") )
View Source
var Check = Fix
Functions ¶
func ReserveFirstAndLast ¶
func ReserveFirstAndLast()
func Unallocated ¶
func Unallocated() uint32
Types ¶
type IPAM ¶
type IPAM interface { Allocate() (net.IP, error) Free(a net.IP) Unallocated() uint32 Reserve(a net.IP) error ReserveFirstAndLast() }
var DefaultIPAM IPAM = &nullIPAM{}
func NewFileIPAM ¶
NewFileIPAM creates a new file backed IPAM for the passed subnet in CIDR form Error if the passed CIDR is invalid.
Click to show internal directories.
Click to hide internal directories.