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) CreateDataPlane

func (_m *MockService) CreateDataPlane(ctx context.Context, namespaceName string, dp *v1alpha1.DataPlane) (*v1alpha1.DataPlane, error)

CreateDataPlane provides a mock function with given fields: ctx, namespaceName, dp

func (*MockService) DeleteDataPlane

func (_m *MockService) DeleteDataPlane(ctx context.Context, namespaceName string, dpName string) error

DeleteDataPlane provides a mock function with given fields: ctx, namespaceName, dpName

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GetDataPlane

func (_m *MockService) GetDataPlane(ctx context.Context, namespaceName string, dpName string) (*v1alpha1.DataPlane, error)

GetDataPlane provides a mock function with given fields: ctx, namespaceName, dpName

func (*MockService) ListDataPlanes

func (_m *MockService) ListDataPlanes(ctx context.Context, namespaceName string, opts services.ListOptions) (*services.ListResult[v1alpha1.DataPlane], error)

ListDataPlanes provides a mock function with given fields: ctx, namespaceName, opts

func (*MockService) UpdateDataPlane

func (_m *MockService) UpdateDataPlane(ctx context.Context, namespaceName string, dp *v1alpha1.DataPlane) (*v1alpha1.DataPlane, error)

UpdateDataPlane provides a mock function with given fields: ctx, namespaceName, dp

type MockService_CreateDataPlane_Call

type MockService_CreateDataPlane_Call struct {
	*mock.Call
}

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

func (*MockService_CreateDataPlane_Call) Return

func (*MockService_CreateDataPlane_Call) Run

func (*MockService_CreateDataPlane_Call) RunAndReturn

type MockService_DeleteDataPlane_Call

type MockService_DeleteDataPlane_Call struct {
	*mock.Call
}

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

func (*MockService_DeleteDataPlane_Call) Return

func (*MockService_DeleteDataPlane_Call) Run

func (_c *MockService_DeleteDataPlane_Call) Run(run func(ctx context.Context, namespaceName string, dpName string)) *MockService_DeleteDataPlane_Call

func (*MockService_DeleteDataPlane_Call) RunAndReturn

type MockService_Expecter

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

func (*MockService_Expecter) CreateDataPlane

func (_e *MockService_Expecter) CreateDataPlane(ctx interface{}, namespaceName interface{}, dp interface{}) *MockService_CreateDataPlane_Call

CreateDataPlane is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • dp *v1alpha1.DataPlane

func (*MockService_Expecter) DeleteDataPlane

func (_e *MockService_Expecter) DeleteDataPlane(ctx interface{}, namespaceName interface{}, dpName interface{}) *MockService_DeleteDataPlane_Call

DeleteDataPlane is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • dpName string

func (*MockService_Expecter) GetDataPlane

func (_e *MockService_Expecter) GetDataPlane(ctx interface{}, namespaceName interface{}, dpName interface{}) *MockService_GetDataPlane_Call

GetDataPlane is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • dpName string

func (*MockService_Expecter) ListDataPlanes

func (_e *MockService_Expecter) ListDataPlanes(ctx interface{}, namespaceName interface{}, opts interface{}) *MockService_ListDataPlanes_Call

ListDataPlanes is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • opts services.ListOptions

func (*MockService_Expecter) UpdateDataPlane

func (_e *MockService_Expecter) UpdateDataPlane(ctx interface{}, namespaceName interface{}, dp interface{}) *MockService_UpdateDataPlane_Call

UpdateDataPlane is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • dp *v1alpha1.DataPlane

type MockService_GetDataPlane_Call

type MockService_GetDataPlane_Call struct {
	*mock.Call
}

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

func (*MockService_GetDataPlane_Call) Return

func (*MockService_GetDataPlane_Call) Run

func (_c *MockService_GetDataPlane_Call) Run(run func(ctx context.Context, namespaceName string, dpName string)) *MockService_GetDataPlane_Call

func (*MockService_GetDataPlane_Call) RunAndReturn

type MockService_ListDataPlanes_Call

type MockService_ListDataPlanes_Call struct {
	*mock.Call
}

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

func (*MockService_ListDataPlanes_Call) Return

func (*MockService_ListDataPlanes_Call) Run

type MockService_UpdateDataPlane_Call

type MockService_UpdateDataPlane_Call struct {
	*mock.Call
}

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

func (*MockService_UpdateDataPlane_Call) Return

func (*MockService_UpdateDataPlane_Call) Run

func (*MockService_UpdateDataPlane_Call) RunAndReturn

Jump to

Keyboard shortcuts

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