ipam

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 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