Documentation
¶
Overview ¶
Package mock_k8s is a generated GoMock package.
Index ¶
- type MockClient
- func (m *MockClient) Clientset() kubernetes.Interface
- func (m *MockClient) CordonNode(arg0 context.Context, arg1 *v1.Node) error
- func (m *MockClient) DeletePod(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v1.Pod, arg3 int, ...) error
- func (m *MockClient) EXPECT() *MockClientMockRecorder
- func (m *MockClient) EvictPod(arg0 context.Context, arg1 v1.Pod, arg2 time.Duration, ...) error
- func (m *MockClient) ExecuteBatchPodActions(arg0 context.Context, arg1 []*v1.Pod, arg2 func(context.Context, v1.Pod) error, ...) ([]*v1.Pod, []k8s.PodActionFailure)
- func (m *MockClient) GetNodeByIDs(arg0 context.Context, arg1, arg2, arg3 string) (*v1.Node, error)
- func (m *MockClient) Log() logrus.FieldLogger
- func (m *MockClient) PatchNode(arg0 context.Context, arg1 *v1.Node, arg2 func(*v1.Node)) error
- func (m *MockClient) PatchNodeStatus(arg0 context.Context, arg1 string, arg2 []byte) error
- type MockClientMockRecorder
- func (mr *MockClientMockRecorder) Clientset() *gomock.Call
- func (mr *MockClientMockRecorder) CordonNode(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) DeletePod(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) EvictPod(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) ExecuteBatchPodActions(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) GetNodeByIDs(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) Log() *gomock.Call
- func (mr *MockClientMockRecorder) PatchNode(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockClientMockRecorder) PatchNodeStatus(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface.
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance.
func (*MockClient) Clientset ¶
func (m *MockClient) Clientset() kubernetes.Interface
Clientset mocks base method.
func (*MockClient) CordonNode ¶
CordonNode mocks base method.
func (*MockClient) DeletePod ¶
func (m *MockClient) DeletePod(arg0 context.Context, arg1 v10.DeleteOptions, arg2 v1.Pod, arg3 int, arg4 time.Duration) error
DeletePod mocks base method.
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClient) EvictPod ¶
func (m *MockClient) EvictPod(arg0 context.Context, arg1 v1.Pod, arg2 time.Duration, arg3 schema.GroupVersion) error
EvictPod mocks base method.
func (*MockClient) ExecuteBatchPodActions ¶
func (m *MockClient) ExecuteBatchPodActions(arg0 context.Context, arg1 []*v1.Pod, arg2 func(context.Context, v1.Pod) error, arg3 string) ([]*v1.Pod, []k8s.PodActionFailure)
ExecuteBatchPodActions mocks base method.
func (*MockClient) GetNodeByIDs ¶
GetNodeByIDs mocks base method.
func (*MockClient) PatchNodeStatus ¶
PatchNodeStatus mocks base method.
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient.
func (*MockClientMockRecorder) Clientset ¶
func (mr *MockClientMockRecorder) Clientset() *gomock.Call
Clientset indicates an expected call of Clientset.
func (*MockClientMockRecorder) CordonNode ¶
func (mr *MockClientMockRecorder) CordonNode(arg0, arg1 interface{}) *gomock.Call
CordonNode indicates an expected call of CordonNode.
func (*MockClientMockRecorder) DeletePod ¶
func (mr *MockClientMockRecorder) DeletePod(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
DeletePod indicates an expected call of DeletePod.
func (*MockClientMockRecorder) EvictPod ¶
func (mr *MockClientMockRecorder) EvictPod(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
EvictPod indicates an expected call of EvictPod.
func (*MockClientMockRecorder) ExecuteBatchPodActions ¶
func (mr *MockClientMockRecorder) ExecuteBatchPodActions(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
ExecuteBatchPodActions indicates an expected call of ExecuteBatchPodActions.
func (*MockClientMockRecorder) GetNodeByIDs ¶
func (mr *MockClientMockRecorder) GetNodeByIDs(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GetNodeByIDs indicates an expected call of GetNodeByIDs.
func (*MockClientMockRecorder) Log ¶
func (mr *MockClientMockRecorder) Log() *gomock.Call
Log indicates an expected call of Log.
func (*MockClientMockRecorder) PatchNode ¶
func (mr *MockClientMockRecorder) PatchNode(arg0, arg1, arg2 interface{}) *gomock.Call
PatchNode indicates an expected call of PatchNode.
func (*MockClientMockRecorder) PatchNodeStatus ¶
func (mr *MockClientMockRecorder) PatchNodeStatus(arg0, arg1, arg2 interface{}) *gomock.Call
PatchNodeStatus indicates an expected call of PatchNodeStatus.