Versions in this module Expand all Collapse all v1 v1.16.3 Nov 9, 2022 Changes in this version + func NewMockCheckpointManager() checkpointmanager.CheckpointManager + type FakeMirrorClient struct + func NewFakeMirrorClient() *FakeMirrorClient + func (fmc *FakeMirrorClient) CreateMirrorPod(pod *v1.Pod) error + func (fmc *FakeMirrorClient) DeleteMirrorPod(podFullName string, _ *types.UID) (bool, error) + func (fmc *FakeMirrorClient) GetCounts(podFullName string) (int, int) + func (fmc *FakeMirrorClient) GetPods() []string + func (fmc *FakeMirrorClient) HasPod(podFullName string) bool + func (fmc *FakeMirrorClient) NumOfPods() int + type MockCheckpointManager struct + func (ckm *MockCheckpointManager) CreateCheckpoint(checkpointKey string, checkpoint checkpointmanager.Checkpoint) error + func (ckm *MockCheckpointManager) GetCheckpoint(checkpointKey string, checkpoint checkpointmanager.Checkpoint) error + func (ckm *MockCheckpointManager) ListCheckpoints() ([]string, error) + func (ckm *MockCheckpointManager) RemoveCheckpoint(checkpointKey string) error + type MockManager struct + func (_m *MockManager) AddPod(_a0 *v1.Pod) + func (_m *MockManager) CreateMirrorPod(_a0 *v1.Pod) error + func (_m *MockManager) DeleteMirrorPod(podFullName string, _ *types.UID) (bool, error) + func (_m *MockManager) DeleteOrphanedMirrorPods() + func (_m *MockManager) DeletePod(_a0 *v1.Pod) + func (_m *MockManager) GetMirrorPodByPod(_a0 *v1.Pod) (*v1.Pod, bool) + func (_m *MockManager) GetPodByFullName(podFullName string) (*v1.Pod, bool) + func (_m *MockManager) GetPodByMirrorPod(_a0 *v1.Pod) (*v1.Pod, bool) + func (_m *MockManager) GetPodByName(namespace string, name string) (*v1.Pod, bool) + func (_m *MockManager) GetPodByUID(_a0 types.UID) (*v1.Pod, bool) + func (_m *MockManager) GetPods() []*v1.Pod + func (_m *MockManager) GetPodsAndMirrorPods() ([]*v1.Pod, []*v1.Pod) + func (_m *MockManager) GetUIDTranslations() (map[kubelettypes.ResolvedPodUID]kubelettypes.MirrorPodUID, ...) + func (_m *MockManager) IsMirrorPodOf(mirrorPod *v1.Pod, _a1 *v1.Pod) bool + func (_m *MockManager) SetPods(pods []*v1.Pod) + func (_m *MockManager) TranslatePodUID(uid types.UID) kubelettypes.ResolvedPodUID + func (_m *MockManager) UpdatePod(_a0 *v1.Pod)