subnet

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Allocator

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

func NewAllocator

func NewAllocator(cidr string, paranoid bool) *Allocator

func (*Allocator) Allocate

func (a *Allocator) Allocate(port int) (ip net.IP, err error)

func (*Allocator) AllocateContext

func (a *Allocator) AllocateContext(ctx context.Context, port int) (ip net.IP, err error)

func (*Allocator) Deallocate

func (a *Allocator) Deallocate(ip net.IP)

func (*Allocator) Generate

func (a *Allocator) Generate() (ip net.IP)

Jump to

Keyboard shortcuts

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