mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type K8SClient

type K8SClient struct {
	mock.Mock
}

K8SClient is an autogenerated mock type for the K8SClient type

func NewK8SClient

func NewK8SClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *K8SClient

NewK8SClient creates a new instance of K8SClient. 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 (*K8SClient) DeletePod

func (_m *K8SClient) DeletePod(ctx context.Context, namespace string, name string) error

DeletePod provides a mock function with given fields: ctx, namespace, name

func (*K8SClient) Disconnect

func (_m *K8SClient) Disconnect()

Disconnect provides a mock function with no fields

func (*K8SClient) EXPECT

func (_m *K8SClient) EXPECT() *K8SClient_Expecter

func (*K8SClient) GetPodsForLabelSelector

func (_m *K8SClient) GetPodsForLabelSelector(ctx context.Context, namespace string, labelSelector string) ([]v1.Pod, error)

GetPodsForLabelSelector provides a mock function with given fields: ctx, namespace, labelSelector

type K8SClient_DeletePod_Call

type K8SClient_DeletePod_Call struct {
	*mock.Call
}

K8SClient_DeletePod_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeletePod'

func (*K8SClient_DeletePod_Call) Return

func (*K8SClient_DeletePod_Call) Run

func (_c *K8SClient_DeletePod_Call) Run(run func(ctx context.Context, namespace string, name string)) *K8SClient_DeletePod_Call

func (*K8SClient_DeletePod_Call) RunAndReturn

type K8SClient_Disconnect_Call

type K8SClient_Disconnect_Call struct {
	*mock.Call
}

K8SClient_Disconnect_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Disconnect'

func (*K8SClient_Disconnect_Call) Return

func (*K8SClient_Disconnect_Call) Run

func (*K8SClient_Disconnect_Call) RunAndReturn

func (_c *K8SClient_Disconnect_Call) RunAndReturn(run func()) *K8SClient_Disconnect_Call

type K8SClient_Expecter

type K8SClient_Expecter struct {
	// contains filtered or unexported fields
}

func (*K8SClient_Expecter) DeletePod

func (_e *K8SClient_Expecter) DeletePod(ctx interface{}, namespace interface{}, name interface{}) *K8SClient_DeletePod_Call

DeletePod is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • name string

func (*K8SClient_Expecter) Disconnect

Disconnect is a helper method to define mock.On call

func (*K8SClient_Expecter) GetPodsForLabelSelector

func (_e *K8SClient_Expecter) GetPodsForLabelSelector(ctx interface{}, namespace interface{}, labelSelector interface{}) *K8SClient_GetPodsForLabelSelector_Call

GetPodsForLabelSelector is a helper method to define mock.On call

  • ctx context.Context
  • namespace string
  • labelSelector string

type K8SClient_GetPodsForLabelSelector_Call

type K8SClient_GetPodsForLabelSelector_Call struct {
	*mock.Call
}

K8SClient_GetPodsForLabelSelector_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPodsForLabelSelector'

func (*K8SClient_GetPodsForLabelSelector_Call) Return

func (*K8SClient_GetPodsForLabelSelector_Call) Run

func (*K8SClient_GetPodsForLabelSelector_Call) RunAndReturn

Jump to

Keyboard shortcuts

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