mocks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: Apache-2.0 Imports: 6 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) CreateComponent

func (_m *MockService) CreateComponent(ctx context.Context, namespaceName string, _a2 *v1alpha1.Component) (*v1alpha1.Component, error)

CreateComponent provides a mock function with given fields: ctx, namespaceName, _a2

func (*MockService) DeleteComponent

func (_m *MockService) DeleteComponent(ctx context.Context, namespaceName string, componentName string) error

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

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GenerateRelease

func (_m *MockService) GenerateRelease(ctx context.Context, namespaceName string, componentName string, req *component.GenerateReleaseRequest) (*v1alpha1.ComponentRelease, error)

GenerateRelease provides a mock function with given fields: ctx, namespaceName, componentName, req

func (*MockService) GetComponent

func (_m *MockService) GetComponent(ctx context.Context, namespaceName string, componentName string) (*v1alpha1.Component, error)

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

func (*MockService) GetComponentReleaseSchema

func (_m *MockService) GetComponentReleaseSchema(ctx context.Context, namespaceName string, releaseName string, componentName string) (*v1.JSONSchemaProps, error)

GetComponentReleaseSchema provides a mock function with given fields: ctx, namespaceName, releaseName, componentName

func (*MockService) GetComponentSchema

func (_m *MockService) GetComponentSchema(ctx context.Context, namespaceName string, componentName string) (*v1.JSONSchemaProps, error)

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

func (*MockService) ListComponents

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

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

func (*MockService) UpdateComponent

func (_m *MockService) UpdateComponent(ctx context.Context, namespaceName string, _a2 *v1alpha1.Component) (*v1alpha1.Component, error)

UpdateComponent provides a mock function with given fields: ctx, namespaceName, _a2

type MockService_CreateComponent_Call

type MockService_CreateComponent_Call struct {
	*mock.Call
}

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

func (*MockService_CreateComponent_Call) Return

func (*MockService_CreateComponent_Call) Run

func (*MockService_CreateComponent_Call) RunAndReturn

type MockService_DeleteComponent_Call

type MockService_DeleteComponent_Call struct {
	*mock.Call
}

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

func (*MockService_DeleteComponent_Call) Return

func (*MockService_DeleteComponent_Call) Run

func (_c *MockService_DeleteComponent_Call) Run(run func(ctx context.Context, namespaceName string, componentName string)) *MockService_DeleteComponent_Call

func (*MockService_DeleteComponent_Call) RunAndReturn

type MockService_Expecter

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

func (*MockService_Expecter) CreateComponent

func (_e *MockService_Expecter) CreateComponent(ctx interface{}, namespaceName interface{}, _a2 interface{}) *MockService_CreateComponent_Call

CreateComponent is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • _a2 *v1alpha1.Component

func (*MockService_Expecter) DeleteComponent

func (_e *MockService_Expecter) DeleteComponent(ctx interface{}, namespaceName interface{}, componentName interface{}) *MockService_DeleteComponent_Call

DeleteComponent is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • componentName string

func (*MockService_Expecter) GenerateRelease

func (_e *MockService_Expecter) GenerateRelease(ctx interface{}, namespaceName interface{}, componentName interface{}, req interface{}) *MockService_GenerateRelease_Call

GenerateRelease is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • componentName string
  • req *component.GenerateReleaseRequest

func (*MockService_Expecter) GetComponent

func (_e *MockService_Expecter) GetComponent(ctx interface{}, namespaceName interface{}, componentName interface{}) *MockService_GetComponent_Call

GetComponent is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • componentName string

func (*MockService_Expecter) GetComponentReleaseSchema

func (_e *MockService_Expecter) GetComponentReleaseSchema(ctx interface{}, namespaceName interface{}, releaseName interface{}, componentName interface{}) *MockService_GetComponentReleaseSchema_Call

GetComponentReleaseSchema is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • releaseName string
  • componentName string

func (*MockService_Expecter) GetComponentSchema

func (_e *MockService_Expecter) GetComponentSchema(ctx interface{}, namespaceName interface{}, componentName interface{}) *MockService_GetComponentSchema_Call

GetComponentSchema is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • componentName string

func (*MockService_Expecter) ListComponents

func (_e *MockService_Expecter) ListComponents(ctx interface{}, namespaceName interface{}, projectName interface{}, opts interface{}) *MockService_ListComponents_Call

ListComponents is a helper method to define mock.On call

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

func (*MockService_Expecter) UpdateComponent

func (_e *MockService_Expecter) UpdateComponent(ctx interface{}, namespaceName interface{}, _a2 interface{}) *MockService_UpdateComponent_Call

UpdateComponent is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • _a2 *v1alpha1.Component

type MockService_GenerateRelease_Call

type MockService_GenerateRelease_Call struct {
	*mock.Call
}

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

func (*MockService_GenerateRelease_Call) Return

func (*MockService_GenerateRelease_Call) Run

type MockService_GetComponentReleaseSchema_Call

type MockService_GetComponentReleaseSchema_Call struct {
	*mock.Call
}

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

func (*MockService_GetComponentReleaseSchema_Call) Return

func (*MockService_GetComponentReleaseSchema_Call) Run

func (_c *MockService_GetComponentReleaseSchema_Call) Run(run func(ctx context.Context, namespaceName string, releaseName string, componentName string)) *MockService_GetComponentReleaseSchema_Call

func (*MockService_GetComponentReleaseSchema_Call) RunAndReturn

type MockService_GetComponentSchema_Call

type MockService_GetComponentSchema_Call struct {
	*mock.Call
}

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

func (*MockService_GetComponentSchema_Call) Return

func (*MockService_GetComponentSchema_Call) Run

func (_c *MockService_GetComponentSchema_Call) Run(run func(ctx context.Context, namespaceName string, componentName string)) *MockService_GetComponentSchema_Call

func (*MockService_GetComponentSchema_Call) RunAndReturn

type MockService_GetComponent_Call

type MockService_GetComponent_Call struct {
	*mock.Call
}

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

func (*MockService_GetComponent_Call) Return

func (*MockService_GetComponent_Call) Run

func (_c *MockService_GetComponent_Call) Run(run func(ctx context.Context, namespaceName string, componentName string)) *MockService_GetComponent_Call

func (*MockService_GetComponent_Call) RunAndReturn

type MockService_ListComponents_Call

type MockService_ListComponents_Call struct {
	*mock.Call
}

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

func (*MockService_ListComponents_Call) Return

func (*MockService_ListComponents_Call) Run

func (_c *MockService_ListComponents_Call) Run(run func(ctx context.Context, namespaceName string, projectName string, opts services.ListOptions)) *MockService_ListComponents_Call

type MockService_UpdateComponent_Call

type MockService_UpdateComponent_Call struct {
	*mock.Call
}

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

func (*MockService_UpdateComponent_Call) Return

func (*MockService_UpdateComponent_Call) Run

func (*MockService_UpdateComponent_Call) RunAndReturn

Jump to

Keyboard shortcuts

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