ipam

package
v0.12.0-m0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringIPToInt

func StringIPToInt(stringIP string) int

Types

type IPPool

type IPPool struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewIPPool

func NewIPPool(cidr string) (*IPPool, error)

func (*IPPool) Allocate

func (p *IPPool) Allocate(num int) ([]string, error)

func (*IPPool) Release

func (p *IPPool) Release(ips ...string) error

func (*IPPool) Reserve

func (p *IPPool) Reserve(ips ...string) error

func (*IPPool) Size

func (p *IPPool) Size() int

Jump to

Keyboard shortcuts

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