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 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
}
func NewIPAM ¶
func NewIPAM(c *IPAMConfig, ipPoolManager ippoolmanager.IPPoolManager, weManager workloadendpointmanager.WorkloadEndpointManager, nsManager namespacemanager.NamespaceManager, podManager podmanager.PodManager, stsManager statefulsetmanager.StatefulSetManager) (IPAM, error)
type IPAMConfig ¶
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
Click to show internal directories.
Click to hide internal directories.