Documentation ¶
Index ¶
- type FakePodDeletionSafetyProvider
- type MockPodStatusProvider
- type MockPodStatusProvider_Expecter
- type MockPodStatusProvider_GetPodStatus_Call
- func (_c *MockPodStatusProvider_GetPodStatus_Call) Return(_a0 v1.PodStatus, _a1 bool) *MockPodStatusProvider_GetPodStatus_Call
- func (_c *MockPodStatusProvider_GetPodStatus_Call) Run(run func(uid types.UID)) *MockPodStatusProvider_GetPodStatus_Call
- func (_c *MockPodStatusProvider_GetPodStatus_Call) RunAndReturn(run func(types.UID) (v1.PodStatus, bool)) *MockPodStatusProvider_GetPodStatus_Call
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 MockPodStatusProvider ¶ added in v1.22.9
MockPodStatusProvider is an autogenerated mock type for the PodStatusProvider type
func NewMockPodStatusProvider ¶ added in v1.22.9
func NewMockPodStatusProvider(t interface { mock.TestingT Cleanup(func()) }) *MockPodStatusProvider
NewMockPodStatusProvider creates a new instance of MockPodStatusProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MockPodStatusProvider) EXPECT ¶ added in v1.22.9
func (_m *MockPodStatusProvider) EXPECT() *MockPodStatusProvider_Expecter
func (*MockPodStatusProvider) GetPodStatus ¶ added in v1.22.9
GetPodStatus provides a mock function with given fields: uid
type MockPodStatusProvider_Expecter ¶ added in v1.31.0
type MockPodStatusProvider_Expecter struct {
// contains filtered or unexported fields
}
func (*MockPodStatusProvider_Expecter) GetPodStatus ¶ added in v1.31.0
func (_e *MockPodStatusProvider_Expecter) GetPodStatus(uid interface{}) *MockPodStatusProvider_GetPodStatus_Call
GetPodStatus is a helper method to define mock.On call
- uid types.UID
type MockPodStatusProvider_GetPodStatus_Call ¶ added in v1.31.0
MockPodStatusProvider_GetPodStatus_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodStatus'
func (*MockPodStatusProvider_GetPodStatus_Call) Return ¶ added in v1.31.0
func (_c *MockPodStatusProvider_GetPodStatus_Call) Return(_a0 v1.PodStatus, _a1 bool) *MockPodStatusProvider_GetPodStatus_Call
func (*MockPodStatusProvider_GetPodStatus_Call) Run ¶ added in v1.31.0
func (_c *MockPodStatusProvider_GetPodStatus_Call) Run(run func(uid types.UID)) *MockPodStatusProvider_GetPodStatus_Call
func (*MockPodStatusProvider_GetPodStatus_Call) RunAndReturn ¶ added in v1.31.0
func (_c *MockPodStatusProvider_GetPodStatus_Call) RunAndReturn(run func(types.UID) (v1.PodStatus, bool)) *MockPodStatusProvider_GetPodStatus_Call