Documentation ¶
Overview ¶
Package testing is a generated GoMock package.
Index ¶
- type FakePodDeletionSafetyProvider
- type MockManager
- func (m *MockManager) EXPECT() *MockManagerMockRecorder
- func (m *MockManager) GetContainerResourceAllocation(podUID, containerName string) (v1.ResourceList, bool)
- func (m *MockManager) GetPodResizeStatus(podUID string) (v1.PodResizeStatus, bool)
- func (m *MockManager) GetPodStatus(uid types.UID) (v1.PodStatus, bool)
- func (m *MockManager) RemoveOrphanedStatuses(podUIDs map[types.UID]bool)
- func (m *MockManager) SetContainerReadiness(podUID types.UID, containerID container.ContainerID, ready bool)
- func (m *MockManager) SetContainerStartup(podUID types.UID, containerID container.ContainerID, started bool)
- func (m *MockManager) SetPodAllocation(pod *v1.Pod) error
- func (m *MockManager) SetPodResizeStatus(podUID types.UID, resize v1.PodResizeStatus) error
- func (m *MockManager) SetPodStatus(pod *v1.Pod, status v1.PodStatus)
- func (m *MockManager) Start()
- func (m *MockManager) TerminatePod(pod *v1.Pod)
- type MockManagerMockRecorder
- func (mr *MockManagerMockRecorder) GetContainerResourceAllocation(podUID, containerName any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodResizeStatus(podUID any) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodStatus(uid any) *gomock.Call
- func (mr *MockManagerMockRecorder) RemoveOrphanedStatuses(podUIDs any) *gomock.Call
- func (mr *MockManagerMockRecorder) SetContainerReadiness(podUID, containerID, ready any) *gomock.Call
- func (mr *MockManagerMockRecorder) SetContainerStartup(podUID, containerID, started any) *gomock.Call
- func (mr *MockManagerMockRecorder) SetPodAllocation(pod any) *gomock.Call
- func (mr *MockManagerMockRecorder) SetPodResizeStatus(podUID, resize any) *gomock.Call
- func (mr *MockManagerMockRecorder) SetPodStatus(pod, status any) *gomock.Call
- func (mr *MockManagerMockRecorder) Start() *gomock.Call
- func (mr *MockManagerMockRecorder) TerminatePod(pod any) *gomock.Call
- type MockPodDeletionSafetyProvider
- type MockPodDeletionSafetyProviderMockRecorder
- type MockPodManager
- func (m *MockPodManager) EXPECT() *MockPodManagerMockRecorder
- func (m *MockPodManager) GetMirrorPodByPod(arg0 *v1.Pod) (*v1.Pod, bool)
- func (m *MockPodManager) GetPodByUID(arg0 types.UID) (*v1.Pod, bool)
- func (m *MockPodManager) GetUIDTranslations() (map[types0.ResolvedPodUID]types0.MirrorPodUID, ...)
- func (m *MockPodManager) TranslatePodUID(uid types.UID) types0.ResolvedPodUID
- type MockPodManagerMockRecorder
- type MockPodStartupLatencyStateHelper
- type MockPodStartupLatencyStateHelperMockRecorder
- type MockPodStatusProvider
- type MockPodStatusProviderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakePodDeletionSafetyProvider ¶
type FakePodDeletionSafetyProvider struct {
HasRunning bool
}
FakePodDeletionSafetyProvider is a fake PodDeletionSafetyProvider for test.
func (*FakePodDeletionSafetyProvider) PodCouldHaveRunningContainers ¶ added in v1.22.9
func (f *FakePodDeletionSafetyProvider) PodCouldHaveRunningContainers(pod *v1.Pod) bool
type MockManager ¶ added in v1.22.9
type MockManager struct {
// contains filtered or unexported fields
}
MockManager is a mock of Manager interface.
func NewMockManager ¶ added in v1.22.9
func NewMockManager(ctrl *gomock.Controller) *MockManager
NewMockManager creates a new mock instance.
func (*MockManager) EXPECT ¶ added in v1.22.9
func (m *MockManager) EXPECT() *MockManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockManager) GetContainerResourceAllocation ¶ added in v1.27.0
func (m *MockManager) GetContainerResourceAllocation(podUID, containerName string) (v1.ResourceList, bool)
GetContainerResourceAllocation mocks base method.
func (*MockManager) GetPodResizeStatus ¶ added in v1.27.0
func (m *MockManager) GetPodResizeStatus(podUID string) (v1.PodResizeStatus, bool)
GetPodResizeStatus mocks base method.
func (*MockManager) GetPodStatus ¶ added in v1.22.9
GetPodStatus mocks base method.
func (*MockManager) RemoveOrphanedStatuses ¶ added in v1.23.0
func (m *MockManager) RemoveOrphanedStatuses(podUIDs map[types.UID]bool)
RemoveOrphanedStatuses mocks base method.
func (*MockManager) SetContainerReadiness ¶ added in v1.23.0
func (m *MockManager) SetContainerReadiness(podUID types.UID, containerID container.ContainerID, ready bool)
SetContainerReadiness mocks base method.
func (*MockManager) SetContainerStartup ¶ added in v1.23.0
func (m *MockManager) SetContainerStartup(podUID types.UID, containerID container.ContainerID, started bool)
SetContainerStartup mocks base method.
func (*MockManager) SetPodAllocation ¶ added in v1.27.0
func (m *MockManager) SetPodAllocation(pod *v1.Pod) error
SetPodAllocation mocks base method.
func (*MockManager) SetPodResizeStatus ¶ added in v1.27.0
func (m *MockManager) SetPodResizeStatus(podUID types.UID, resize v1.PodResizeStatus) error
SetPodResizeStatus mocks base method.
func (*MockManager) SetPodStatus ¶ added in v1.22.9
func (m *MockManager) SetPodStatus(pod *v1.Pod, status v1.PodStatus)
SetPodStatus mocks base method.
func (*MockManager) TerminatePod ¶ added in v1.23.0
func (m *MockManager) TerminatePod(pod *v1.Pod)
TerminatePod mocks base method.
type MockManagerMockRecorder ¶ added in v1.22.9
type MockManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockManagerMockRecorder is the mock recorder for MockManager.
func (*MockManagerMockRecorder) GetContainerResourceAllocation ¶ added in v1.27.0
func (mr *MockManagerMockRecorder) GetContainerResourceAllocation(podUID, containerName any) *gomock.Call
GetContainerResourceAllocation indicates an expected call of GetContainerResourceAllocation.
func (*MockManagerMockRecorder) GetPodResizeStatus ¶ added in v1.27.0
func (mr *MockManagerMockRecorder) GetPodResizeStatus(podUID any) *gomock.Call
GetPodResizeStatus indicates an expected call of GetPodResizeStatus.
func (*MockManagerMockRecorder) GetPodStatus ¶ added in v1.22.9
func (mr *MockManagerMockRecorder) GetPodStatus(uid any) *gomock.Call
GetPodStatus indicates an expected call of GetPodStatus.
func (*MockManagerMockRecorder) RemoveOrphanedStatuses ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) RemoveOrphanedStatuses(podUIDs any) *gomock.Call
RemoveOrphanedStatuses indicates an expected call of RemoveOrphanedStatuses.
func (*MockManagerMockRecorder) SetContainerReadiness ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) SetContainerReadiness(podUID, containerID, ready any) *gomock.Call
SetContainerReadiness indicates an expected call of SetContainerReadiness.
func (*MockManagerMockRecorder) SetContainerStartup ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) SetContainerStartup(podUID, containerID, started any) *gomock.Call
SetContainerStartup indicates an expected call of SetContainerStartup.
func (*MockManagerMockRecorder) SetPodAllocation ¶ added in v1.27.0
func (mr *MockManagerMockRecorder) SetPodAllocation(pod any) *gomock.Call
SetPodAllocation indicates an expected call of SetPodAllocation.
func (*MockManagerMockRecorder) SetPodResizeStatus ¶ added in v1.27.0
func (mr *MockManagerMockRecorder) SetPodResizeStatus(podUID, resize any) *gomock.Call
SetPodResizeStatus indicates an expected call of SetPodResizeStatus.
func (*MockManagerMockRecorder) SetPodStatus ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) SetPodStatus(pod, status any) *gomock.Call
SetPodStatus indicates an expected call of SetPodStatus.
func (*MockManagerMockRecorder) Start ¶ added in v1.22.9
func (mr *MockManagerMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockManagerMockRecorder) TerminatePod ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) TerminatePod(pod any) *gomock.Call
TerminatePod indicates an expected call of TerminatePod.
type MockPodDeletionSafetyProvider ¶ added in v1.22.9
type MockPodDeletionSafetyProvider struct {
// contains filtered or unexported fields
}
MockPodDeletionSafetyProvider is a mock of PodDeletionSafetyProvider interface.
func NewMockPodDeletionSafetyProvider ¶ added in v1.22.9
func NewMockPodDeletionSafetyProvider(ctrl *gomock.Controller) *MockPodDeletionSafetyProvider
NewMockPodDeletionSafetyProvider creates a new mock instance.
func (*MockPodDeletionSafetyProvider) EXPECT ¶ added in v1.22.9
func (m *MockPodDeletionSafetyProvider) EXPECT() *MockPodDeletionSafetyProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPodDeletionSafetyProvider) PodCouldHaveRunningContainers ¶ added in v1.22.9
func (m *MockPodDeletionSafetyProvider) PodCouldHaveRunningContainers(pod *v1.Pod) bool
PodCouldHaveRunningContainers mocks base method.
type MockPodDeletionSafetyProviderMockRecorder ¶ added in v1.22.9
type MockPodDeletionSafetyProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockPodDeletionSafetyProviderMockRecorder is the mock recorder for MockPodDeletionSafetyProvider.
func (*MockPodDeletionSafetyProviderMockRecorder) PodCouldHaveRunningContainers ¶ added in v1.22.9
func (mr *MockPodDeletionSafetyProviderMockRecorder) PodCouldHaveRunningContainers(pod any) *gomock.Call
PodCouldHaveRunningContainers indicates an expected call of PodCouldHaveRunningContainers.
type MockPodManager ¶ added in v1.28.0
type MockPodManager struct {
// contains filtered or unexported fields
}
MockPodManager is a mock of PodManager interface.
func NewMockPodManager ¶ added in v1.28.0
func NewMockPodManager(ctrl *gomock.Controller) *MockPodManager
NewMockPodManager creates a new mock instance.
func (*MockPodManager) EXPECT ¶ added in v1.28.0
func (m *MockPodManager) EXPECT() *MockPodManagerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPodManager) GetMirrorPodByPod ¶ added in v1.28.0
GetMirrorPodByPod mocks base method.
func (*MockPodManager) GetPodByUID ¶ added in v1.28.0
GetPodByUID mocks base method.
func (*MockPodManager) GetUIDTranslations ¶ added in v1.28.0
func (m *MockPodManager) GetUIDTranslations() (map[types0.ResolvedPodUID]types0.MirrorPodUID, map[types0.MirrorPodUID]types0.ResolvedPodUID)
GetUIDTranslations mocks base method.
func (*MockPodManager) TranslatePodUID ¶ added in v1.28.0
func (m *MockPodManager) TranslatePodUID(uid types.UID) types0.ResolvedPodUID
TranslatePodUID mocks base method.
type MockPodManagerMockRecorder ¶ added in v1.28.0
type MockPodManagerMockRecorder struct {
// contains filtered or unexported fields
}
MockPodManagerMockRecorder is the mock recorder for MockPodManager.
func (*MockPodManagerMockRecorder) GetMirrorPodByPod ¶ added in v1.28.0
func (mr *MockPodManagerMockRecorder) GetMirrorPodByPod(arg0 any) *gomock.Call
GetMirrorPodByPod indicates an expected call of GetMirrorPodByPod.
func (*MockPodManagerMockRecorder) GetPodByUID ¶ added in v1.28.0
func (mr *MockPodManagerMockRecorder) GetPodByUID(arg0 any) *gomock.Call
GetPodByUID indicates an expected call of GetPodByUID.
func (*MockPodManagerMockRecorder) GetUIDTranslations ¶ added in v1.28.0
func (mr *MockPodManagerMockRecorder) GetUIDTranslations() *gomock.Call
GetUIDTranslations indicates an expected call of GetUIDTranslations.
func (*MockPodManagerMockRecorder) TranslatePodUID ¶ added in v1.28.0
func (mr *MockPodManagerMockRecorder) TranslatePodUID(uid any) *gomock.Call
TranslatePodUID indicates an expected call of TranslatePodUID.
type MockPodStartupLatencyStateHelper ¶ added in v1.26.0
type MockPodStartupLatencyStateHelper struct {
// contains filtered or unexported fields
}
MockPodStartupLatencyStateHelper is a mock of PodStartupLatencyStateHelper interface.
func NewMockPodStartupLatencyStateHelper ¶ added in v1.26.0
func NewMockPodStartupLatencyStateHelper(ctrl *gomock.Controller) *MockPodStartupLatencyStateHelper
NewMockPodStartupLatencyStateHelper creates a new mock instance.
func (*MockPodStartupLatencyStateHelper) DeletePodStartupState ¶ added in v1.26.0
func (m *MockPodStartupLatencyStateHelper) DeletePodStartupState(podUID types.UID)
DeletePodStartupState mocks base method.
func (*MockPodStartupLatencyStateHelper) EXPECT ¶ added in v1.26.0
func (m *MockPodStartupLatencyStateHelper) EXPECT() *MockPodStartupLatencyStateHelperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPodStartupLatencyStateHelper) RecordStatusUpdated ¶ added in v1.26.0
func (m *MockPodStartupLatencyStateHelper) RecordStatusUpdated(pod *v1.Pod)
RecordStatusUpdated mocks base method.
type MockPodStartupLatencyStateHelperMockRecorder ¶ added in v1.26.0
type MockPodStartupLatencyStateHelperMockRecorder struct {
// contains filtered or unexported fields
}
MockPodStartupLatencyStateHelperMockRecorder is the mock recorder for MockPodStartupLatencyStateHelper.
func (*MockPodStartupLatencyStateHelperMockRecorder) DeletePodStartupState ¶ added in v1.26.0
func (mr *MockPodStartupLatencyStateHelperMockRecorder) DeletePodStartupState(podUID any) *gomock.Call
DeletePodStartupState indicates an expected call of DeletePodStartupState.
func (*MockPodStartupLatencyStateHelperMockRecorder) RecordStatusUpdated ¶ added in v1.26.0
func (mr *MockPodStartupLatencyStateHelperMockRecorder) RecordStatusUpdated(pod any) *gomock.Call
RecordStatusUpdated indicates an expected call of RecordStatusUpdated.
type MockPodStatusProvider ¶ added in v1.22.9
type MockPodStatusProvider struct {
// contains filtered or unexported fields
}
MockPodStatusProvider is a mock of PodStatusProvider interface.
func NewMockPodStatusProvider ¶ added in v1.22.9
func NewMockPodStatusProvider(ctrl *gomock.Controller) *MockPodStatusProvider
NewMockPodStatusProvider creates a new mock instance.
func (*MockPodStatusProvider) EXPECT ¶ added in v1.22.9
func (m *MockPodStatusProvider) EXPECT() *MockPodStatusProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPodStatusProvider) GetPodStatus ¶ added in v1.22.9
GetPodStatus mocks base method.
type MockPodStatusProviderMockRecorder ¶ added in v1.22.9
type MockPodStatusProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockPodStatusProviderMockRecorder is the mock recorder for MockPodStatusProvider.
func (*MockPodStatusProviderMockRecorder) GetPodStatus ¶ added in v1.22.9
func (mr *MockPodStatusProviderMockRecorder) GetPodStatus(uid any) *gomock.Call
GetPodStatus indicates an expected call of GetPodStatus.