mocks

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 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 MockService

type MockService struct {
	mock.Mock
}

MockService is an autogenerated mock type for the Service type

func NewMockService

func NewMockService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockService

NewMockService creates a new instance of MockService. 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 (*MockService) CreateClusterDataPlane

func (_m *MockService) CreateClusterDataPlane(ctx context.Context, cdp *v1alpha1.ClusterDataPlane) (*v1alpha1.ClusterDataPlane, error)

CreateClusterDataPlane provides a mock function with given fields: ctx, cdp

func (*MockService) DeleteClusterDataPlane

func (_m *MockService) DeleteClusterDataPlane(ctx context.Context, name string) error

DeleteClusterDataPlane provides a mock function with given fields: ctx, name

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GetClusterDataPlane

func (_m *MockService) GetClusterDataPlane(ctx context.Context, name string) (*v1alpha1.ClusterDataPlane, error)

GetClusterDataPlane provides a mock function with given fields: ctx, name

func (*MockService) ListClusterDataPlanes

ListClusterDataPlanes provides a mock function with given fields: ctx, opts

func (*MockService) UpdateClusterDataPlane

func (_m *MockService) UpdateClusterDataPlane(ctx context.Context, cdp *v1alpha1.ClusterDataPlane) (*v1alpha1.ClusterDataPlane, error)

UpdateClusterDataPlane provides a mock function with given fields: ctx, cdp

type MockService_CreateClusterDataPlane_Call

type MockService_CreateClusterDataPlane_Call struct {
	*mock.Call
}

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

func (*MockService_CreateClusterDataPlane_Call) Return

func (*MockService_CreateClusterDataPlane_Call) Run

type MockService_DeleteClusterDataPlane_Call

type MockService_DeleteClusterDataPlane_Call struct {
	*mock.Call
}

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

func (*MockService_DeleteClusterDataPlane_Call) Return

func (*MockService_DeleteClusterDataPlane_Call) Run

func (*MockService_DeleteClusterDataPlane_Call) RunAndReturn

type MockService_Expecter

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

func (*MockService_Expecter) CreateClusterDataPlane

func (_e *MockService_Expecter) CreateClusterDataPlane(ctx interface{}, cdp interface{}) *MockService_CreateClusterDataPlane_Call

CreateClusterDataPlane is a helper method to define mock.On call

  • ctx context.Context
  • cdp *v1alpha1.ClusterDataPlane

func (*MockService_Expecter) DeleteClusterDataPlane

func (_e *MockService_Expecter) DeleteClusterDataPlane(ctx interface{}, name interface{}) *MockService_DeleteClusterDataPlane_Call

DeleteClusterDataPlane is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockService_Expecter) GetClusterDataPlane

func (_e *MockService_Expecter) GetClusterDataPlane(ctx interface{}, name interface{}) *MockService_GetClusterDataPlane_Call

GetClusterDataPlane is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*MockService_Expecter) ListClusterDataPlanes

func (_e *MockService_Expecter) ListClusterDataPlanes(ctx interface{}, opts interface{}) *MockService_ListClusterDataPlanes_Call

ListClusterDataPlanes is a helper method to define mock.On call

  • ctx context.Context
  • opts services.ListOptions

func (*MockService_Expecter) UpdateClusterDataPlane

func (_e *MockService_Expecter) UpdateClusterDataPlane(ctx interface{}, cdp interface{}) *MockService_UpdateClusterDataPlane_Call

UpdateClusterDataPlane is a helper method to define mock.On call

  • ctx context.Context
  • cdp *v1alpha1.ClusterDataPlane

type MockService_GetClusterDataPlane_Call

type MockService_GetClusterDataPlane_Call struct {
	*mock.Call
}

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

func (*MockService_GetClusterDataPlane_Call) Return

func (*MockService_GetClusterDataPlane_Call) Run

func (*MockService_GetClusterDataPlane_Call) RunAndReturn

type MockService_ListClusterDataPlanes_Call

type MockService_ListClusterDataPlanes_Call struct {
	*mock.Call
}

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

func (*MockService_ListClusterDataPlanes_Call) Return

func (*MockService_ListClusterDataPlanes_Call) Run

type MockService_UpdateClusterDataPlane_Call

type MockService_UpdateClusterDataPlane_Call struct {
	*mock.Call
}

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

func (*MockService_UpdateClusterDataPlane_Call) Return

func (*MockService_UpdateClusterDataPlane_Call) Run

Jump to

Keyboard shortcuts

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