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

func (_m *MockService) CreateResourceReleaseBinding(ctx context.Context, namespaceName string, rb *v1alpha1.ResourceReleaseBinding) (*v1alpha1.ResourceReleaseBinding, error)

CreateResourceReleaseBinding provides a mock function with given fields: ctx, namespaceName, rb

func (*MockService) DeleteResourceReleaseBinding

func (_m *MockService) DeleteResourceReleaseBinding(ctx context.Context, namespaceName string, resourceReleaseBindingName string) error

DeleteResourceReleaseBinding provides a mock function with given fields: ctx, namespaceName, resourceReleaseBindingName

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GetResourceReleaseBinding

func (_m *MockService) GetResourceReleaseBinding(ctx context.Context, namespaceName string, resourceReleaseBindingName string) (*v1alpha1.ResourceReleaseBinding, error)

GetResourceReleaseBinding provides a mock function with given fields: ctx, namespaceName, resourceReleaseBindingName

func (*MockService) ListResourceReleaseBindings

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

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

func (*MockService) UpdateResourceReleaseBinding

func (_m *MockService) UpdateResourceReleaseBinding(ctx context.Context, namespaceName string, rb *v1alpha1.ResourceReleaseBinding) (*v1alpha1.ResourceReleaseBinding, error)

UpdateResourceReleaseBinding provides a mock function with given fields: ctx, namespaceName, rb

type MockService_CreateResourceReleaseBinding_Call

type MockService_CreateResourceReleaseBinding_Call struct {
	*mock.Call
}

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

func (*MockService_CreateResourceReleaseBinding_Call) Return

func (*MockService_CreateResourceReleaseBinding_Call) Run

type MockService_DeleteResourceReleaseBinding_Call

type MockService_DeleteResourceReleaseBinding_Call struct {
	*mock.Call
}

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

func (*MockService_DeleteResourceReleaseBinding_Call) Return

func (*MockService_DeleteResourceReleaseBinding_Call) Run

func (_c *MockService_DeleteResourceReleaseBinding_Call) Run(run func(ctx context.Context, namespaceName string, resourceReleaseBindingName string)) *MockService_DeleteResourceReleaseBinding_Call

func (*MockService_DeleteResourceReleaseBinding_Call) RunAndReturn

type MockService_Expecter

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

func (*MockService_Expecter) CreateResourceReleaseBinding

func (_e *MockService_Expecter) CreateResourceReleaseBinding(ctx interface{}, namespaceName interface{}, rb interface{}) *MockService_CreateResourceReleaseBinding_Call

CreateResourceReleaseBinding is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • rb *v1alpha1.ResourceReleaseBinding

func (*MockService_Expecter) DeleteResourceReleaseBinding

func (_e *MockService_Expecter) DeleteResourceReleaseBinding(ctx interface{}, namespaceName interface{}, resourceReleaseBindingName interface{}) *MockService_DeleteResourceReleaseBinding_Call

DeleteResourceReleaseBinding is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • resourceReleaseBindingName string

func (*MockService_Expecter) GetResourceReleaseBinding

func (_e *MockService_Expecter) GetResourceReleaseBinding(ctx interface{}, namespaceName interface{}, resourceReleaseBindingName interface{}) *MockService_GetResourceReleaseBinding_Call

GetResourceReleaseBinding is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • resourceReleaseBindingName string

func (*MockService_Expecter) ListResourceReleaseBindings

func (_e *MockService_Expecter) ListResourceReleaseBindings(ctx interface{}, namespaceName interface{}, resourceName interface{}, opts interface{}) *MockService_ListResourceReleaseBindings_Call

ListResourceReleaseBindings is a helper method to define mock.On call

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

func (*MockService_Expecter) UpdateResourceReleaseBinding

func (_e *MockService_Expecter) UpdateResourceReleaseBinding(ctx interface{}, namespaceName interface{}, rb interface{}) *MockService_UpdateResourceReleaseBinding_Call

UpdateResourceReleaseBinding is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • rb *v1alpha1.ResourceReleaseBinding

type MockService_GetResourceReleaseBinding_Call

type MockService_GetResourceReleaseBinding_Call struct {
	*mock.Call
}

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

func (*MockService_GetResourceReleaseBinding_Call) Return

func (*MockService_GetResourceReleaseBinding_Call) Run

func (_c *MockService_GetResourceReleaseBinding_Call) Run(run func(ctx context.Context, namespaceName string, resourceReleaseBindingName string)) *MockService_GetResourceReleaseBinding_Call

type MockService_ListResourceReleaseBindings_Call

type MockService_ListResourceReleaseBindings_Call struct {
	*mock.Call
}

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

func (*MockService_ListResourceReleaseBindings_Call) Run

type MockService_UpdateResourceReleaseBinding_Call

type MockService_UpdateResourceReleaseBinding_Call struct {
	*mock.Call
}

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

func (*MockService_UpdateResourceReleaseBinding_Call) Return

func (*MockService_UpdateResourceReleaseBinding_Call) Run

Jump to

Keyboard shortcuts

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