ipam

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 8 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 {
	// 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) GetCIDR added in v0.12.0

func (p *IPPool) GetCIDR() string

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