Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type 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 MockManager
- func (m *MockManager) AddPod(pod *v1.Pod)
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) GetMirrorPodByPod(arg0 *v1.Pod) (*v1.Pod, bool)
- func (m *MockManager) GetPodAndMirrorPod(arg0 *v1.Pod) (*v1.Pod, *v1.Pod, bool)
- func (m *MockManager) GetPodByFullName(podFullName string) (*v1.Pod, bool)
- func (m *MockManager) GetPodByMirrorPod(arg0 *v1.Pod) (*v1.Pod, bool)
- func (m *MockManager) GetPodByName(namespace, name string) (*v1.Pod, bool)
- func (m *MockManager) GetPodByUID(arg0 types.UID) (*v1.Pod, bool)
- func (m *MockManager) GetPods() []*v1.Pod
- func (m *MockManager) GetPodsAndMirrorPods() ([]*v1.Pod, []*v1.Pod, []string)
- func (m *MockManager) GetUIDTranslations() (map[types0.ResolvedPodUID]types0.MirrorPodUID, ...)
- func (m *MockManager) RemovePod(pod *v1.Pod)
- func (m *MockManager) SetPods(pods []*v1.Pod)
- func (m *MockManager) TranslatePodUID(uid types.UID) types0.ResolvedPodUID
- func (m *MockManager) UpdatePod(pod *v1.Pod)
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) AddPod(pod any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetMirrorPodByPod(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodAndMirrorPod(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodByFullName(podFullName any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodByMirrorPod(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodByName(namespace, name any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodByUID(arg0 any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPods() *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodsAndMirrorPods() *gomock.Call
- func (mr *MockManagerMockRecorder) GetUIDTranslations() *gomock.Call
- func (mr *MockManagerMockRecorder) RemovePod(pod any) *gomock.Call
- func (mr *MockManagerMockRecorder) SetPods(pods any) *gomock.Call
- func (mr *MockManagerMockRecorder) TranslatePodUID(uid any) *gomock.Call
- func (mr *MockManagerMockRecorder) UpdatePod(pod any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 ¶
TODO (Robert Krawitz): Implement UID checking
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 MockManager ¶ added in v1.8.0
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶ added in v1.23.0
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) AddPod ¶ added in v1.8.0
func (m *MockManager) AddPod(pod *v1.Pod)
AddPod mocks base method.
func (*MockManager) EXPECT ¶ added in v1.23.0
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) GetMirrorPodByPod ¶ added in v1.8.0
GetMirrorPodByPod mocks base method.
func (*MockManager) GetPodAndMirrorPod ¶ added in v1.28.0
GetPodAndMirrorPod mocks base method.
func (*MockManager) GetPodByFullName ¶ added in v1.8.0
func (m *MockManager) GetPodByFullName(podFullName string) (*v1.Pod, bool)
GetPodByFullName mocks base method.
func (*MockManager) GetPodByMirrorPod ¶ added in v1.8.0
GetPodByMirrorPod mocks base method.
func (*MockManager) GetPodByName ¶ added in v1.8.0
func (m *MockManager) GetPodByName(namespace, name string) (*v1.Pod, bool)
GetPodByName mocks base method.
func (*MockManager) GetPodByUID ¶ added in v1.8.0
GetPodByUID mocks base method.
func (*MockManager) GetPods ¶ added in v1.8.0
func (m *MockManager) GetPods() []*v1.Pod
GetPods mocks base method.
func (*MockManager) GetPodsAndMirrorPods ¶ added in v1.8.0
GetPodsAndMirrorPods mocks base method.
func (*MockManager) GetUIDTranslations ¶ added in v1.8.0
func (m *MockManager) GetUIDTranslations() (map[types0.ResolvedPodUID]types0.MirrorPodUID, map[types0.MirrorPodUID]types0.ResolvedPodUID)
GetUIDTranslations mocks base method.
func (*MockManager) RemovePod ¶ added in v1.28.0
func (m *MockManager) RemovePod(pod *v1.Pod)
RemovePod mocks base method.
func (*MockManager) SetPods ¶ added in v1.8.0
func (m *MockManager) SetPods(pods []*v1.Pod)
SetPods mocks base method.
func (*MockManager) TranslatePodUID ¶ added in v1.8.0
func (m *MockManager) TranslatePodUID(uid types.UID) types0.ResolvedPodUID
TranslatePodUID mocks base method.
func (*MockManager) UpdatePod ¶ added in v1.8.0
func (m *MockManager) UpdatePod(pod *v1.Pod)
UpdatePod mocks base method.
type MockManagerMockRecorder ¶ added in v1.23.0
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) AddPod ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) AddPod(pod any) *gomock.Call
AddPod indicates an expected call of AddPod.
func (*MockManagerMockRecorder) GetMirrorPodByPod ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) GetMirrorPodByPod(arg0 any) *gomock.Call
GetMirrorPodByPod indicates an expected call of GetMirrorPodByPod.
func (*MockManagerMockRecorder) GetPodAndMirrorPod ¶ added in v1.28.0
func (mr *MockManagerMockRecorder) GetPodAndMirrorPod(arg0 any) *gomock.Call
GetPodAndMirrorPod indicates an expected call of GetPodAndMirrorPod.
func (*MockManagerMockRecorder) GetPodByFullName ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) GetPodByFullName(podFullName any) *gomock.Call
GetPodByFullName indicates an expected call of GetPodByFullName.
func (*MockManagerMockRecorder) GetPodByMirrorPod ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) GetPodByMirrorPod(arg0 any) *gomock.Call
GetPodByMirrorPod indicates an expected call of GetPodByMirrorPod.
func (*MockManagerMockRecorder) GetPodByName ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) GetPodByName(namespace, name any) *gomock.Call
GetPodByName indicates an expected call of GetPodByName.
func (*MockManagerMockRecorder) GetPodByUID ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) GetPodByUID(arg0 any) *gomock.Call
GetPodByUID indicates an expected call of GetPodByUID.
func (*MockManagerMockRecorder) GetPods ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) GetPods() *gomock.Call
GetPods indicates an expected call of GetPods.
func (*MockManagerMockRecorder) GetPodsAndMirrorPods ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) GetPodsAndMirrorPods() *gomock.Call
GetPodsAndMirrorPods indicates an expected call of GetPodsAndMirrorPods.
func (*MockManagerMockRecorder) GetUIDTranslations ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) GetUIDTranslations() *gomock.Call
GetUIDTranslations indicates an expected call of GetUIDTranslations.
func (*MockManagerMockRecorder) RemovePod ¶ added in v1.28.0
func (mr *MockManagerMockRecorder) RemovePod(pod any) *gomock.Call
RemovePod indicates an expected call of RemovePod.
func (*MockManagerMockRecorder) SetPods ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) SetPods(pods any) *gomock.Call
SetPods indicates an expected call of SetPods.
func (*MockManagerMockRecorder) TranslatePodUID ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) TranslatePodUID(uid any) *gomock.Call
TranslatePodUID indicates an expected call of TranslatePodUID.