Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WorkloadEndpointManager ¶
type WorkloadEndpointManager interface {
GetEndpointByName(ctx context.Context, namespace, podName string) (*spiderpoolv1.SpiderEndpoint, error)
ListEndpoints(ctx context.Context, opts ...client.ListOption) (*spiderpoolv1.SpiderEndpointList, error)
RetrieveIPAllocation(ctx context.Context, containerID, nic string, includeHistory bool, we *spiderpoolv1.SpiderEndpoint) (*spiderpoolv1.PodIPAllocation, bool, error)
MarkIPAllocation(ctx context.Context, containerID string, we *spiderpoolv1.SpiderEndpoint, pod *corev1.Pod) (*spiderpoolv1.SpiderEndpoint, error)
PatchIPAllocation(ctx context.Context, allocation *spiderpoolv1.PodIPAllocation, we *spiderpoolv1.SpiderEndpoint) (*spiderpoolv1.SpiderEndpoint, error)
ClearCurrentIPAllocation(ctx context.Context, containerID string, we *spiderpoolv1.SpiderEndpoint) error
RemoveFinalizer(ctx context.Context, namespace, podName string) error
ListAllHistoricalIPs(ctx context.Context, namespace, podName string) (map[string][]ippoolmanager.IPAndCID, error)
IsIPBelongWEPCurrent(ctx context.Context, namespace, podName, poolIP string) (bool, error)
CheckCurrentContainerID(ctx context.Context, namespace, podName, containerID string) (bool, error)
Delete(ctx context.Context, wep *spiderpoolv1.SpiderEndpoint) error
UpdateCurrentStatus(ctx context.Context, containerID string, pod *corev1.Pod) error
}
Click to show internal directories.
Click to hide internal directories.