mocks

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RelationshipReader

type RelationshipReader struct {
	mock.Mock
}

RelationshipReader is an autogenerated mock type for the RelationshipReader type

func (*RelationshipReader) GetUniqueEntityIDsByEntityType

func (_m *RelationshipReader) GetUniqueEntityIDsByEntityType(ctx context.Context, typ, token string) (ids []string, err error)

GetUniqueEntityIDsByEntityType - Reads relation tuples from the repository.

func (*RelationshipReader) HeadSnapshot

func (_m *RelationshipReader) HeadSnapshot(ctx context.Context) (token.SnapToken, error)

HeadSnapshot - Reads the latest version of the snapshot from the repository.

func (*RelationshipReader) QueryRelationships

func (_m *RelationshipReader) QueryRelationships(ctx context.Context, filter *base.TupleFilter, snap string) (database.ITupleCollection, error)

QueryRelationships - Reads relation tuples from the repository.

type RelationshipWriter

type RelationshipWriter struct {
	mock.Mock
}

RelationshipWriter is an autogenerated mock type for the RelationshipWriter type

type SchemaReader

type SchemaReader struct {
	mock.Mock
}

SchemaReader is an autogenerated mock type for the SchemaReader type

func (*SchemaReader) DeleteRelationships

func (_m *SchemaReader) DeleteRelationships(ctx context.Context, filter *base.TupleFilter) (token.EncodedSnapToken, error)

DeleteRelationships - Delete relationship from repository

func (*SchemaReader) HeadVersion

func (_m *SchemaReader) HeadVersion(ctx context.Context) (version string, err error)

HeadVersion - Reads the latest version from the repository.

func (*SchemaReader) ReadSchema

func (_m *SchemaReader) ReadSchema(ctx context.Context, version string) (schema *base.IndexedSchema, err error)

ReadSchema - Reads a new schema from repository

func (*SchemaReader) ReadSchemaDefinition

func (_m *SchemaReader) ReadSchemaDefinition(ctx context.Context, entityType, version string) (definition *base.EntityDefinition, v string, err error)

ReadSchemaDefinition - Reads a Schema Definition from repository

func (*SchemaReader) WriteRelationships

func (_m *SchemaReader) WriteRelationships(ctx context.Context, collection database.ITupleCollection) (token.EncodedSnapToken, error)

WriteRelationships - Write a Relation to repository

func (*SchemaReader) WriteSchema

func (_m *SchemaReader) WriteSchema(ctx context.Context, definitions []repositories.SchemaDefinition) (version string, err error)

WriteSchema - Write Schema to repository

type SchemaWriter

type SchemaWriter struct {
	mock.Mock
}

SchemaWriter is an autogenerated mock type for the SchemaWriter type

Jump to

Keyboard shortcuts

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