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 interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodResizeStatus(podUID interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) GetPodStatus(uid interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) RemoveOrphanedStatuses(podUIDs interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) SetContainerReadiness(podUID, containerID, ready interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) SetContainerStartup(podUID, containerID, started interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) SetPodAllocation(pod interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) SetPodResizeStatus(podUID, resize interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) SetPodStatus(pod, status interface{}) *gomock.Call
- func (mr *MockManagerMockRecorder) Start() *gomock.Call
- func (mr *MockManagerMockRecorder) TerminatePod(pod interface{}) *gomock.Call
- type MockPodDeletionSafetyProvider
- type MockPodDeletionSafetyProviderMockRecorder
- 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 interface{}) *gomock.Call
GetContainerResourceAllocation indicates an expected call of GetContainerResourceAllocation.
func (*MockManagerMockRecorder) GetPodResizeStatus ¶ added in v1.27.0
func (mr *MockManagerMockRecorder) GetPodResizeStatus(podUID interface{}) *gomock.Call
GetPodResizeStatus indicates an expected call of GetPodResizeStatus.
func (*MockManagerMockRecorder) GetPodStatus ¶ added in v1.22.9
func (mr *MockManagerMockRecorder) GetPodStatus(uid interface{}) *gomock.Call
GetPodStatus indicates an expected call of GetPodStatus.
func (*MockManagerMockRecorder) RemoveOrphanedStatuses ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) RemoveOrphanedStatuses(podUIDs interface{}) *gomock.Call
RemoveOrphanedStatuses indicates an expected call of RemoveOrphanedStatuses.
func (*MockManagerMockRecorder) SetContainerReadiness ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) SetContainerReadiness(podUID, containerID, ready interface{}) *gomock.Call
SetContainerReadiness indicates an expected call of SetContainerReadiness.
func (*MockManagerMockRecorder) SetContainerStartup ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) SetContainerStartup(podUID, containerID, started interface{}) *gomock.Call
SetContainerStartup indicates an expected call of SetContainerStartup.
func (*MockManagerMockRecorder) SetPodAllocation ¶ added in v1.27.0
func (mr *MockManagerMockRecorder) SetPodAllocation(pod interface{}) *gomock.Call
SetPodAllocation indicates an expected call of SetPodAllocation.
func (*MockManagerMockRecorder) SetPodResizeStatus ¶ added in v1.27.0
func (mr *MockManagerMockRecorder) SetPodResizeStatus(podUID, resize interface{}) *gomock.Call
SetPodResizeStatus indicates an expected call of SetPodResizeStatus.
func (*MockManagerMockRecorder) SetPodStatus ¶ added in v1.23.0
func (mr *MockManagerMockRecorder) SetPodStatus(pod, status interface{}) *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 interface{}) *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 interface{}) *gomock.Call
PodCouldHaveRunningContainers indicates an expected call of PodCouldHaveRunningContainers.
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 interface{}) *gomock.Call
DeletePodStartupState indicates an expected call of DeletePodStartupState.
func (*MockPodStartupLatencyStateHelperMockRecorder) RecordStatusUpdated ¶ added in v1.26.0
func (mr *MockPodStartupLatencyStateHelperMockRecorder) RecordStatusUpdated(pod interface{}) *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 interface{}) *gomock.Call
GetPodStatus indicates an expected call of GetPodStatus.