net

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LastIP added in v0.9.0

func LastIP(prefix netip.Prefix) netip.Addr

LastIP returns the last IP address in the given prefix.

func NewApoxy4To6Prefix added in v0.9.0

func NewApoxy4To6Prefix(projectID uuid.UUID, endpoint string) netip.Prefix

NewApoxy4To6Prefix generates a new IPv6 address from the Apoxy4To6Range prefix.

Types

type IPAM added in v0.9.0

type IPAM interface {
	// Allocate allocates an IP address for a peer.
	Allocate(r *http.Request) netip.Prefix

	// Release releases an IP address for a peer. No-op if the address is not allocated
	// (returns nil).
	Release(peerPrefix netip.Prefix) error
}

func NewRandomULA added in v0.9.0

func NewRandomULA() IPAM

Jump to

Keyboard shortcuts

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