ipam

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 6 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) AllocateIP

func (a *IPAllocator) AllocateIP(name string, ipAddress string) (string, error)

func (*IPAllocator) DeallocateIP

func (a *IPAllocator) DeallocateIP(name, ipAddress 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, ipAddress string) (bool, error)

func (*IPAllocator) IsNetworkInitialized

func (a *IPAllocator) IsNetworkInitialized(name string) bool

func (*IPAllocator) ListAll

func (a *IPAllocator) ListAll(name string) (map[string]string, error)

func (*IPAllocator) NewIPSubnet

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

func (*IPAllocator) RevokeIP

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

type IPAllocatorBuilder

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

func NewIPAllocatorBuilder

func NewIPAllocatorBuilder() *IPAllocatorBuilder

func (*IPAllocatorBuilder) Allocate

func (b *IPAllocatorBuilder) Allocate(name string, ipAddressList ...string) *IPAllocatorBuilder

func (*IPAllocatorBuilder) Build

func (b *IPAllocatorBuilder) Build() *IPAllocator

func (*IPAllocatorBuilder) IPSubnet

func (b *IPAllocatorBuilder) IPSubnet(name, cidr, start, end string) *IPAllocatorBuilder

func (*IPAllocatorBuilder) Revoke

func (b *IPAllocatorBuilder) Revoke(name string, ipAddressList ...string) *IPAllocatorBuilder

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