mock_k8s

package
v0.62.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mock_k8s is a generated GoMock package.

Index

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

func (m *MockClient) CordonNode(arg0 context.Context, arg1 *v1.Node) error

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

func (m *MockClient) GetNodeByIDs(arg0 context.Context, arg1, arg2, arg3 string) (*v1.Node, error)

GetNodeByIDs mocks base method.

func (*MockClient) Log

func (m *MockClient) Log() logrus.FieldLogger

Log mocks base method.

func (*MockClient) PatchNode

func (m *MockClient) PatchNode(arg0 context.Context, arg1 *v1.Node, arg2 func(*v1.Node)) error

PatchNode mocks base method.

func (*MockClient) PatchNodeStatus

func (m *MockClient) PatchNodeStatus(arg0 context.Context, arg1 string, arg2 []byte) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL