Documentation ¶
Index ¶
- type ChangeDetectorService
- type NamespaceService
- func (_m *NamespaceService) Create(ctx context.Context, ns namespace.Namespace) (namespace.Namespace, error)
- func (_m *NamespaceService) Delete(ctx context.Context, name string) error
- func (_m *NamespaceService) Get(ctx context.Context, name string) (namespace.Namespace, error)
- func (_m *NamespaceService) List(ctx context.Context) ([]namespace.Namespace, error)
- func (_m *NamespaceService) Update(ctx context.Context, ns namespace.Namespace) (namespace.Namespace, error)
- type SchemaService
- func (_m *SchemaService) CheckCompatibility(ctx context.Context, nsName string, schemaName string, compatibility string, ...) error
- func (_m *SchemaService) Create(ctx context.Context, nsName string, schemaName string, ...) (schema.SchemaInfo, error)
- func (_m *SchemaService) Delete(ctx context.Context, namespace string, schemaName string) error
- func (_m *SchemaService) DeleteVersion(ctx context.Context, namespace string, schemaName string, version int32) error
- func (_m *SchemaService) DetectSchemaChange(namespace string, schemaName string, fromVersion string, toVersion string, ...) (*stencilv1beta1.SchemaChangedEvent, error)
- func (_m *SchemaService) Get(ctx context.Context, namespace string, schemaName string, version int32) (*schema.Metadata, []byte, error)
- func (_m *SchemaService) GetLatest(ctx context.Context, namespace string, schemaName string) (*schema.Metadata, []byte, error)
- func (_m *SchemaService) GetMetadata(ctx context.Context, namespace string, schemaName string) (*schema.Metadata, error)
- func (_m *SchemaService) List(ctx context.Context, namespaceID string) ([]schema.Schema, error)
- func (_m *SchemaService) ListVersions(ctx context.Context, namespaceID string, schemaName string) ([]int32, error)
- func (_m *SchemaService) UpdateMetadata(ctx context.Context, namespace string, schemaName string, ...) (*schema.Metadata, error)
- type SearchService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeDetectorService ¶ added in v0.8.5
ChangeDetectorService is an autogenerated mock type for the ChangeDetectorService type
func NewChangeDetectorService ¶ added in v0.8.5
func NewChangeDetectorService(t interface { mock.TestingT Cleanup(func()) }) *ChangeDetectorService
NewChangeDetectorService creates a new instance of ChangeDetectorService. 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 (*ChangeDetectorService) IdentifySchemaChange ¶ added in v0.8.5
func (_m *ChangeDetectorService) IdentifySchemaChange(ctx context.Context, request *changedetector.ChangeRequest) (*stencilv1beta1.SchemaChangedEvent, error)
IdentifySchemaChange provides a mock function with given fields: ctx, request
type NamespaceService ¶
NamespaceService is an autogenerated mock type for the NamespaceService type
func NewNamespaceService ¶
func NewNamespaceService(t mockConstructorTestingTNewNamespaceService) *NamespaceService
NewNamespaceService creates a new instance of NamespaceService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*NamespaceService) Create ¶
func (_m *NamespaceService) Create(ctx context.Context, ns namespace.Namespace) (namespace.Namespace, error)
Create provides a mock function with given fields: ctx, ns
func (*NamespaceService) Delete ¶
func (_m *NamespaceService) Delete(ctx context.Context, name string) error
Delete provides a mock function with given fields: ctx, name
type SchemaService ¶
SchemaService is an autogenerated mock type for the SchemaService type
func NewSchemaService ¶
func NewSchemaService(t interface { mock.TestingT Cleanup(func()) }) *SchemaService
NewSchemaService creates a new instance of SchemaService. 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 (*SchemaService) CheckCompatibility ¶
func (_m *SchemaService) CheckCompatibility(ctx context.Context, nsName string, schemaName string, compatibility string, data []byte) error
CheckCompatibility provides a mock function with given fields: ctx, nsName, schemaName, compatibility, data
func (*SchemaService) Create ¶
func (_m *SchemaService) Create(ctx context.Context, nsName string, schemaName string, metadata *schema.Metadata, data []byte, commitSHA string) (schema.SchemaInfo, error)
Create provides a mock function with given fields: ctx, nsName, schemaName, metadata, data, commitSHA
func (*SchemaService) Delete ¶
Delete provides a mock function with given fields: ctx, namespace, schemaName
func (*SchemaService) DeleteVersion ¶
func (_m *SchemaService) DeleteVersion(ctx context.Context, namespace string, schemaName string, version int32) error
DeleteVersion provides a mock function with given fields: ctx, namespace, schemaName, version
func (*SchemaService) DetectSchemaChange ¶ added in v0.8.5
func (_m *SchemaService) DetectSchemaChange(namespace string, schemaName string, fromVersion string, toVersion string, depth string) (*stencilv1beta1.SchemaChangedEvent, error)
DetectSchemaChange provides a mock function with given fields: namespace, schemaName, fromVersion, toVersion, depth
func (*SchemaService) Get ¶
func (_m *SchemaService) Get(ctx context.Context, namespace string, schemaName string, version int32) (*schema.Metadata, []byte, error)
Get provides a mock function with given fields: ctx, namespace, schemaName, version
func (*SchemaService) GetLatest ¶
func (_m *SchemaService) GetLatest(ctx context.Context, namespace string, schemaName string) (*schema.Metadata, []byte, error)
GetLatest provides a mock function with given fields: ctx, namespace, schemaName
func (*SchemaService) GetMetadata ¶
func (_m *SchemaService) GetMetadata(ctx context.Context, namespace string, schemaName string) (*schema.Metadata, error)
GetMetadata provides a mock function with given fields: ctx, namespace, schemaName
func (*SchemaService) ListVersions ¶
func (_m *SchemaService) ListVersions(ctx context.Context, namespaceID string, schemaName string) ([]int32, error)
ListVersions provides a mock function with given fields: ctx, namespaceID, schemaName
type SearchService ¶
SearchService is an autogenerated mock type for the SearchService type
func NewSearchService ¶
func NewSearchService(t testing.TB) *SearchService
NewSearchService creates a new instance of SearchService. It also registers the testing.TB interface on the mock and a cleanup function to assert the mocks expectations.
func (*SearchService) Search ¶
func (_m *SearchService) Search(ctx context.Context, req *search.SearchRequest) (*search.SearchResponse, error)
Search provides a mock function with given fields: ctx, req