mock_datalayer

package
v1.50.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package mock_datalayer is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDataLayer

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

MockDataLayer is a mock of DataLayer interface.

func NewMockDataLayer

func NewMockDataLayer(ctrl *gomock.Controller) *MockDataLayer

NewMockDataLayer creates a new mock instance.

func (*MockDataLayer) CheckRevision

func (m *MockDataLayer) CheckRevision(ctx context.Context, revision datastore.Revision) error

CheckRevision mocks base method.

func (*MockDataLayer) Close

func (m *MockDataLayer) Close() error

Close mocks base method.

func (*MockDataLayer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockDataLayer) Features

func (m *MockDataLayer) Features(ctx context.Context) (*datastore.Features, error)

Features mocks base method.

func (*MockDataLayer) HeadRevision

func (m *MockDataLayer) HeadRevision(ctx context.Context) (datastore.Revision, error)

HeadRevision mocks base method.

func (*MockDataLayer) MetricsID

func (m *MockDataLayer) MetricsID() (string, error)

MetricsID mocks base method.

func (*MockDataLayer) OfflineFeatures

func (m *MockDataLayer) OfflineFeatures() (*datastore.Features, error)

OfflineFeatures mocks base method.

func (*MockDataLayer) OptimizedRevision

func (m *MockDataLayer) OptimizedRevision(ctx context.Context) (datastore.Revision, error)

OptimizedRevision mocks base method.

func (*MockDataLayer) ReadWriteTx

ReadWriteTx mocks base method.

func (*MockDataLayer) ReadyState

func (m *MockDataLayer) ReadyState(ctx context.Context) (datastore.ReadyState, error)

ReadyState mocks base method.

func (*MockDataLayer) RevisionFromString

func (m *MockDataLayer) RevisionFromString(serialized string) (datastore.Revision, error)

RevisionFromString mocks base method.

func (*MockDataLayer) SnapshotReader

func (m *MockDataLayer) SnapshotReader(arg0 datastore.Revision) datalayer.RevisionedReader

SnapshotReader mocks base method.

func (*MockDataLayer) Statistics

func (m *MockDataLayer) Statistics(ctx context.Context) (datastore.Stats, error)

Statistics mocks base method.

func (*MockDataLayer) UniqueID

func (m *MockDataLayer) UniqueID(ctx context.Context) (string, error)

UniqueID mocks base method.

func (*MockDataLayer) Watch

func (m *MockDataLayer) Watch(ctx context.Context, afterRevision datastore.Revision, arg2 datastore.WatchOptions) (<-chan datastore.RevisionChanges, <-chan error)

Watch mocks base method.

type MockDataLayerMockRecorder

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

MockDataLayerMockRecorder is the mock recorder for MockDataLayer.

func (*MockDataLayerMockRecorder) CheckRevision

func (mr *MockDataLayerMockRecorder) CheckRevision(ctx, revision any) *gomock.Call

CheckRevision indicates an expected call of CheckRevision.

func (*MockDataLayerMockRecorder) Close

func (mr *MockDataLayerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockDataLayerMockRecorder) Features

func (mr *MockDataLayerMockRecorder) Features(ctx any) *gomock.Call

Features indicates an expected call of Features.

func (*MockDataLayerMockRecorder) HeadRevision

func (mr *MockDataLayerMockRecorder) HeadRevision(ctx any) *gomock.Call

HeadRevision indicates an expected call of HeadRevision.

func (*MockDataLayerMockRecorder) MetricsID

func (mr *MockDataLayerMockRecorder) MetricsID() *gomock.Call

MetricsID indicates an expected call of MetricsID.

func (*MockDataLayerMockRecorder) OfflineFeatures

func (mr *MockDataLayerMockRecorder) OfflineFeatures() *gomock.Call

OfflineFeatures indicates an expected call of OfflineFeatures.

func (*MockDataLayerMockRecorder) OptimizedRevision

func (mr *MockDataLayerMockRecorder) OptimizedRevision(ctx any) *gomock.Call

OptimizedRevision indicates an expected call of OptimizedRevision.

func (*MockDataLayerMockRecorder) ReadWriteTx

func (mr *MockDataLayerMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call

ReadWriteTx indicates an expected call of ReadWriteTx.

func (*MockDataLayerMockRecorder) ReadyState

func (mr *MockDataLayerMockRecorder) ReadyState(ctx any) *gomock.Call

ReadyState indicates an expected call of ReadyState.

func (*MockDataLayerMockRecorder) RevisionFromString

func (mr *MockDataLayerMockRecorder) RevisionFromString(serialized any) *gomock.Call

RevisionFromString indicates an expected call of RevisionFromString.

func (*MockDataLayerMockRecorder) SnapshotReader

func (mr *MockDataLayerMockRecorder) SnapshotReader(arg0 any) *gomock.Call

SnapshotReader indicates an expected call of SnapshotReader.

func (*MockDataLayerMockRecorder) Statistics

func (mr *MockDataLayerMockRecorder) Statistics(ctx any) *gomock.Call

Statistics indicates an expected call of Statistics.

func (*MockDataLayerMockRecorder) UniqueID

func (mr *MockDataLayerMockRecorder) UniqueID(ctx any) *gomock.Call

UniqueID indicates an expected call of UniqueID.

func (*MockDataLayerMockRecorder) Watch

func (mr *MockDataLayerMockRecorder) Watch(ctx, afterRevision, arg2 any) *gomock.Call

Watch indicates an expected call of Watch.

type MockLegacySchemaWriter

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

MockLegacySchemaWriter is a mock of LegacySchemaWriter interface.

func NewMockLegacySchemaWriter

func NewMockLegacySchemaWriter(ctrl *gomock.Controller) *MockLegacySchemaWriter

NewMockLegacySchemaWriter creates a new mock instance.

func (*MockLegacySchemaWriter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLegacySchemaWriter) LegacyDeleteCaveats

func (m *MockLegacySchemaWriter) LegacyDeleteCaveats(ctx context.Context, names []string) error

LegacyDeleteCaveats mocks base method.

func (*MockLegacySchemaWriter) LegacyDeleteNamespaces

func (m *MockLegacySchemaWriter) LegacyDeleteNamespaces(ctx context.Context, nsNames []string, delOption datastore.DeleteNamespacesRelationshipsOption) error

LegacyDeleteNamespaces mocks base method.

func (*MockLegacySchemaWriter) LegacyWriteCaveats

func (m *MockLegacySchemaWriter) LegacyWriteCaveats(ctx context.Context, caveats []*corev1.CaveatDefinition) error

LegacyWriteCaveats mocks base method.

func (*MockLegacySchemaWriter) LegacyWriteNamespaces

func (m *MockLegacySchemaWriter) LegacyWriteNamespaces(ctx context.Context, newConfigs ...*corev1.NamespaceDefinition) error

LegacyWriteNamespaces mocks base method.

type MockLegacySchemaWriterMockRecorder

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

MockLegacySchemaWriterMockRecorder is the mock recorder for MockLegacySchemaWriter.

func (*MockLegacySchemaWriterMockRecorder) LegacyDeleteCaveats

func (mr *MockLegacySchemaWriterMockRecorder) LegacyDeleteCaveats(ctx, names any) *gomock.Call

LegacyDeleteCaveats indicates an expected call of LegacyDeleteCaveats.

func (*MockLegacySchemaWriterMockRecorder) LegacyDeleteNamespaces

func (mr *MockLegacySchemaWriterMockRecorder) LegacyDeleteNamespaces(ctx, nsNames, delOption any) *gomock.Call

LegacyDeleteNamespaces indicates an expected call of LegacyDeleteNamespaces.

func (*MockLegacySchemaWriterMockRecorder) LegacyWriteCaveats

func (mr *MockLegacySchemaWriterMockRecorder) LegacyWriteCaveats(ctx, caveats any) *gomock.Call

LegacyWriteCaveats indicates an expected call of LegacyWriteCaveats.

func (*MockLegacySchemaWriterMockRecorder) LegacyWriteNamespaces

func (mr *MockLegacySchemaWriterMockRecorder) LegacyWriteNamespaces(ctx any, newConfigs ...any) *gomock.Call

LegacyWriteNamespaces indicates an expected call of LegacyWriteNamespaces.

type MockReadWriteTransaction

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

MockReadWriteTransaction is a mock of ReadWriteTransaction interface.

func NewMockReadWriteTransaction

func NewMockReadWriteTransaction(ctrl *gomock.Controller) *MockReadWriteTransaction

NewMockReadWriteTransaction creates a new mock instance.

func (*MockReadWriteTransaction) BulkLoad

BulkLoad mocks base method.

func (*MockReadWriteTransaction) CountRelationships

func (m *MockReadWriteTransaction) CountRelationships(ctx context.Context, name string) (int, error)

CountRelationships mocks base method.

func (*MockReadWriteTransaction) DeleteRelationships

func (m *MockReadWriteTransaction) DeleteRelationships(ctx context.Context, filter *v1.RelationshipFilter, arg2 ...options.DeleteOptionsOption) (uint64, bool, error)

DeleteRelationships mocks base method.

func (*MockReadWriteTransaction) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockReadWriteTransaction) LegacySchemaWriter

func (m *MockReadWriteTransaction) LegacySchemaWriter() datalayer.LegacySchemaWriter

LegacySchemaWriter mocks base method.

func (*MockReadWriteTransaction) LookupCounters

LookupCounters mocks base method.

func (*MockReadWriteTransaction) QueryRelationships

QueryRelationships mocks base method.

func (*MockReadWriteTransaction) ReadSchema

ReadSchema mocks base method.

func (*MockReadWriteTransaction) RegisterCounter

func (m *MockReadWriteTransaction) RegisterCounter(ctx context.Context, name string, filter *corev1.RelationshipFilter) error

RegisterCounter mocks base method.

func (*MockReadWriteTransaction) ReverseQueryRelationships

ReverseQueryRelationships mocks base method.

func (*MockReadWriteTransaction) StoreCounterValue

func (m *MockReadWriteTransaction) StoreCounterValue(ctx context.Context, name string, value int, computedAtRevision datastore.Revision) error

StoreCounterValue mocks base method.

func (*MockReadWriteTransaction) UnregisterCounter

func (m *MockReadWriteTransaction) UnregisterCounter(ctx context.Context, name string) error

UnregisterCounter mocks base method.

func (*MockReadWriteTransaction) WriteRelationships

func (m *MockReadWriteTransaction) WriteRelationships(ctx context.Context, mutations []tuple.RelationshipUpdate) error

WriteRelationships mocks base method.

func (*MockReadWriteTransaction) WriteSchema

func (m *MockReadWriteTransaction) WriteSchema(ctx context.Context, definitions []datastore.SchemaDefinition, schemaString string, caveatTypeSet *types.TypeSet) error

WriteSchema mocks base method.

type MockReadWriteTransactionMockRecorder

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

MockReadWriteTransactionMockRecorder is the mock recorder for MockReadWriteTransaction.

func (*MockReadWriteTransactionMockRecorder) BulkLoad

func (mr *MockReadWriteTransactionMockRecorder) BulkLoad(ctx, iter any) *gomock.Call

BulkLoad indicates an expected call of BulkLoad.

func (*MockReadWriteTransactionMockRecorder) CountRelationships

func (mr *MockReadWriteTransactionMockRecorder) CountRelationships(ctx, name any) *gomock.Call

CountRelationships indicates an expected call of CountRelationships.

func (*MockReadWriteTransactionMockRecorder) DeleteRelationships

func (mr *MockReadWriteTransactionMockRecorder) DeleteRelationships(ctx, filter any, arg2 ...any) *gomock.Call

DeleteRelationships indicates an expected call of DeleteRelationships.

func (*MockReadWriteTransactionMockRecorder) LegacySchemaWriter

func (mr *MockReadWriteTransactionMockRecorder) LegacySchemaWriter() *gomock.Call

LegacySchemaWriter indicates an expected call of LegacySchemaWriter.

func (*MockReadWriteTransactionMockRecorder) LookupCounters

func (mr *MockReadWriteTransactionMockRecorder) LookupCounters(ctx any) *gomock.Call

LookupCounters indicates an expected call of LookupCounters.

func (*MockReadWriteTransactionMockRecorder) QueryRelationships

func (mr *MockReadWriteTransactionMockRecorder) QueryRelationships(ctx, filter any, arg2 ...any) *gomock.Call

QueryRelationships indicates an expected call of QueryRelationships.

func (*MockReadWriteTransactionMockRecorder) ReadSchema

func (mr *MockReadWriteTransactionMockRecorder) ReadSchema(ctx any) *gomock.Call

ReadSchema indicates an expected call of ReadSchema.

func (*MockReadWriteTransactionMockRecorder) RegisterCounter

func (mr *MockReadWriteTransactionMockRecorder) RegisterCounter(ctx, name, filter any) *gomock.Call

RegisterCounter indicates an expected call of RegisterCounter.

func (*MockReadWriteTransactionMockRecorder) ReverseQueryRelationships

func (mr *MockReadWriteTransactionMockRecorder) ReverseQueryRelationships(ctx, subjectsFilter any, arg2 ...any) *gomock.Call

ReverseQueryRelationships indicates an expected call of ReverseQueryRelationships.

func (*MockReadWriteTransactionMockRecorder) StoreCounterValue

func (mr *MockReadWriteTransactionMockRecorder) StoreCounterValue(ctx, name, value, computedAtRevision any) *gomock.Call

StoreCounterValue indicates an expected call of StoreCounterValue.

func (*MockReadWriteTransactionMockRecorder) UnregisterCounter

func (mr *MockReadWriteTransactionMockRecorder) UnregisterCounter(ctx, name any) *gomock.Call

UnregisterCounter indicates an expected call of UnregisterCounter.

func (*MockReadWriteTransactionMockRecorder) WriteRelationships

func (mr *MockReadWriteTransactionMockRecorder) WriteRelationships(ctx, mutations any) *gomock.Call

WriteRelationships indicates an expected call of WriteRelationships.

func (*MockReadWriteTransactionMockRecorder) WriteSchema

func (mr *MockReadWriteTransactionMockRecorder) WriteSchema(ctx, definitions, schemaString, caveatTypeSet any) *gomock.Call

WriteSchema indicates an expected call of WriteSchema.

type MockRevisionedReader

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

MockRevisionedReader is a mock of RevisionedReader interface.

func NewMockRevisionedReader

func NewMockRevisionedReader(ctrl *gomock.Controller) *MockRevisionedReader

NewMockRevisionedReader creates a new mock instance.

func (*MockRevisionedReader) CountRelationships

func (m *MockRevisionedReader) CountRelationships(ctx context.Context, name string) (int, error)

CountRelationships mocks base method.

func (*MockRevisionedReader) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRevisionedReader) LookupCounters

LookupCounters mocks base method.

func (*MockRevisionedReader) QueryRelationships

QueryRelationships mocks base method.

func (*MockRevisionedReader) ReadSchema

ReadSchema mocks base method.

func (*MockRevisionedReader) ReverseQueryRelationships

ReverseQueryRelationships mocks base method.

type MockRevisionedReaderMockRecorder

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

MockRevisionedReaderMockRecorder is the mock recorder for MockRevisionedReader.

func (*MockRevisionedReaderMockRecorder) CountRelationships

func (mr *MockRevisionedReaderMockRecorder) CountRelationships(ctx, name any) *gomock.Call

CountRelationships indicates an expected call of CountRelationships.

func (*MockRevisionedReaderMockRecorder) LookupCounters

func (mr *MockRevisionedReaderMockRecorder) LookupCounters(ctx any) *gomock.Call

LookupCounters indicates an expected call of LookupCounters.

func (*MockRevisionedReaderMockRecorder) QueryRelationships

func (mr *MockRevisionedReaderMockRecorder) QueryRelationships(ctx, filter any, arg2 ...any) *gomock.Call

QueryRelationships indicates an expected call of QueryRelationships.

func (*MockRevisionedReaderMockRecorder) ReadSchema

func (mr *MockRevisionedReaderMockRecorder) ReadSchema(ctx any) *gomock.Call

ReadSchema indicates an expected call of ReadSchema.

func (*MockRevisionedReaderMockRecorder) ReverseQueryRelationships

func (mr *MockRevisionedReaderMockRecorder) ReverseQueryRelationships(ctx, subjectsFilter any, arg2 ...any) *gomock.Call

ReverseQueryRelationships indicates an expected call of ReverseQueryRelationships.

type MockSchemaReader

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

MockSchemaReader is a mock of SchemaReader interface.

func NewMockSchemaReader

func NewMockSchemaReader(ctrl *gomock.Controller) *MockSchemaReader

NewMockSchemaReader creates a new mock instance.

func (*MockSchemaReader) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockSchemaReader) ListAllCaveatDefinitions

func (m *MockSchemaReader) ListAllCaveatDefinitions(ctx context.Context) ([]datastore.RevisionedCaveat, error)

ListAllCaveatDefinitions mocks base method.

func (*MockSchemaReader) ListAllSchemaDefinitions

func (m *MockSchemaReader) ListAllSchemaDefinitions(ctx context.Context) (map[string]datastore.SchemaDefinition, error)

ListAllSchemaDefinitions mocks base method.

func (*MockSchemaReader) ListAllTypeDefinitions

func (m *MockSchemaReader) ListAllTypeDefinitions(ctx context.Context) ([]datastore.RevisionedTypeDefinition, error)

ListAllTypeDefinitions mocks base method.

func (*MockSchemaReader) LookupCaveatDefByName

func (m *MockSchemaReader) LookupCaveatDefByName(ctx context.Context, name string) (datastore.RevisionedCaveat, bool, error)

LookupCaveatDefByName mocks base method.

func (*MockSchemaReader) LookupCaveatDefinitionsByNames

func (m *MockSchemaReader) LookupCaveatDefinitionsByNames(ctx context.Context, names []string) (map[string]datastore.CaveatDefinition, error)

LookupCaveatDefinitionsByNames mocks base method.

func (*MockSchemaReader) LookupSchemaDefinitionsByNames

func (m *MockSchemaReader) LookupSchemaDefinitionsByNames(ctx context.Context, names []string) (map[string]datastore.SchemaDefinition, error)

LookupSchemaDefinitionsByNames mocks base method.

func (*MockSchemaReader) LookupTypeDefByName

func (m *MockSchemaReader) LookupTypeDefByName(ctx context.Context, name string) (datastore.RevisionedTypeDefinition, bool, error)

LookupTypeDefByName mocks base method.

func (*MockSchemaReader) LookupTypeDefinitionsByNames

func (m *MockSchemaReader) LookupTypeDefinitionsByNames(ctx context.Context, names []string) (map[string]datastore.TypeDefinition, error)

LookupTypeDefinitionsByNames mocks base method.

func (*MockSchemaReader) SchemaText

func (m *MockSchemaReader) SchemaText(ctx context.Context) (string, error)

SchemaText mocks base method.

type MockSchemaReaderMockRecorder

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

MockSchemaReaderMockRecorder is the mock recorder for MockSchemaReader.

func (*MockSchemaReaderMockRecorder) ListAllCaveatDefinitions

func (mr *MockSchemaReaderMockRecorder) ListAllCaveatDefinitions(ctx any) *gomock.Call

ListAllCaveatDefinitions indicates an expected call of ListAllCaveatDefinitions.

func (*MockSchemaReaderMockRecorder) ListAllSchemaDefinitions

func (mr *MockSchemaReaderMockRecorder) ListAllSchemaDefinitions(ctx any) *gomock.Call

ListAllSchemaDefinitions indicates an expected call of ListAllSchemaDefinitions.

func (*MockSchemaReaderMockRecorder) ListAllTypeDefinitions

func (mr *MockSchemaReaderMockRecorder) ListAllTypeDefinitions(ctx any) *gomock.Call

ListAllTypeDefinitions indicates an expected call of ListAllTypeDefinitions.

func (*MockSchemaReaderMockRecorder) LookupCaveatDefByName

func (mr *MockSchemaReaderMockRecorder) LookupCaveatDefByName(ctx, name any) *gomock.Call

LookupCaveatDefByName indicates an expected call of LookupCaveatDefByName.

func (*MockSchemaReaderMockRecorder) LookupCaveatDefinitionsByNames

func (mr *MockSchemaReaderMockRecorder) LookupCaveatDefinitionsByNames(ctx, names any) *gomock.Call

LookupCaveatDefinitionsByNames indicates an expected call of LookupCaveatDefinitionsByNames.

func (*MockSchemaReaderMockRecorder) LookupSchemaDefinitionsByNames

func (mr *MockSchemaReaderMockRecorder) LookupSchemaDefinitionsByNames(ctx, names any) *gomock.Call

LookupSchemaDefinitionsByNames indicates an expected call of LookupSchemaDefinitionsByNames.

func (*MockSchemaReaderMockRecorder) LookupTypeDefByName

func (mr *MockSchemaReaderMockRecorder) LookupTypeDefByName(ctx, name any) *gomock.Call

LookupTypeDefByName indicates an expected call of LookupTypeDefByName.

func (*MockSchemaReaderMockRecorder) LookupTypeDefinitionsByNames

func (mr *MockSchemaReaderMockRecorder) LookupTypeDefinitionsByNames(ctx, names any) *gomock.Call

LookupTypeDefinitionsByNames indicates an expected call of LookupTypeDefinitionsByNames.

func (*MockSchemaReaderMockRecorder) SchemaText

func (mr *MockSchemaReaderMockRecorder) SchemaText(ctx any) *gomock.Call

SchemaText indicates an expected call of SchemaText.

Jump to

Keyboard shortcuts

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