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

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

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

func (*MockService) DeleteReleaseBinding

func (_m *MockService) DeleteReleaseBinding(ctx context.Context, namespaceName string, releaseBindingName string) error

DeleteReleaseBinding provides a mock function with given fields: ctx, namespaceName, releaseBindingName

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GetReleaseBinding

func (_m *MockService) GetReleaseBinding(ctx context.Context, namespaceName string, releaseBindingName string) (*v1alpha1.ReleaseBinding, error)

GetReleaseBinding provides a mock function with given fields: ctx, namespaceName, releaseBindingName

func (*MockService) ListReleaseBindings

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

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

func (*MockService) UpdateReleaseBinding

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

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

type MockService_CreateReleaseBinding_Call

type MockService_CreateReleaseBinding_Call struct {
	*mock.Call
}

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

func (*MockService_CreateReleaseBinding_Call) Return

func (*MockService_CreateReleaseBinding_Call) Run

type MockService_DeleteReleaseBinding_Call

type MockService_DeleteReleaseBinding_Call struct {
	*mock.Call
}

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

func (*MockService_DeleteReleaseBinding_Call) Return

func (*MockService_DeleteReleaseBinding_Call) Run

func (_c *MockService_DeleteReleaseBinding_Call) Run(run func(ctx context.Context, namespaceName string, releaseBindingName string)) *MockService_DeleteReleaseBinding_Call

func (*MockService_DeleteReleaseBinding_Call) RunAndReturn

type MockService_Expecter

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

func (*MockService_Expecter) CreateReleaseBinding

func (_e *MockService_Expecter) CreateReleaseBinding(ctx interface{}, namespaceName interface{}, rb interface{}) *MockService_CreateReleaseBinding_Call

CreateReleaseBinding is a helper method to define mock.On call

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

func (*MockService_Expecter) DeleteReleaseBinding

func (_e *MockService_Expecter) DeleteReleaseBinding(ctx interface{}, namespaceName interface{}, releaseBindingName interface{}) *MockService_DeleteReleaseBinding_Call

DeleteReleaseBinding is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • releaseBindingName string

func (*MockService_Expecter) GetReleaseBinding

func (_e *MockService_Expecter) GetReleaseBinding(ctx interface{}, namespaceName interface{}, releaseBindingName interface{}) *MockService_GetReleaseBinding_Call

GetReleaseBinding is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • releaseBindingName string

func (*MockService_Expecter) ListReleaseBindings

func (_e *MockService_Expecter) ListReleaseBindings(ctx interface{}, namespaceName interface{}, componentName interface{}, opts interface{}) *MockService_ListReleaseBindings_Call

ListReleaseBindings is a helper method to define mock.On call

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

func (*MockService_Expecter) UpdateReleaseBinding

func (_e *MockService_Expecter) UpdateReleaseBinding(ctx interface{}, namespaceName interface{}, rb interface{}) *MockService_UpdateReleaseBinding_Call

UpdateReleaseBinding is a helper method to define mock.On call

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

type MockService_GetReleaseBinding_Call

type MockService_GetReleaseBinding_Call struct {
	*mock.Call
}

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

func (*MockService_GetReleaseBinding_Call) Return

func (*MockService_GetReleaseBinding_Call) Run

func (_c *MockService_GetReleaseBinding_Call) Run(run func(ctx context.Context, namespaceName string, releaseBindingName string)) *MockService_GetReleaseBinding_Call

func (*MockService_GetReleaseBinding_Call) RunAndReturn

type MockService_ListReleaseBindings_Call

type MockService_ListReleaseBindings_Call struct {
	*mock.Call
}

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

func (*MockService_ListReleaseBindings_Call) Return

func (*MockService_ListReleaseBindings_Call) Run

type MockService_UpdateReleaseBinding_Call

type MockService_UpdateReleaseBinding_Call struct {
	*mock.Call
}

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

func (*MockService_UpdateReleaseBinding_Call) Return

func (*MockService_UpdateReleaseBinding_Call) Run

Jump to

Keyboard shortcuts

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