ipam

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupIPDetails added in v0.0.6

func GroupIPDetails(containerID string, details []spiderpoolv1.IPAllocationDetail) map[string][]ippoolmanager.IPAndCID

Types

type AllocationResult added in v0.0.6

type AllocationResult struct {
	IP     *models.IPConfig
	Routes []*models.Route
}

type IPAM

type IPAM interface {
	Allocate(ctx context.Context, addArgs *models.IpamAddArgs) (*models.IpamAddResponse, error)
	Release(ctx context.Context, delArgs *models.IpamDelArgs) error
	Start(ctx context.Context) error
}

type IPAMConfig

type IPAMConfig struct {
	EnabledStatefulSet       bool
	EnableIPv4               bool
	EnableIPv6               bool
	ClusterDefaultIPv4IPPool []string
	ClusterDefaultIPv6IPPool []string
	LimiterMaxQueueSize      int
	LimiterMaxWaitTime       time.Duration
}

type ToBeAllocated

type ToBeAllocated struct {
	IPVersion        types.IPVersion
	NIC              string
	DefaultRouteType types.DefaultRouteType
	V4PoolCandidates []string
	V6PoolCandidates []string
}

func (*ToBeAllocated) String added in v0.0.6

func (t *ToBeAllocated) String() string

Jump to

Keyboard shortcuts

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