kubernetes

package
v4.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockK8sNamespaceClient

type MockK8sNamespaceClient struct {
	mock.Mock
}

MockK8sNamespaceClient is an autogenerated mock type for the K8sNamespaceClient type

func NewMockK8sNamespaceClient

func NewMockK8sNamespaceClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockK8sNamespaceClient

NewMockK8sNamespaceClient creates a new instance of MockK8sNamespaceClient. 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 (*MockK8sNamespaceClient) Create

func (_mock *MockK8sNamespaceClient) Create(ctx context.Context, namespace *v1.Namespace, opts v10.CreateOptions) (*v1.Namespace, error)

Create provides a mock function for the type MockK8sNamespaceClient

func (*MockK8sNamespaceClient) EXPECT

func (*MockK8sNamespaceClient) Get

func (_mock *MockK8sNamespaceClient) Get(ctx context.Context, name string, opts v10.GetOptions) (*v1.Namespace, error)

Get provides a mock function for the type MockK8sNamespaceClient

type MockK8sNamespaceClient_Create_Call

type MockK8sNamespaceClient_Create_Call struct {
	*mock.Call
}

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

func (*MockK8sNamespaceClient_Create_Call) Return

func (*MockK8sNamespaceClient_Create_Call) Run

func (*MockK8sNamespaceClient_Create_Call) RunAndReturn

type MockK8sNamespaceClient_Expecter

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

func (*MockK8sNamespaceClient_Expecter) Create

func (_e *MockK8sNamespaceClient_Expecter) Create(ctx interface{}, namespace interface{}, opts interface{}) *MockK8sNamespaceClient_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • namespace *v1.Namespace
  • opts v10.CreateOptions

func (*MockK8sNamespaceClient_Expecter) Get

func (_e *MockK8sNamespaceClient_Expecter) Get(ctx interface{}, name interface{}, opts interface{}) *MockK8sNamespaceClient_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • name string
  • opts v10.GetOptions

type MockK8sNamespaceClient_Get_Call

type MockK8sNamespaceClient_Get_Call struct {
	*mock.Call
}

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

func (*MockK8sNamespaceClient_Get_Call) Return

func (*MockK8sNamespaceClient_Get_Call) Run

func (*MockK8sNamespaceClient_Get_Call) RunAndReturn

Jump to

Keyboard shortcuts

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