local

package
v0.1.0-beta1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	IPAMLeaseNotAvailable = "IPAMLeaseNotAvailable"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAM

type IPAM struct {
	// contains filtered or unexported fields
}

IPAM - IP address management

func New

func New(cidr string) (*IPAM, error)

New IPAM object initializing and returning

func (*IPAM) Available

func (i *IPAM) Available() int

Available ips count

func (*IPAM) Lease

func (i *IPAM) Lease() (*net.IP, error)

Lease IP from range

func (*IPAM) Release

func (i *IPAM) Release(ip *net.IP) error

release IP

func (*IPAM) Reserved

func (i *IPAM) Reserved() int

Reserved ips count

Jump to

Keyboard shortcuts

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