ipam

package
v0.0.0-...-f9f7919 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TestIPAMClientAddr = "http://localhost:9091"
)

Variables

This section is empty.

Functions

func NewTestIPAMServer

func NewTestIPAMServer() *http.Server

Types

type IPAM

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

func NewIPAM

func NewIPAM(logger *zap.SugaredLogger, ipamAddress string) IPAM

func (*IPAM) AcquireIP

func (i *IPAM) AcquireIP(parent context.Context, namespace uuid.UUID, ipamPrefix string, TunnelIP string) error

func (*IPAM) AssignCIDR

func (i *IPAM) AssignCIDR(parent context.Context, namespace uuid.UUID, cidr string) error

func (*IPAM) AssignFromPool

func (i *IPAM) AssignFromPool(parent context.Context, namespace uuid.UUID, ipamPrefix string) (string, error)

func (*IPAM) AssignSpecificTunnelIP

func (i *IPAM) AssignSpecificTunnelIP(parent context.Context, namespace uuid.UUID, ipamPrefix string, TunnelIP string) (string, error)

func (*IPAM) CreateNamespace

func (i *IPAM) CreateNamespace(parent context.Context, namespace uuid.UUID) error

func (*IPAM) DeleteNamespace

func (i *IPAM) DeleteNamespace(parent context.Context, namespace uuid.UUID) error

func (*IPAM) ReleaseCIDR

func (i *IPAM) ReleaseCIDR(ctx context.Context, namespace uuid.UUID, cidr string) error

ReleaseCIDR release the ipam address back to the specified prefix

func (*IPAM) ReleaseToPool

func (i *IPAM) ReleaseToPool(ctx context.Context, namespace uuid.UUID, address, cidr string) error

ReleaseToPool release the ipam address back to the specified prefix

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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