Documentation
¶
Index ¶
- type MockService
- func (_m *MockService) CreateComponent(ctx context.Context, namespaceName string, _a2 *v1alpha1.Component) (*v1alpha1.Component, error)
- func (_m *MockService) DeleteComponent(ctx context.Context, namespaceName string, componentName string) error
- func (_m *MockService) EXPECT() *MockService_Expecter
- func (_m *MockService) GenerateRelease(ctx context.Context, namespaceName string, componentName string, ...) (*v1alpha1.ComponentRelease, error)
- func (_m *MockService) GetComponent(ctx context.Context, namespaceName string, componentName string) (*v1alpha1.Component, error)
- func (_m *MockService) GetComponentReleaseSchema(ctx context.Context, namespaceName string, releaseName string, ...) (*v1.JSONSchemaProps, error)
- func (_m *MockService) GetComponentSchema(ctx context.Context, namespaceName string, componentName string) (*v1.JSONSchemaProps, error)
- func (_m *MockService) ListComponents(ctx context.Context, namespaceName string, projectName string, ...) (*services.ListResult[v1alpha1.Component], error)
- func (_m *MockService) UpdateComponent(ctx context.Context, namespaceName string, _a2 *v1alpha1.Component) (*v1alpha1.Component, error)
- type MockService_CreateComponent_Call
- func (_c *MockService_CreateComponent_Call) Return(_a0 *v1alpha1.Component, _a1 error) *MockService_CreateComponent_Call
- func (_c *MockService_CreateComponent_Call) Run(run func(ctx context.Context, namespaceName string, _a2 *v1alpha1.Component)) *MockService_CreateComponent_Call
- func (_c *MockService_CreateComponent_Call) RunAndReturn(...) *MockService_CreateComponent_Call
- type MockService_DeleteComponent_Call
- func (_c *MockService_DeleteComponent_Call) Return(_a0 error) *MockService_DeleteComponent_Call
- func (_c *MockService_DeleteComponent_Call) Run(run func(ctx context.Context, namespaceName string, componentName string)) *MockService_DeleteComponent_Call
- func (_c *MockService_DeleteComponent_Call) RunAndReturn(run func(context.Context, string, string) error) *MockService_DeleteComponent_Call
- type MockService_Expecter
- func (_e *MockService_Expecter) CreateComponent(ctx interface{}, namespaceName interface{}, _a2 interface{}) *MockService_CreateComponent_Call
- func (_e *MockService_Expecter) DeleteComponent(ctx interface{}, namespaceName interface{}, componentName interface{}) *MockService_DeleteComponent_Call
- func (_e *MockService_Expecter) GenerateRelease(ctx interface{}, namespaceName interface{}, componentName interface{}, ...) *MockService_GenerateRelease_Call
- func (_e *MockService_Expecter) GetComponent(ctx interface{}, namespaceName interface{}, componentName interface{}) *MockService_GetComponent_Call
- func (_e *MockService_Expecter) GetComponentReleaseSchema(ctx interface{}, namespaceName interface{}, releaseName interface{}, ...) *MockService_GetComponentReleaseSchema_Call
- func (_e *MockService_Expecter) GetComponentSchema(ctx interface{}, namespaceName interface{}, componentName interface{}) *MockService_GetComponentSchema_Call
- func (_e *MockService_Expecter) ListComponents(ctx interface{}, namespaceName interface{}, projectName interface{}, ...) *MockService_ListComponents_Call
- func (_e *MockService_Expecter) UpdateComponent(ctx interface{}, namespaceName interface{}, _a2 interface{}) *MockService_UpdateComponent_Call
- type MockService_GenerateRelease_Call
- func (_c *MockService_GenerateRelease_Call) Return(_a0 *v1alpha1.ComponentRelease, _a1 error) *MockService_GenerateRelease_Call
- func (_c *MockService_GenerateRelease_Call) Run(run func(ctx context.Context, namespaceName string, componentName string, ...)) *MockService_GenerateRelease_Call
- func (_c *MockService_GenerateRelease_Call) RunAndReturn(...) *MockService_GenerateRelease_Call
- type MockService_GetComponentReleaseSchema_Call
- func (_c *MockService_GetComponentReleaseSchema_Call) Return(_a0 *v1.JSONSchemaProps, _a1 error) *MockService_GetComponentReleaseSchema_Call
- func (_c *MockService_GetComponentReleaseSchema_Call) Run(run func(ctx context.Context, namespaceName string, releaseName string, ...)) *MockService_GetComponentReleaseSchema_Call
- func (_c *MockService_GetComponentReleaseSchema_Call) RunAndReturn(run func(context.Context, string, string, string) (*v1.JSONSchemaProps, error)) *MockService_GetComponentReleaseSchema_Call
- type MockService_GetComponentSchema_Call
- func (_c *MockService_GetComponentSchema_Call) Return(_a0 *v1.JSONSchemaProps, _a1 error) *MockService_GetComponentSchema_Call
- func (_c *MockService_GetComponentSchema_Call) Run(run func(ctx context.Context, namespaceName string, componentName string)) *MockService_GetComponentSchema_Call
- func (_c *MockService_GetComponentSchema_Call) RunAndReturn(run func(context.Context, string, string) (*v1.JSONSchemaProps, error)) *MockService_GetComponentSchema_Call
- type MockService_GetComponent_Call
- func (_c *MockService_GetComponent_Call) Return(_a0 *v1alpha1.Component, _a1 error) *MockService_GetComponent_Call
- func (_c *MockService_GetComponent_Call) Run(run func(ctx context.Context, namespaceName string, componentName string)) *MockService_GetComponent_Call
- func (_c *MockService_GetComponent_Call) RunAndReturn(run func(context.Context, string, string) (*v1alpha1.Component, error)) *MockService_GetComponent_Call
- type MockService_ListComponents_Call
- func (_c *MockService_ListComponents_Call) Return(_a0 *services.ListResult[v1alpha1.Component], _a1 error) *MockService_ListComponents_Call
- func (_c *MockService_ListComponents_Call) Run(run func(ctx context.Context, namespaceName string, projectName string, ...)) *MockService_ListComponents_Call
- func (_c *MockService_ListComponents_Call) RunAndReturn(...) *MockService_ListComponents_Call
- type MockService_UpdateComponent_Call
- func (_c *MockService_UpdateComponent_Call) Return(_a0 *v1alpha1.Component, _a1 error) *MockService_UpdateComponent_Call
- func (_c *MockService_UpdateComponent_Call) Run(run func(ctx context.Context, namespaceName string, _a2 *v1alpha1.Component)) *MockService_UpdateComponent_Call
- func (_c *MockService_UpdateComponent_Call) RunAndReturn(...) *MockService_UpdateComponent_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockService ¶
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
type MockService_CreateComponent_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 (_c *MockService_CreateComponent_Call) Return(_a0 *v1alpha1.Component, _a1 error) *MockService_CreateComponent_Call
func (*MockService_CreateComponent_Call) Run ¶
func (_c *MockService_CreateComponent_Call) Run(run func(ctx context.Context, namespaceName string, _a2 *v1alpha1.Component)) *MockService_CreateComponent_Call
func (*MockService_CreateComponent_Call) RunAndReturn ¶
func (_c *MockService_CreateComponent_Call) RunAndReturn(run func(context.Context, string, *v1alpha1.Component) (*v1alpha1.Component, error)) *MockService_CreateComponent_Call
type MockService_DeleteComponent_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 (_c *MockService_DeleteComponent_Call) Return(_a0 error) *MockService_DeleteComponent_Call
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 ¶
func (_c *MockService_DeleteComponent_Call) RunAndReturn(run func(context.Context, string, string) error) *MockService_DeleteComponent_Call
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 ¶
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 (_c *MockService_GenerateRelease_Call) Return(_a0 *v1alpha1.ComponentRelease, _a1 error) *MockService_GenerateRelease_Call
func (*MockService_GenerateRelease_Call) Run ¶
func (_c *MockService_GenerateRelease_Call) Run(run func(ctx context.Context, namespaceName string, componentName string, req *component.GenerateReleaseRequest)) *MockService_GenerateRelease_Call
func (*MockService_GenerateRelease_Call) RunAndReturn ¶
func (_c *MockService_GenerateRelease_Call) RunAndReturn(run func(context.Context, string, string, *component.GenerateReleaseRequest) (*v1alpha1.ComponentRelease, error)) *MockService_GenerateRelease_Call
type MockService_GetComponentReleaseSchema_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 (_c *MockService_GetComponentReleaseSchema_Call) Return(_a0 *v1.JSONSchemaProps, _a1 error) *MockService_GetComponentReleaseSchema_Call
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 ¶
func (_c *MockService_GetComponentReleaseSchema_Call) RunAndReturn(run func(context.Context, string, string, string) (*v1.JSONSchemaProps, error)) *MockService_GetComponentReleaseSchema_Call
type MockService_GetComponentSchema_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 (_c *MockService_GetComponentSchema_Call) Return(_a0 *v1.JSONSchemaProps, _a1 error) *MockService_GetComponentSchema_Call
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 ¶
func (_c *MockService_GetComponentSchema_Call) RunAndReturn(run func(context.Context, string, string) (*v1.JSONSchemaProps, error)) *MockService_GetComponentSchema_Call
type MockService_GetComponent_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 (_c *MockService_GetComponent_Call) Return(_a0 *v1alpha1.Component, _a1 error) *MockService_GetComponent_Call
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 ¶
func (_c *MockService_GetComponent_Call) RunAndReturn(run func(context.Context, string, string) (*v1alpha1.Component, error)) *MockService_GetComponent_Call
type MockService_ListComponents_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 (_c *MockService_ListComponents_Call) Return(_a0 *services.ListResult[v1alpha1.Component], _a1 error) *MockService_ListComponents_Call
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
func (*MockService_ListComponents_Call) RunAndReturn ¶
func (_c *MockService_ListComponents_Call) RunAndReturn(run func(context.Context, string, string, services.ListOptions) (*services.ListResult[v1alpha1.Component], error)) *MockService_ListComponents_Call
type MockService_UpdateComponent_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 (_c *MockService_UpdateComponent_Call) Return(_a0 *v1alpha1.Component, _a1 error) *MockService_UpdateComponent_Call
func (*MockService_UpdateComponent_Call) Run ¶
func (_c *MockService_UpdateComponent_Call) Run(run func(ctx context.Context, namespaceName string, _a2 *v1alpha1.Component)) *MockService_UpdateComponent_Call
func (*MockService_UpdateComponent_Call) RunAndReturn ¶
func (_c *MockService_UpdateComponent_Call) RunAndReturn(run func(context.Context, string, *v1alpha1.Component) (*v1alpha1.Component, error)) *MockService_UpdateComponent_Call