ipam

package
v0.0.0-...-aa34488 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UnspecifiedIPAddress = net.IP{0, 0, 0, 0}
)

Functions

This section is empty.

Types

type IPAllocator

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

func NewIPAllocator

func NewIPAllocator() *IPAllocator

func (*IPAllocator) AllocateIP

func (a *IPAllocator) AllocateIP(name string, designatedIPStr string) (net.IP, error)

func (*IPAllocator) DeallocateIP

func (a *IPAllocator) DeallocateIP(name string, designatedIPStr string) error

func (*IPAllocator) DeleteIPSubnet

func (a *IPAllocator) DeleteIPSubnet(name string)

func (*IPAllocator) GetAvailable

func (a *IPAllocator) GetAvailable(name string) (int, error)

func (*IPAllocator) GetUsage

func (a *IPAllocator) GetUsage(name string) error

func (*IPAllocator) GetUsed

func (a *IPAllocator) GetUsed(name string) (int, error)

func (*IPAllocator) IsAllocated

func (a *IPAllocator) IsAllocated(name string, designatedIPStr string) (bool, error)

func (*IPAllocator) NewIPSubnet

func (a *IPAllocator) NewIPSubnet(name string, cidr string, start, end net.IP) error

func (*IPAllocator) RevokeIP

func (a *IPAllocator) RevokeIP(name string, designatedIPStr string) error

type IPSubnet

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

Jump to

Keyboard shortcuts

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