ipam

package
v0.6.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPAllocator

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

func New

func New() *IPAllocator

func NewIPAllocator

func NewIPAllocator() *IPAllocator

func (*IPAllocator) Available

func (a *IPAllocator) Available(name string) (i int)

func (*IPAllocator) DeleteSubnet

func (a *IPAllocator) DeleteSubnet(name string)

func (*IPAllocator) GetIP

func (a *IPAllocator) GetIP(name string, givenIP string) (string, error)

func (*IPAllocator) NewSubnet

func (a *IPAllocator) NewSubnet(name string, subnet string, start string, end string) (err error)

func (*IPAllocator) ReleaseIP

func (a *IPAllocator) ReleaseIP(name string, givenIP string) (err error)

func (*IPAllocator) Usage

func (a *IPAllocator) Usage(name string)

func (*IPAllocator) Used

func (a *IPAllocator) Used(name string) (i int)

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