Documentation ¶
Overview ¶
Code generated by mockery v1.0.0
Index ¶
- func NewMockCheckpointManager() checkpointmanager.CheckpointManager
- type FakeMirrorClient
- func (fmc *FakeMirrorClient) CreateMirrorPod(pod *v1.Pod) error
- func (fmc *FakeMirrorClient) DeleteMirrorPod(podFullName string) 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
- 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
- func (_m *MockManager) AddPod(_a0 *v1.Pod)
- func (_m *MockManager) CreateMirrorPod(_a0 *v1.Pod) error
- func (_m *MockManager) DeleteMirrorPod(podFullName string) 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockCheckpointManager ¶ added in v1.11.2
func NewMockCheckpointManager() checkpointmanager.CheckpointManager
Types ¶
type FakeMirrorClient ¶
type FakeMirrorClient struct {
// contains filtered or unexported fields
}
func NewFakeMirrorClient ¶
func NewFakeMirrorClient() *FakeMirrorClient
func (*FakeMirrorClient) CreateMirrorPod ¶
func (fmc *FakeMirrorClient) CreateMirrorPod(pod *v1.Pod) error
func (*FakeMirrorClient) DeleteMirrorPod ¶
func (fmc *FakeMirrorClient) DeleteMirrorPod(podFullName string) error
func (*FakeMirrorClient) GetCounts ¶
func (fmc *FakeMirrorClient) GetCounts(podFullName string) (int, int)
func (*FakeMirrorClient) GetPods ¶
func (fmc *FakeMirrorClient) GetPods() []string
func (*FakeMirrorClient) HasPod ¶
func (fmc *FakeMirrorClient) HasPod(podFullName string) bool
func (*FakeMirrorClient) NumOfPods ¶
func (fmc *FakeMirrorClient) NumOfPods() int
type MockCheckpointManager ¶ added in v1.11.2
type MockCheckpointManager struct {
// contains filtered or unexported fields
}
func (*MockCheckpointManager) CreateCheckpoint ¶ added in v1.11.2
func (ckm *MockCheckpointManager) CreateCheckpoint(checkpointKey string, checkpoint checkpointmanager.Checkpoint) error
func (*MockCheckpointManager) GetCheckpoint ¶ added in v1.11.2
func (ckm *MockCheckpointManager) GetCheckpoint(checkpointKey string, checkpoint checkpointmanager.Checkpoint) error
func (*MockCheckpointManager) ListCheckpoints ¶ added in v1.11.2
func (ckm *MockCheckpointManager) ListCheckpoints() ([]string, error)
func (*MockCheckpointManager) RemoveCheckpoint ¶ added in v1.11.2
func (ckm *MockCheckpointManager) RemoveCheckpoint(checkpointKey string) error
type MockManager ¶ added in v1.8.0
MockManager is an autogenerated mock type for the Manager type
func (*MockManager) AddPod ¶ added in v1.8.0
func (_m *MockManager) AddPod(_a0 *v1.Pod)
AddPod provides a mock function with given fields: _a0
func (*MockManager) CreateMirrorPod ¶ added in v1.8.0
func (_m *MockManager) CreateMirrorPod(_a0 *v1.Pod) error
CreateMirrorPod provides a mock function with given fields: _a0
func (*MockManager) DeleteMirrorPod ¶ added in v1.8.0
func (_m *MockManager) DeleteMirrorPod(podFullName string) error
DeleteMirrorPod provides a mock function with given fields: podFullName
func (*MockManager) DeleteOrphanedMirrorPods ¶ added in v1.8.0
func (_m *MockManager) DeleteOrphanedMirrorPods()
DeleteOrphanedMirrorPods provides a mock function with given fields:
func (*MockManager) DeletePod ¶ added in v1.8.0
func (_m *MockManager) DeletePod(_a0 *v1.Pod)
DeletePod provides a mock function with given fields: _a0
func (*MockManager) GetMirrorPodByPod ¶ added in v1.8.0
GetMirrorPodByPod provides a mock function with given fields: _a0
func (*MockManager) GetPodByFullName ¶ added in v1.8.0
func (_m *MockManager) GetPodByFullName(podFullName string) (*v1.Pod, bool)
GetPodByFullName provides a mock function with given fields: podFullName
func (*MockManager) GetPodByMirrorPod ¶ added in v1.8.0
GetPodByMirrorPod provides a mock function with given fields: _a0
func (*MockManager) GetPodByName ¶ added in v1.8.0
GetPodByName provides a mock function with given fields: namespace, name
func (*MockManager) GetPodByUID ¶ added in v1.8.0
GetPodByUID provides a mock function with given fields: _a0
func (*MockManager) GetPods ¶ added in v1.8.0
func (_m *MockManager) GetPods() []*v1.Pod
GetPods provides a mock function with given fields:
func (*MockManager) GetPodsAndMirrorPods ¶ added in v1.8.0
func (_m *MockManager) GetPodsAndMirrorPods() ([]*v1.Pod, []*v1.Pod)
GetPodsAndMirrorPods provides a mock function with given fields:
func (*MockManager) GetUIDTranslations ¶ added in v1.8.0
func (_m *MockManager) GetUIDTranslations() (map[kubelettypes.ResolvedPodUID]kubelettypes.MirrorPodUID, map[kubelettypes.MirrorPodUID]kubelettypes.ResolvedPodUID)
GetUIDTranslations provides a mock function with given fields:
func (*MockManager) IsMirrorPodOf ¶ added in v1.8.0
IsMirrorPodOf provides a mock function with given fields: mirrorPod, _a1
func (*MockManager) SetPods ¶ added in v1.8.0
func (_m *MockManager) SetPods(pods []*v1.Pod)
SetPods provides a mock function with given fields: pods
func (*MockManager) TranslatePodUID ¶ added in v1.8.0
func (_m *MockManager) TranslatePodUID(uid types.UID) kubelettypes.ResolvedPodUID
TranslatePodUID provides a mock function with given fields: uid
func (*MockManager) UpdatePod ¶ added in v1.8.0
func (_m *MockManager) UpdatePod(_a0 *v1.Pod)
UpdatePod provides a mock function with given fields: _a0