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(arg0 *v1.Pod)
- func (m *MockManager) CreateMirrorPod(arg0 *v1.Pod) error
- func (m *MockManager) DeleteMirrorPod(arg0 string, arg1 *types.UID) (bool, error)
- func (m *MockManager) DeletePod(arg0 *v1.Pod)
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) GetMirrorPodByPod(arg0 *v1.Pod) (*v1.Pod, bool)
- func (m *MockManager) GetOrphanedMirrorPodNames() []string
- func (m *MockManager) GetPodByFullName(arg0 string) (*v1.Pod, bool)
- func (m *MockManager) GetPodByMirrorPod(arg0 *v1.Pod) (*v1.Pod, bool)
- func (m *MockManager) GetPodByName(arg0, arg1 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)
- func (m *MockManager) GetUIDTranslations() (map[types0.ResolvedPodUID]types0.MirrorPodUID, ...)
- func (m *MockManager) IsMirrorPodOf(arg0, arg1 *v1.Pod) bool
- func (m *MockManager) SetPods(arg0 []*v1.Pod)
- func (m *MockManager) TranslatePodUID(arg0 types.UID) types0.ResolvedPodUID
- func (m *MockManager) UpdatePod(arg0 *v1.Pod)
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) AddPod(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) CreateMirrorPod(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) DeleteMirrorPod(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) DeletePod(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetMirrorPodByPod(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetOrphanedMirrorPodNames() *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodByFullName(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodByMirrorPod(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodByName(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodByUID(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPods() *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodsAndMirrorPods() *gomock.Call
- func (mr *MockManagerMockRecorder) GetUIDTranslations() *gomock.Call
- func (mr *MockManagerMockRecorder) IsMirrorPodOf(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) SetPods(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) TranslatePodUID(arg0 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) UpdatePod(arg0 interface{}) *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 ¶
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) CreateMirrorPod ¶
func (m *MockManager) CreateMirrorPod(arg0 *v1.Pod) error
CreateMirrorPod mocks base method.
func (*MockManager) DeleteMirrorPod ¶
DeleteMirrorPod mocks base method.
func (*MockManager) DeletePod ¶
func (m *MockManager) DeletePod(arg0 *v1.Pod)
DeletePod mocks base method.
func (*MockManager) EXPECT ¶
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) GetMirrorPodByPod ¶
GetMirrorPodByPod mocks base method.
func (*MockManager) GetOrphanedMirrorPodNames ¶
func (m *MockManager) GetOrphanedMirrorPodNames() []string
GetOrphanedMirrorPodNames mocks base method.
func (*MockManager) GetPodByFullName ¶
func (m *MockManager) GetPodByFullName(arg0 string) (*v1.Pod, bool)
GetPodByFullName mocks base method.
func (*MockManager) GetPodByMirrorPod ¶
GetPodByMirrorPod mocks base method.
func (*MockManager) GetPodByName ¶
func (m *MockManager) GetPodByName(arg0, arg1 string) (*v1.Pod, bool)
GetPodByName mocks base method.
func (*MockManager) GetPodByUID ¶
GetPodByUID mocks base method.
func (*MockManager) GetPodsAndMirrorPods ¶
func (m *MockManager) GetPodsAndMirrorPods() ([]*v1.Pod, []*v1.Pod)
GetPodsAndMirrorPods mocks base method.
func (*MockManager) GetUIDTranslations ¶
func (m *MockManager) GetUIDTranslations() (map[types0.ResolvedPodUID]types0.MirrorPodUID, map[types0.MirrorPodUID]types0.ResolvedPodUID)
GetUIDTranslations mocks base method.
func (*MockManager) IsMirrorPodOf ¶
func (m *MockManager) IsMirrorPodOf(arg0, arg1 *v1.Pod) bool
IsMirrorPodOf mocks base method.
func (*MockManager) SetPods ¶
func (m *MockManager) SetPods(arg0 []*v1.Pod)
SetPods mocks base method.
func (*MockManager) TranslatePodUID ¶
func (m *MockManager) TranslatePodUID(arg0 types.UID) types0.ResolvedPodUID
TranslatePodUID mocks base method.
func (*MockManager) UpdatePod ¶
func (m *MockManager) UpdatePod(arg0 *v1.Pod)
UpdatePod mocks base method.
type MockManagerMockRecorder ¶
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) AddPod ¶
func (mr *MockManagerMockRecorder) AddPod(arg0 interface{}) *gomock.Call
AddPod indicates an expected call of AddPod.
func (*MockManagerMockRecorder) CreateMirrorPod ¶
func (mr *MockManagerMockRecorder) CreateMirrorPod(arg0 interface{}) *gomock.Call
CreateMirrorPod indicates an expected call of CreateMirrorPod.
func (*MockManagerMockRecorder) DeleteMirrorPod ¶
func (mr *MockManagerMockRecorder) DeleteMirrorPod(arg0, arg1 interface{}) *gomock.Call
DeleteMirrorPod indicates an expected call of DeleteMirrorPod.
func (*MockManagerMockRecorder) DeletePod ¶
func (mr *MockManagerMockRecorder) DeletePod(arg0 interface{}) *gomock.Call
DeletePod indicates an expected call of DeletePod.
func (*MockManagerMockRecorder) GetMirrorPodByPod ¶
func (mr *MockManagerMockRecorder) GetMirrorPodByPod(arg0 interface{}) *gomock.Call
GetMirrorPodByPod indicates an expected call of GetMirrorPodByPod.
func (*MockManagerMockRecorder) GetOrphanedMirrorPodNames ¶
func (mr *MockManagerMockRecorder) GetOrphanedMirrorPodNames() *gomock.Call
GetOrphanedMirrorPodNames indicates an expected call of GetOrphanedMirrorPodNames.
func (*MockManagerMockRecorder) GetPodByFullName ¶
func (mr *MockManagerMockRecorder) GetPodByFullName(arg0 interface{}) *gomock.Call
GetPodByFullName indicates an expected call of GetPodByFullName.
func (*MockManagerMockRecorder) GetPodByMirrorPod ¶
func (mr *MockManagerMockRecorder) GetPodByMirrorPod(arg0 interface{}) *gomock.Call
GetPodByMirrorPod indicates an expected call of GetPodByMirrorPod.
func (*MockManagerMockRecorder) GetPodByName ¶
func (mr *MockManagerMockRecorder) GetPodByName(arg0, arg1 interface{}) *gomock.Call
GetPodByName indicates an expected call of GetPodByName.
func (*MockManagerMockRecorder) GetPodByUID ¶
func (mr *MockManagerMockRecorder) GetPodByUID(arg0 interface{}) *gomock.Call
GetPodByUID indicates an expected call of GetPodByUID.
func (*MockManagerMockRecorder) GetPods ¶
func (mr *MockManagerMockRecorder) GetPods() *gomock.Call
GetPods indicates an expected call of GetPods.
func (*MockManagerMockRecorder) GetPodsAndMirrorPods ¶
func (mr *MockManagerMockRecorder) GetPodsAndMirrorPods() *gomock.Call
GetPodsAndMirrorPods indicates an expected call of GetPodsAndMirrorPods.
func (*MockManagerMockRecorder) GetUIDTranslations ¶
func (mr *MockManagerMockRecorder) GetUIDTranslations() *gomock.Call
GetUIDTranslations indicates an expected call of GetUIDTranslations.
func (*MockManagerMockRecorder) IsMirrorPodOf ¶
func (mr *MockManagerMockRecorder) IsMirrorPodOf(arg0, arg1 interface{}) *gomock.Call
IsMirrorPodOf indicates an expected call of IsMirrorPodOf.
func (*MockManagerMockRecorder) SetPods ¶
func (mr *MockManagerMockRecorder) SetPods(arg0 interface{}) *gomock.Call
SetPods indicates an expected call of SetPods.
func (*MockManagerMockRecorder) TranslatePodUID ¶
func (mr *MockManagerMockRecorder) TranslatePodUID(arg0 interface{}) *gomock.Call
TranslatePodUID indicates an expected call of TranslatePodUID.
func (*MockManagerMockRecorder) UpdatePod ¶
func (mr *MockManagerMockRecorder) UpdatePod(arg0 interface{}) *gomock.Call
UpdatePod indicates an expected call of UpdatePod.