Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockBulkWriteRelationshipSource
- type MockBulkWriteRelationshipSourceMockRecorder
- type MockDatastore
- func (m *MockDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
- func (m *MockDatastore) Close() error
- func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
- func (m *MockDatastore) Features(ctx context.Context) (*datastore.Features, error)
- func (m *MockDatastore) HeadRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockDatastore) MetricsID() (string, error)
- func (m *MockDatastore) OfflineFeatures() (*datastore.Features, error)
- func (m *MockDatastore) OptimizedRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, ...) (datastore.Revision, error)
- func (m *MockDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
- func (m *MockDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
- func (m *MockDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
- func (m *MockDatastore) Statistics(ctx context.Context) (datastore.Stats, error)
- func (m *MockDatastore) UniqueID(arg0 context.Context) (string, error)
- func (m *MockDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, ...) (<-chan datastore.RevisionChanges, <-chan error)
- type MockDatastoreMockRecorder
- func (mr *MockDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) Close() *gomock.Call
- func (mr *MockDatastoreMockRecorder) Features(ctx any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) MetricsID() *gomock.Call
- func (mr *MockDatastoreMockRecorder) OfflineFeatures() *gomock.Call
- func (mr *MockDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call
- func (mr *MockDatastoreMockRecorder) Watch(ctx, afterRevision, arg2 any) *gomock.Call
- type MockExplainable
- func (m *MockExplainable) BuildExplainQuery(sql string, args []any) (string, []any, error)
- func (m *MockExplainable) EXPECT() *MockExplainableMockRecorder
- func (m *MockExplainable) ParseExplain(explain string) (datastore.ParsedExplain, error)
- func (m *MockExplainable) PreExplainStatements() []string
- type MockExplainableMockRecorder
- type MockReadOnlyDatastore
- func (m *MockReadOnlyDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
- func (m *MockReadOnlyDatastore) Close() error
- func (m *MockReadOnlyDatastore) EXPECT() *MockReadOnlyDatastoreMockRecorder
- func (m *MockReadOnlyDatastore) Features(ctx context.Context) (*datastore.Features, error)
- func (m *MockReadOnlyDatastore) HeadRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockReadOnlyDatastore) MetricsID() (string, error)
- func (m *MockReadOnlyDatastore) OfflineFeatures() (*datastore.Features, error)
- func (m *MockReadOnlyDatastore) OptimizedRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockReadOnlyDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
- func (m *MockReadOnlyDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
- func (m *MockReadOnlyDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
- func (m *MockReadOnlyDatastore) Statistics(ctx context.Context) (datastore.Stats, error)
- func (m *MockReadOnlyDatastore) UniqueID(arg0 context.Context) (string, error)
- func (m *MockReadOnlyDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, ...) (<-chan datastore.RevisionChanges, <-chan error)
- type MockReadOnlyDatastoreMockRecorder
- func (mr *MockReadOnlyDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) Close() *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) Features(ctx any) *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) MetricsID() *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) OfflineFeatures() *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call
- func (mr *MockReadOnlyDatastoreMockRecorder) Watch(ctx, afterRevision, arg2 any) *gomock.Call
- type MockReadWriteTransaction
- func (m *MockReadWriteTransaction) BulkLoad(ctx context.Context, iter datastore.BulkWriteRelationshipSource) (uint64, error)
- func (m *MockReadWriteTransaction) CountRelationships(ctx context.Context, name string) (int, error)
- func (m *MockReadWriteTransaction) DeleteCaveats(ctx context.Context, names []string) error
- func (m *MockReadWriteTransaction) DeleteNamespaces(ctx context.Context, nsNames []string, ...) error
- func (m *MockReadWriteTransaction) DeleteRelationships(ctx context.Context, filter *v1.RelationshipFilter, ...) (uint64, bool, error)
- func (m *MockReadWriteTransaction) EXPECT() *MockReadWriteTransactionMockRecorder
- func (m *MockReadWriteTransaction) ListAllCaveats(ctx context.Context) ([]datastore.RevisionedCaveat, error)
- func (m *MockReadWriteTransaction) ListAllNamespaces(ctx context.Context) ([]datastore.RevisionedNamespace, error)
- func (m *MockReadWriteTransaction) LookupCaveatsWithNames(ctx context.Context, names []string) ([]datastore.RevisionedCaveat, error)
- func (m *MockReadWriteTransaction) LookupCounters(ctx context.Context) ([]datastore.RelationshipCounter, error)
- func (m *MockReadWriteTransaction) LookupNamespacesWithNames(ctx context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)
- func (m *MockReadWriteTransaction) QueryRelationships(ctx context.Context, filter datastore.RelationshipsFilter, ...) (datastore.RelationshipIterator, error)
- func (m *MockReadWriteTransaction) ReadCaveatByName(ctx context.Context, name string) (*corev1.CaveatDefinition, datastore.Revision, error)
- func (m *MockReadWriteTransaction) ReadNamespaceByName(ctx context.Context, nsName string) (*corev1.NamespaceDefinition, datastore.Revision, error)
- func (m *MockReadWriteTransaction) RegisterCounter(ctx context.Context, name string, filter *corev1.RelationshipFilter) error
- func (m *MockReadWriteTransaction) ReverseQueryRelationships(ctx context.Context, subjectsFilter datastore.SubjectsFilter, ...) (datastore.RelationshipIterator, error)
- func (m *MockReadWriteTransaction) StoreCounterValue(ctx context.Context, name string, value int, ...) error
- func (m *MockReadWriteTransaction) UnregisterCounter(ctx context.Context, name string) error
- func (m *MockReadWriteTransaction) WriteCaveats(arg0 context.Context, arg1 []*corev1.CaveatDefinition) error
- func (m *MockReadWriteTransaction) WriteNamespaces(ctx context.Context, newConfigs ...*corev1.NamespaceDefinition) error
- func (m *MockReadWriteTransaction) WriteRelationships(ctx context.Context, mutations []tuple.RelationshipUpdate) error
- type MockReadWriteTransactionMockRecorder
- func (mr *MockReadWriteTransactionMockRecorder) BulkLoad(ctx, iter any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) CountRelationships(ctx, name any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) DeleteCaveats(ctx, names any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) DeleteNamespaces(ctx, nsNames, delOption any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) DeleteRelationships(ctx, filter any, arg2 ...any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) ListAllCaveats(ctx any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) ListAllNamespaces(ctx any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) LookupCaveatsWithNames(ctx, names any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) LookupCounters(ctx any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) LookupNamespacesWithNames(ctx, nsNames any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) QueryRelationships(ctx, filter any, arg2 ...any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) ReadCaveatByName(ctx, name any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) ReadNamespaceByName(ctx, nsName any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) RegisterCounter(ctx, name, filter any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) ReverseQueryRelationships(ctx, subjectsFilter any, arg2 ...any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) StoreCounterValue(ctx, name, value, computedAtRevision any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) UnregisterCounter(ctx, name any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) WriteCaveats(arg0, arg1 any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) WriteNamespaces(ctx any, newConfigs ...any) *gomock.Call
- func (mr *MockReadWriteTransactionMockRecorder) WriteRelationships(ctx, mutations any) *gomock.Call
- type MockReader
- func (m *MockReader) CountRelationships(ctx context.Context, name string) (int, error)
- func (m *MockReader) EXPECT() *MockReaderMockRecorder
- func (m *MockReader) ListAllCaveats(ctx context.Context) ([]datastore.RevisionedCaveat, error)
- func (m *MockReader) ListAllNamespaces(ctx context.Context) ([]datastore.RevisionedNamespace, error)
- func (m *MockReader) LookupCaveatsWithNames(ctx context.Context, names []string) ([]datastore.RevisionedCaveat, error)
- func (m *MockReader) LookupCounters(ctx context.Context) ([]datastore.RelationshipCounter, error)
- func (m *MockReader) LookupNamespacesWithNames(ctx context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)
- func (m *MockReader) QueryRelationships(ctx context.Context, filter datastore.RelationshipsFilter, ...) (datastore.RelationshipIterator, error)
- func (m *MockReader) ReadCaveatByName(ctx context.Context, name string) (*corev1.CaveatDefinition, datastore.Revision, error)
- func (m *MockReader) ReadNamespaceByName(ctx context.Context, nsName string) (*corev1.NamespaceDefinition, datastore.Revision, error)
- func (m *MockReader) ReverseQueryRelationships(ctx context.Context, subjectsFilter datastore.SubjectsFilter, ...) (datastore.RelationshipIterator, error)
- type MockReaderMockRecorder
- func (mr *MockReaderMockRecorder) CountRelationships(ctx, name any) *gomock.Call
- func (mr *MockReaderMockRecorder) ListAllCaveats(ctx any) *gomock.Call
- func (mr *MockReaderMockRecorder) ListAllNamespaces(ctx any) *gomock.Call
- func (mr *MockReaderMockRecorder) LookupCaveatsWithNames(ctx, names any) *gomock.Call
- func (mr *MockReaderMockRecorder) LookupCounters(ctx any) *gomock.Call
- func (mr *MockReaderMockRecorder) LookupNamespacesWithNames(ctx, nsNames any) *gomock.Call
- func (mr *MockReaderMockRecorder) QueryRelationships(ctx, filter any, arg2 ...any) *gomock.Call
- func (mr *MockReaderMockRecorder) ReadCaveatByName(ctx, name any) *gomock.Call
- func (mr *MockReaderMockRecorder) ReadNamespaceByName(ctx, nsName any) *gomock.Call
- func (mr *MockReaderMockRecorder) ReverseQueryRelationships(ctx, subjectsFilter any, arg2 ...any) *gomock.Call
- type MockRepairableDatastore
- func (m *MockRepairableDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
- func (m *MockRepairableDatastore) Close() error
- func (m *MockRepairableDatastore) EXPECT() *MockRepairableDatastoreMockRecorder
- func (m *MockRepairableDatastore) Features(ctx context.Context) (*datastore.Features, error)
- func (m *MockRepairableDatastore) HeadRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockRepairableDatastore) MetricsID() (string, error)
- func (m *MockRepairableDatastore) OfflineFeatures() (*datastore.Features, error)
- func (m *MockRepairableDatastore) OptimizedRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockRepairableDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, ...) (datastore.Revision, error)
- func (m *MockRepairableDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
- func (m *MockRepairableDatastore) Repair(ctx context.Context, operationName string, outputProgress bool) error
- func (m *MockRepairableDatastore) RepairOperations() []datastore.RepairOperation
- func (m *MockRepairableDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
- func (m *MockRepairableDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
- func (m *MockRepairableDatastore) Statistics(ctx context.Context) (datastore.Stats, error)
- func (m *MockRepairableDatastore) UniqueID(arg0 context.Context) (string, error)
- func (m *MockRepairableDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, ...) (<-chan datastore.RevisionChanges, <-chan error)
- type MockRepairableDatastoreMockRecorder
- func (mr *MockRepairableDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) Close() *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) Features(ctx any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) MetricsID() *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) OfflineFeatures() *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) Repair(ctx, operationName, outputProgress any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) RepairOperations() *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call
- func (mr *MockRepairableDatastoreMockRecorder) Watch(ctx, afterRevision, arg2 any) *gomock.Call
- type MockRevision
- func (m *MockRevision) ByteSortable() bool
- func (m *MockRevision) EXPECT() *MockRevisionMockRecorder
- func (m *MockRevision) Equal(arg0 datastore.Revision) bool
- func (m *MockRevision) GreaterThan(arg0 datastore.Revision) bool
- func (m *MockRevision) LessThan(arg0 datastore.Revision) bool
- func (m *MockRevision) String() string
- type MockRevisionMockRecorder
- func (mr *MockRevisionMockRecorder) ByteSortable() *gomock.Call
- func (mr *MockRevisionMockRecorder) Equal(arg0 any) *gomock.Call
- func (mr *MockRevisionMockRecorder) GreaterThan(arg0 any) *gomock.Call
- func (mr *MockRevisionMockRecorder) LessThan(arg0 any) *gomock.Call
- func (mr *MockRevisionMockRecorder) String() *gomock.Call
- type MockSQLDatastore
- func (m *MockSQLDatastore) BuildExplainQuery(sql string, args []any) (string, []any, error)
- func (m *MockSQLDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
- func (m *MockSQLDatastore) Close() error
- func (m *MockSQLDatastore) EXPECT() *MockSQLDatastoreMockRecorder
- func (m *MockSQLDatastore) Features(ctx context.Context) (*datastore.Features, error)
- func (m *MockSQLDatastore) HeadRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockSQLDatastore) MetricsID() (string, error)
- func (m *MockSQLDatastore) OfflineFeatures() (*datastore.Features, error)
- func (m *MockSQLDatastore) OptimizedRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockSQLDatastore) ParseExplain(explain string) (datastore.ParsedExplain, error)
- func (m *MockSQLDatastore) PreExplainStatements() []string
- func (m *MockSQLDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, ...) (datastore.Revision, error)
- func (m *MockSQLDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
- func (m *MockSQLDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
- func (m *MockSQLDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
- func (m *MockSQLDatastore) Statistics(ctx context.Context) (datastore.Stats, error)
- func (m *MockSQLDatastore) UniqueID(arg0 context.Context) (string, error)
- func (m *MockSQLDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, ...) (<-chan datastore.RevisionChanges, <-chan error)
- type MockSQLDatastoreMockRecorder
- func (mr *MockSQLDatastoreMockRecorder) BuildExplainQuery(sql, args any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) Close() *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) Features(ctx any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) MetricsID() *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) OfflineFeatures() *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) ParseExplain(explain any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) PreExplainStatements() *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call
- func (mr *MockSQLDatastoreMockRecorder) Watch(ctx, afterRevision, arg2 any) *gomock.Call
- type MockSchemaDefinition
- type MockSchemaDefinitionMockRecorder
- type MockStartableDatastore
- func (m *MockStartableDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
- func (m *MockStartableDatastore) Close() error
- func (m *MockStartableDatastore) EXPECT() *MockStartableDatastoreMockRecorder
- func (m *MockStartableDatastore) Features(ctx context.Context) (*datastore.Features, error)
- func (m *MockStartableDatastore) HeadRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockStartableDatastore) MetricsID() (string, error)
- func (m *MockStartableDatastore) OfflineFeatures() (*datastore.Features, error)
- func (m *MockStartableDatastore) OptimizedRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockStartableDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, ...) (datastore.Revision, error)
- func (m *MockStartableDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
- func (m *MockStartableDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
- func (m *MockStartableDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
- func (m *MockStartableDatastore) Start(ctx context.Context) error
- func (m *MockStartableDatastore) Statistics(ctx context.Context) (datastore.Stats, error)
- func (m *MockStartableDatastore) UniqueID(arg0 context.Context) (string, error)
- func (m *MockStartableDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, ...) (<-chan datastore.RevisionChanges, <-chan error)
- type MockStartableDatastoreMockRecorder
- func (mr *MockStartableDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) Close() *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) Features(ctx any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) MetricsID() *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) OfflineFeatures() *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call
- func (mr *MockStartableDatastoreMockRecorder) Watch(ctx, afterRevision, arg2 any) *gomock.Call
- type MockStrictReadDatastore
- func (m *MockStrictReadDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
- func (m *MockStrictReadDatastore) Close() error
- func (m *MockStrictReadDatastore) EXPECT() *MockStrictReadDatastoreMockRecorder
- func (m *MockStrictReadDatastore) Features(ctx context.Context) (*datastore.Features, error)
- func (m *MockStrictReadDatastore) HeadRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockStrictReadDatastore) IsStrictReadModeEnabled() bool
- func (m *MockStrictReadDatastore) MetricsID() (string, error)
- func (m *MockStrictReadDatastore) OfflineFeatures() (*datastore.Features, error)
- func (m *MockStrictReadDatastore) OptimizedRevision(ctx context.Context) (datastore.Revision, error)
- func (m *MockStrictReadDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, ...) (datastore.Revision, error)
- func (m *MockStrictReadDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
- func (m *MockStrictReadDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
- func (m *MockStrictReadDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
- func (m *MockStrictReadDatastore) Statistics(ctx context.Context) (datastore.Stats, error)
- func (m *MockStrictReadDatastore) UniqueID(arg0 context.Context) (string, error)
- func (m *MockStrictReadDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, ...) (<-chan datastore.RevisionChanges, <-chan error)
- type MockStrictReadDatastoreMockRecorder
- func (mr *MockStrictReadDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) Close() *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) Features(ctx any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) IsStrictReadModeEnabled() *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) MetricsID() *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) OfflineFeatures() *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call
- func (mr *MockStrictReadDatastoreMockRecorder) Watch(ctx, afterRevision, arg2 any) *gomock.Call
- type MockUnwrappableDatastore
- type MockUnwrappableDatastoreMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBulkWriteRelationshipSource ¶
type MockBulkWriteRelationshipSource struct {
// contains filtered or unexported fields
}
MockBulkWriteRelationshipSource is a mock of BulkWriteRelationshipSource interface.
func NewMockBulkWriteRelationshipSource ¶
func NewMockBulkWriteRelationshipSource(ctrl *gomock.Controller) *MockBulkWriteRelationshipSource
NewMockBulkWriteRelationshipSource creates a new mock instance.
func (*MockBulkWriteRelationshipSource) EXPECT ¶
func (m *MockBulkWriteRelationshipSource) EXPECT() *MockBulkWriteRelationshipSourceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBulkWriteRelationshipSource) Next ¶
func (m *MockBulkWriteRelationshipSource) Next(ctx context.Context) (*tuple.Relationship, error)
Next mocks base method.
type MockBulkWriteRelationshipSourceMockRecorder ¶
type MockBulkWriteRelationshipSourceMockRecorder struct {
// contains filtered or unexported fields
}
MockBulkWriteRelationshipSourceMockRecorder is the mock recorder for MockBulkWriteRelationshipSource.
type MockDatastore ¶
type MockDatastore struct {
// contains filtered or unexported fields
}
MockDatastore is a mock of Datastore interface.
func NewMockDatastore ¶
func NewMockDatastore(ctrl *gomock.Controller) *MockDatastore
NewMockDatastore creates a new mock instance.
func (*MockDatastore) CheckRevision ¶
CheckRevision mocks base method.
func (*MockDatastore) EXPECT ¶
func (m *MockDatastore) EXPECT() *MockDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDatastore) HeadRevision ¶
HeadRevision mocks base method.
func (*MockDatastore) MetricsID ¶
func (m *MockDatastore) MetricsID() (string, error)
MetricsID mocks base method.
func (*MockDatastore) OfflineFeatures ¶
func (m *MockDatastore) OfflineFeatures() (*datastore.Features, error)
OfflineFeatures mocks base method.
func (*MockDatastore) OptimizedRevision ¶
OptimizedRevision mocks base method.
func (*MockDatastore) ReadWriteTx ¶
func (m *MockDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, arg2 ...options.RWTOptionsOption) (datastore.Revision, error)
ReadWriteTx mocks base method.
func (*MockDatastore) ReadyState ¶
func (m *MockDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
ReadyState mocks base method.
func (*MockDatastore) RevisionFromString ¶
func (m *MockDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
RevisionFromString mocks base method.
func (*MockDatastore) SnapshotReader ¶
func (m *MockDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
SnapshotReader mocks base method.
func (*MockDatastore) Statistics ¶
Statistics mocks base method.
func (*MockDatastore) UniqueID ¶
func (m *MockDatastore) UniqueID(arg0 context.Context) (string, error)
UniqueID mocks base method.
func (*MockDatastore) Watch ¶
func (m *MockDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, arg2 datastore.WatchOptions) (<-chan datastore.RevisionChanges, <-chan error)
Watch mocks base method.
type MockDatastoreMockRecorder ¶
type MockDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockDatastoreMockRecorder is the mock recorder for MockDatastore.
func (*MockDatastoreMockRecorder) CheckRevision ¶
func (mr *MockDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
CheckRevision indicates an expected call of CheckRevision.
func (*MockDatastoreMockRecorder) Close ¶
func (mr *MockDatastoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDatastoreMockRecorder) Features ¶
func (mr *MockDatastoreMockRecorder) Features(ctx any) *gomock.Call
Features indicates an expected call of Features.
func (*MockDatastoreMockRecorder) HeadRevision ¶
func (mr *MockDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
HeadRevision indicates an expected call of HeadRevision.
func (*MockDatastoreMockRecorder) MetricsID ¶
func (mr *MockDatastoreMockRecorder) MetricsID() *gomock.Call
MetricsID indicates an expected call of MetricsID.
func (*MockDatastoreMockRecorder) OfflineFeatures ¶
func (mr *MockDatastoreMockRecorder) OfflineFeatures() *gomock.Call
OfflineFeatures indicates an expected call of OfflineFeatures.
func (*MockDatastoreMockRecorder) OptimizedRevision ¶
func (mr *MockDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
OptimizedRevision indicates an expected call of OptimizedRevision.
func (*MockDatastoreMockRecorder) ReadWriteTx ¶
func (mr *MockDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
ReadWriteTx indicates an expected call of ReadWriteTx.
func (*MockDatastoreMockRecorder) ReadyState ¶
func (mr *MockDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
ReadyState indicates an expected call of ReadyState.
func (*MockDatastoreMockRecorder) RevisionFromString ¶
func (mr *MockDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
RevisionFromString indicates an expected call of RevisionFromString.
func (*MockDatastoreMockRecorder) SnapshotReader ¶
func (mr *MockDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
SnapshotReader indicates an expected call of SnapshotReader.
func (*MockDatastoreMockRecorder) Statistics ¶
func (mr *MockDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
Statistics indicates an expected call of Statistics.
type MockExplainable ¶
type MockExplainable struct {
// contains filtered or unexported fields
}
MockExplainable is a mock of Explainable interface.
func NewMockExplainable ¶
func NewMockExplainable(ctrl *gomock.Controller) *MockExplainable
NewMockExplainable creates a new mock instance.
func (*MockExplainable) BuildExplainQuery ¶
BuildExplainQuery mocks base method.
func (*MockExplainable) EXPECT ¶
func (m *MockExplainable) EXPECT() *MockExplainableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExplainable) ParseExplain ¶
func (m *MockExplainable) ParseExplain(explain string) (datastore.ParsedExplain, error)
ParseExplain mocks base method.
func (*MockExplainable) PreExplainStatements ¶
func (m *MockExplainable) PreExplainStatements() []string
PreExplainStatements mocks base method.
type MockExplainableMockRecorder ¶
type MockExplainableMockRecorder struct {
// contains filtered or unexported fields
}
MockExplainableMockRecorder is the mock recorder for MockExplainable.
func (*MockExplainableMockRecorder) BuildExplainQuery ¶
func (mr *MockExplainableMockRecorder) BuildExplainQuery(sql, args any) *gomock.Call
BuildExplainQuery indicates an expected call of BuildExplainQuery.
func (*MockExplainableMockRecorder) ParseExplain ¶
func (mr *MockExplainableMockRecorder) ParseExplain(explain any) *gomock.Call
ParseExplain indicates an expected call of ParseExplain.
func (*MockExplainableMockRecorder) PreExplainStatements ¶
func (mr *MockExplainableMockRecorder) PreExplainStatements() *gomock.Call
PreExplainStatements indicates an expected call of PreExplainStatements.
type MockReadOnlyDatastore ¶
type MockReadOnlyDatastore struct {
// contains filtered or unexported fields
}
MockReadOnlyDatastore is a mock of ReadOnlyDatastore interface.
func NewMockReadOnlyDatastore ¶
func NewMockReadOnlyDatastore(ctrl *gomock.Controller) *MockReadOnlyDatastore
NewMockReadOnlyDatastore creates a new mock instance.
func (*MockReadOnlyDatastore) CheckRevision ¶
func (m *MockReadOnlyDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
CheckRevision mocks base method.
func (*MockReadOnlyDatastore) Close ¶
func (m *MockReadOnlyDatastore) Close() error
Close mocks base method.
func (*MockReadOnlyDatastore) EXPECT ¶
func (m *MockReadOnlyDatastore) EXPECT() *MockReadOnlyDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReadOnlyDatastore) HeadRevision ¶
HeadRevision mocks base method.
func (*MockReadOnlyDatastore) MetricsID ¶
func (m *MockReadOnlyDatastore) MetricsID() (string, error)
MetricsID mocks base method.
func (*MockReadOnlyDatastore) OfflineFeatures ¶
func (m *MockReadOnlyDatastore) OfflineFeatures() (*datastore.Features, error)
OfflineFeatures mocks base method.
func (*MockReadOnlyDatastore) OptimizedRevision ¶
OptimizedRevision mocks base method.
func (*MockReadOnlyDatastore) ReadyState ¶
func (m *MockReadOnlyDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
ReadyState mocks base method.
func (*MockReadOnlyDatastore) RevisionFromString ¶
func (m *MockReadOnlyDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
RevisionFromString mocks base method.
func (*MockReadOnlyDatastore) SnapshotReader ¶
func (m *MockReadOnlyDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
SnapshotReader mocks base method.
func (*MockReadOnlyDatastore) Statistics ¶
Statistics mocks base method.
func (*MockReadOnlyDatastore) UniqueID ¶
func (m *MockReadOnlyDatastore) UniqueID(arg0 context.Context) (string, error)
UniqueID mocks base method.
func (*MockReadOnlyDatastore) Watch ¶
func (m *MockReadOnlyDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, arg2 datastore.WatchOptions) (<-chan datastore.RevisionChanges, <-chan error)
Watch mocks base method.
type MockReadOnlyDatastoreMockRecorder ¶
type MockReadOnlyDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockReadOnlyDatastoreMockRecorder is the mock recorder for MockReadOnlyDatastore.
func (*MockReadOnlyDatastoreMockRecorder) CheckRevision ¶
func (mr *MockReadOnlyDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
CheckRevision indicates an expected call of CheckRevision.
func (*MockReadOnlyDatastoreMockRecorder) Close ¶
func (mr *MockReadOnlyDatastoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockReadOnlyDatastoreMockRecorder) Features ¶
func (mr *MockReadOnlyDatastoreMockRecorder) Features(ctx any) *gomock.Call
Features indicates an expected call of Features.
func (*MockReadOnlyDatastoreMockRecorder) HeadRevision ¶
func (mr *MockReadOnlyDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
HeadRevision indicates an expected call of HeadRevision.
func (*MockReadOnlyDatastoreMockRecorder) MetricsID ¶
func (mr *MockReadOnlyDatastoreMockRecorder) MetricsID() *gomock.Call
MetricsID indicates an expected call of MetricsID.
func (*MockReadOnlyDatastoreMockRecorder) OfflineFeatures ¶
func (mr *MockReadOnlyDatastoreMockRecorder) OfflineFeatures() *gomock.Call
OfflineFeatures indicates an expected call of OfflineFeatures.
func (*MockReadOnlyDatastoreMockRecorder) OptimizedRevision ¶
func (mr *MockReadOnlyDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
OptimizedRevision indicates an expected call of OptimizedRevision.
func (*MockReadOnlyDatastoreMockRecorder) ReadyState ¶
func (mr *MockReadOnlyDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
ReadyState indicates an expected call of ReadyState.
func (*MockReadOnlyDatastoreMockRecorder) RevisionFromString ¶
func (mr *MockReadOnlyDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
RevisionFromString indicates an expected call of RevisionFromString.
func (*MockReadOnlyDatastoreMockRecorder) SnapshotReader ¶
func (mr *MockReadOnlyDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
SnapshotReader indicates an expected call of SnapshotReader.
func (*MockReadOnlyDatastoreMockRecorder) Statistics ¶
func (mr *MockReadOnlyDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
Statistics indicates an expected call of Statistics.
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 ¶
func (m *MockReadWriteTransaction) BulkLoad(ctx context.Context, iter datastore.BulkWriteRelationshipSource) (uint64, error)
BulkLoad mocks base method.
func (*MockReadWriteTransaction) CountRelationships ¶
func (m *MockReadWriteTransaction) CountRelationships(ctx context.Context, name string) (int, error)
CountRelationships mocks base method.
func (*MockReadWriteTransaction) DeleteCaveats ¶
func (m *MockReadWriteTransaction) DeleteCaveats(ctx context.Context, names []string) error
DeleteCaveats mocks base method.
func (*MockReadWriteTransaction) DeleteNamespaces ¶
func (m *MockReadWriteTransaction) DeleteNamespaces(ctx context.Context, nsNames []string, delOption datastore.DeleteNamespacesRelationshipsOption) error
DeleteNamespaces 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 ¶
func (m *MockReadWriteTransaction) EXPECT() *MockReadWriteTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReadWriteTransaction) ListAllCaveats ¶
func (m *MockReadWriteTransaction) ListAllCaveats(ctx context.Context) ([]datastore.RevisionedCaveat, error)
ListAllCaveats mocks base method.
func (*MockReadWriteTransaction) ListAllNamespaces ¶
func (m *MockReadWriteTransaction) ListAllNamespaces(ctx context.Context) ([]datastore.RevisionedNamespace, error)
ListAllNamespaces mocks base method.
func (*MockReadWriteTransaction) LookupCaveatsWithNames ¶
func (m *MockReadWriteTransaction) LookupCaveatsWithNames(ctx context.Context, names []string) ([]datastore.RevisionedCaveat, error)
LookupCaveatsWithNames mocks base method.
func (*MockReadWriteTransaction) LookupCounters ¶
func (m *MockReadWriteTransaction) LookupCounters(ctx context.Context) ([]datastore.RelationshipCounter, error)
LookupCounters mocks base method.
func (*MockReadWriteTransaction) LookupNamespacesWithNames ¶
func (m *MockReadWriteTransaction) LookupNamespacesWithNames(ctx context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)
LookupNamespacesWithNames mocks base method.
func (*MockReadWriteTransaction) QueryRelationships ¶
func (m *MockReadWriteTransaction) QueryRelationships(ctx context.Context, filter datastore.RelationshipsFilter, arg2 ...options.QueryOptionsOption) (datastore.RelationshipIterator, error)
QueryRelationships mocks base method.
func (*MockReadWriteTransaction) ReadCaveatByName ¶
func (m *MockReadWriteTransaction) ReadCaveatByName(ctx context.Context, name string) (*corev1.CaveatDefinition, datastore.Revision, error)
ReadCaveatByName mocks base method.
func (*MockReadWriteTransaction) ReadNamespaceByName ¶
func (m *MockReadWriteTransaction) ReadNamespaceByName(ctx context.Context, nsName string) (*corev1.NamespaceDefinition, datastore.Revision, error)
ReadNamespaceByName 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 ¶
func (m *MockReadWriteTransaction) ReverseQueryRelationships(ctx context.Context, subjectsFilter datastore.SubjectsFilter, arg2 ...options.ReverseQueryOptionsOption) (datastore.RelationshipIterator, error)
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) WriteCaveats ¶
func (m *MockReadWriteTransaction) WriteCaveats(arg0 context.Context, arg1 []*corev1.CaveatDefinition) error
WriteCaveats mocks base method.
func (*MockReadWriteTransaction) WriteNamespaces ¶
func (m *MockReadWriteTransaction) WriteNamespaces(ctx context.Context, newConfigs ...*corev1.NamespaceDefinition) error
WriteNamespaces mocks base method.
func (*MockReadWriteTransaction) WriteRelationships ¶
func (m *MockReadWriteTransaction) WriteRelationships(ctx context.Context, mutations []tuple.RelationshipUpdate) error
WriteRelationships 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) DeleteCaveats ¶
func (mr *MockReadWriteTransactionMockRecorder) DeleteCaveats(ctx, names any) *gomock.Call
DeleteCaveats indicates an expected call of DeleteCaveats.
func (*MockReadWriteTransactionMockRecorder) DeleteNamespaces ¶
func (mr *MockReadWriteTransactionMockRecorder) DeleteNamespaces(ctx, nsNames, delOption any) *gomock.Call
DeleteNamespaces indicates an expected call of DeleteNamespaces.
func (*MockReadWriteTransactionMockRecorder) DeleteRelationships ¶
func (mr *MockReadWriteTransactionMockRecorder) DeleteRelationships(ctx, filter any, arg2 ...any) *gomock.Call
DeleteRelationships indicates an expected call of DeleteRelationships.
func (*MockReadWriteTransactionMockRecorder) ListAllCaveats ¶
func (mr *MockReadWriteTransactionMockRecorder) ListAllCaveats(ctx any) *gomock.Call
ListAllCaveats indicates an expected call of ListAllCaveats.
func (*MockReadWriteTransactionMockRecorder) ListAllNamespaces ¶
func (mr *MockReadWriteTransactionMockRecorder) ListAllNamespaces(ctx any) *gomock.Call
ListAllNamespaces indicates an expected call of ListAllNamespaces.
func (*MockReadWriteTransactionMockRecorder) LookupCaveatsWithNames ¶
func (mr *MockReadWriteTransactionMockRecorder) LookupCaveatsWithNames(ctx, names any) *gomock.Call
LookupCaveatsWithNames indicates an expected call of LookupCaveatsWithNames.
func (*MockReadWriteTransactionMockRecorder) LookupCounters ¶
func (mr *MockReadWriteTransactionMockRecorder) LookupCounters(ctx any) *gomock.Call
LookupCounters indicates an expected call of LookupCounters.
func (*MockReadWriteTransactionMockRecorder) LookupNamespacesWithNames ¶
func (mr *MockReadWriteTransactionMockRecorder) LookupNamespacesWithNames(ctx, nsNames any) *gomock.Call
LookupNamespacesWithNames indicates an expected call of LookupNamespacesWithNames.
func (*MockReadWriteTransactionMockRecorder) QueryRelationships ¶
func (mr *MockReadWriteTransactionMockRecorder) QueryRelationships(ctx, filter any, arg2 ...any) *gomock.Call
QueryRelationships indicates an expected call of QueryRelationships.
func (*MockReadWriteTransactionMockRecorder) ReadCaveatByName ¶
func (mr *MockReadWriteTransactionMockRecorder) ReadCaveatByName(ctx, name any) *gomock.Call
ReadCaveatByName indicates an expected call of ReadCaveatByName.
func (*MockReadWriteTransactionMockRecorder) ReadNamespaceByName ¶
func (mr *MockReadWriteTransactionMockRecorder) ReadNamespaceByName(ctx, nsName any) *gomock.Call
ReadNamespaceByName indicates an expected call of ReadNamespaceByName.
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) WriteCaveats ¶
func (mr *MockReadWriteTransactionMockRecorder) WriteCaveats(arg0, arg1 any) *gomock.Call
WriteCaveats indicates an expected call of WriteCaveats.
func (*MockReadWriteTransactionMockRecorder) WriteNamespaces ¶
func (mr *MockReadWriteTransactionMockRecorder) WriteNamespaces(ctx any, newConfigs ...any) *gomock.Call
WriteNamespaces indicates an expected call of WriteNamespaces.
func (*MockReadWriteTransactionMockRecorder) WriteRelationships ¶
func (mr *MockReadWriteTransactionMockRecorder) WriteRelationships(ctx, mutations any) *gomock.Call
WriteRelationships indicates an expected call of WriteRelationships.
type MockReader ¶
type MockReader struct {
// contains filtered or unexported fields
}
MockReader is a mock of Reader interface.
func NewMockReader ¶
func NewMockReader(ctrl *gomock.Controller) *MockReader
NewMockReader creates a new mock instance.
func (*MockReader) CountRelationships ¶
CountRelationships mocks base method.
func (*MockReader) EXPECT ¶
func (m *MockReader) EXPECT() *MockReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReader) ListAllCaveats ¶
func (m *MockReader) ListAllCaveats(ctx context.Context) ([]datastore.RevisionedCaveat, error)
ListAllCaveats mocks base method.
func (*MockReader) ListAllNamespaces ¶
func (m *MockReader) ListAllNamespaces(ctx context.Context) ([]datastore.RevisionedNamespace, error)
ListAllNamespaces mocks base method.
func (*MockReader) LookupCaveatsWithNames ¶
func (m *MockReader) LookupCaveatsWithNames(ctx context.Context, names []string) ([]datastore.RevisionedCaveat, error)
LookupCaveatsWithNames mocks base method.
func (*MockReader) LookupCounters ¶
func (m *MockReader) LookupCounters(ctx context.Context) ([]datastore.RelationshipCounter, error)
LookupCounters mocks base method.
func (*MockReader) LookupNamespacesWithNames ¶
func (m *MockReader) LookupNamespacesWithNames(ctx context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)
LookupNamespacesWithNames mocks base method.
func (*MockReader) QueryRelationships ¶
func (m *MockReader) QueryRelationships(ctx context.Context, filter datastore.RelationshipsFilter, arg2 ...options.QueryOptionsOption) (datastore.RelationshipIterator, error)
QueryRelationships mocks base method.
func (*MockReader) ReadCaveatByName ¶
func (m *MockReader) ReadCaveatByName(ctx context.Context, name string) (*corev1.CaveatDefinition, datastore.Revision, error)
ReadCaveatByName mocks base method.
func (*MockReader) ReadNamespaceByName ¶
func (m *MockReader) ReadNamespaceByName(ctx context.Context, nsName string) (*corev1.NamespaceDefinition, datastore.Revision, error)
ReadNamespaceByName mocks base method.
func (*MockReader) ReverseQueryRelationships ¶
func (m *MockReader) ReverseQueryRelationships(ctx context.Context, subjectsFilter datastore.SubjectsFilter, arg2 ...options.ReverseQueryOptionsOption) (datastore.RelationshipIterator, error)
ReverseQueryRelationships mocks base method.
type MockReaderMockRecorder ¶
type MockReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockReaderMockRecorder is the mock recorder for MockReader.
func (*MockReaderMockRecorder) CountRelationships ¶
func (mr *MockReaderMockRecorder) CountRelationships(ctx, name any) *gomock.Call
CountRelationships indicates an expected call of CountRelationships.
func (*MockReaderMockRecorder) ListAllCaveats ¶
func (mr *MockReaderMockRecorder) ListAllCaveats(ctx any) *gomock.Call
ListAllCaveats indicates an expected call of ListAllCaveats.
func (*MockReaderMockRecorder) ListAllNamespaces ¶
func (mr *MockReaderMockRecorder) ListAllNamespaces(ctx any) *gomock.Call
ListAllNamespaces indicates an expected call of ListAllNamespaces.
func (*MockReaderMockRecorder) LookupCaveatsWithNames ¶
func (mr *MockReaderMockRecorder) LookupCaveatsWithNames(ctx, names any) *gomock.Call
LookupCaveatsWithNames indicates an expected call of LookupCaveatsWithNames.
func (*MockReaderMockRecorder) LookupCounters ¶
func (mr *MockReaderMockRecorder) LookupCounters(ctx any) *gomock.Call
LookupCounters indicates an expected call of LookupCounters.
func (*MockReaderMockRecorder) LookupNamespacesWithNames ¶
func (mr *MockReaderMockRecorder) LookupNamespacesWithNames(ctx, nsNames any) *gomock.Call
LookupNamespacesWithNames indicates an expected call of LookupNamespacesWithNames.
func (*MockReaderMockRecorder) QueryRelationships ¶
func (mr *MockReaderMockRecorder) QueryRelationships(ctx, filter any, arg2 ...any) *gomock.Call
QueryRelationships indicates an expected call of QueryRelationships.
func (*MockReaderMockRecorder) ReadCaveatByName ¶
func (mr *MockReaderMockRecorder) ReadCaveatByName(ctx, name any) *gomock.Call
ReadCaveatByName indicates an expected call of ReadCaveatByName.
func (*MockReaderMockRecorder) ReadNamespaceByName ¶
func (mr *MockReaderMockRecorder) ReadNamespaceByName(ctx, nsName any) *gomock.Call
ReadNamespaceByName indicates an expected call of ReadNamespaceByName.
func (*MockReaderMockRecorder) ReverseQueryRelationships ¶
func (mr *MockReaderMockRecorder) ReverseQueryRelationships(ctx, subjectsFilter any, arg2 ...any) *gomock.Call
ReverseQueryRelationships indicates an expected call of ReverseQueryRelationships.
type MockRepairableDatastore ¶
type MockRepairableDatastore struct {
// contains filtered or unexported fields
}
MockRepairableDatastore is a mock of RepairableDatastore interface.
func NewMockRepairableDatastore ¶
func NewMockRepairableDatastore(ctrl *gomock.Controller) *MockRepairableDatastore
NewMockRepairableDatastore creates a new mock instance.
func (*MockRepairableDatastore) CheckRevision ¶
func (m *MockRepairableDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
CheckRevision mocks base method.
func (*MockRepairableDatastore) Close ¶
func (m *MockRepairableDatastore) Close() error
Close mocks base method.
func (*MockRepairableDatastore) EXPECT ¶
func (m *MockRepairableDatastore) EXPECT() *MockRepairableDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRepairableDatastore) HeadRevision ¶
HeadRevision mocks base method.
func (*MockRepairableDatastore) MetricsID ¶
func (m *MockRepairableDatastore) MetricsID() (string, error)
MetricsID mocks base method.
func (*MockRepairableDatastore) OfflineFeatures ¶
func (m *MockRepairableDatastore) OfflineFeatures() (*datastore.Features, error)
OfflineFeatures mocks base method.
func (*MockRepairableDatastore) OptimizedRevision ¶
func (m *MockRepairableDatastore) OptimizedRevision(ctx context.Context) (datastore.Revision, error)
OptimizedRevision mocks base method.
func (*MockRepairableDatastore) ReadWriteTx ¶
func (m *MockRepairableDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, arg2 ...options.RWTOptionsOption) (datastore.Revision, error)
ReadWriteTx mocks base method.
func (*MockRepairableDatastore) ReadyState ¶
func (m *MockRepairableDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
ReadyState mocks base method.
func (*MockRepairableDatastore) Repair ¶
func (m *MockRepairableDatastore) Repair(ctx context.Context, operationName string, outputProgress bool) error
Repair mocks base method.
func (*MockRepairableDatastore) RepairOperations ¶
func (m *MockRepairableDatastore) RepairOperations() []datastore.RepairOperation
RepairOperations mocks base method.
func (*MockRepairableDatastore) RevisionFromString ¶
func (m *MockRepairableDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
RevisionFromString mocks base method.
func (*MockRepairableDatastore) SnapshotReader ¶
func (m *MockRepairableDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
SnapshotReader mocks base method.
func (*MockRepairableDatastore) Statistics ¶
Statistics mocks base method.
func (*MockRepairableDatastore) UniqueID ¶
func (m *MockRepairableDatastore) UniqueID(arg0 context.Context) (string, error)
UniqueID mocks base method.
func (*MockRepairableDatastore) Watch ¶
func (m *MockRepairableDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, arg2 datastore.WatchOptions) (<-chan datastore.RevisionChanges, <-chan error)
Watch mocks base method.
type MockRepairableDatastoreMockRecorder ¶
type MockRepairableDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockRepairableDatastoreMockRecorder is the mock recorder for MockRepairableDatastore.
func (*MockRepairableDatastoreMockRecorder) CheckRevision ¶
func (mr *MockRepairableDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
CheckRevision indicates an expected call of CheckRevision.
func (*MockRepairableDatastoreMockRecorder) Close ¶
func (mr *MockRepairableDatastoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockRepairableDatastoreMockRecorder) Features ¶
func (mr *MockRepairableDatastoreMockRecorder) Features(ctx any) *gomock.Call
Features indicates an expected call of Features.
func (*MockRepairableDatastoreMockRecorder) HeadRevision ¶
func (mr *MockRepairableDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
HeadRevision indicates an expected call of HeadRevision.
func (*MockRepairableDatastoreMockRecorder) MetricsID ¶
func (mr *MockRepairableDatastoreMockRecorder) MetricsID() *gomock.Call
MetricsID indicates an expected call of MetricsID.
func (*MockRepairableDatastoreMockRecorder) OfflineFeatures ¶
func (mr *MockRepairableDatastoreMockRecorder) OfflineFeatures() *gomock.Call
OfflineFeatures indicates an expected call of OfflineFeatures.
func (*MockRepairableDatastoreMockRecorder) OptimizedRevision ¶
func (mr *MockRepairableDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
OptimizedRevision indicates an expected call of OptimizedRevision.
func (*MockRepairableDatastoreMockRecorder) ReadWriteTx ¶
func (mr *MockRepairableDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
ReadWriteTx indicates an expected call of ReadWriteTx.
func (*MockRepairableDatastoreMockRecorder) ReadyState ¶
func (mr *MockRepairableDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
ReadyState indicates an expected call of ReadyState.
func (*MockRepairableDatastoreMockRecorder) Repair ¶
func (mr *MockRepairableDatastoreMockRecorder) Repair(ctx, operationName, outputProgress any) *gomock.Call
Repair indicates an expected call of Repair.
func (*MockRepairableDatastoreMockRecorder) RepairOperations ¶
func (mr *MockRepairableDatastoreMockRecorder) RepairOperations() *gomock.Call
RepairOperations indicates an expected call of RepairOperations.
func (*MockRepairableDatastoreMockRecorder) RevisionFromString ¶
func (mr *MockRepairableDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
RevisionFromString indicates an expected call of RevisionFromString.
func (*MockRepairableDatastoreMockRecorder) SnapshotReader ¶
func (mr *MockRepairableDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
SnapshotReader indicates an expected call of SnapshotReader.
func (*MockRepairableDatastoreMockRecorder) Statistics ¶
func (mr *MockRepairableDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
Statistics indicates an expected call of Statistics.
type MockRevision ¶
type MockRevision struct {
// contains filtered or unexported fields
}
MockRevision is a mock of Revision interface.
func NewMockRevision ¶
func NewMockRevision(ctrl *gomock.Controller) *MockRevision
NewMockRevision creates a new mock instance.
func (*MockRevision) ByteSortable ¶
func (m *MockRevision) ByteSortable() bool
ByteSortable mocks base method.
func (*MockRevision) EXPECT ¶
func (m *MockRevision) EXPECT() *MockRevisionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRevision) Equal ¶
func (m *MockRevision) Equal(arg0 datastore.Revision) bool
Equal mocks base method.
func (*MockRevision) GreaterThan ¶
func (m *MockRevision) GreaterThan(arg0 datastore.Revision) bool
GreaterThan mocks base method.
type MockRevisionMockRecorder ¶
type MockRevisionMockRecorder struct {
// contains filtered or unexported fields
}
MockRevisionMockRecorder is the mock recorder for MockRevision.
func (*MockRevisionMockRecorder) ByteSortable ¶
func (mr *MockRevisionMockRecorder) ByteSortable() *gomock.Call
ByteSortable indicates an expected call of ByteSortable.
func (*MockRevisionMockRecorder) Equal ¶
func (mr *MockRevisionMockRecorder) Equal(arg0 any) *gomock.Call
Equal indicates an expected call of Equal.
func (*MockRevisionMockRecorder) GreaterThan ¶
func (mr *MockRevisionMockRecorder) GreaterThan(arg0 any) *gomock.Call
GreaterThan indicates an expected call of GreaterThan.
func (*MockRevisionMockRecorder) LessThan ¶
func (mr *MockRevisionMockRecorder) LessThan(arg0 any) *gomock.Call
LessThan indicates an expected call of LessThan.
func (*MockRevisionMockRecorder) String ¶
func (mr *MockRevisionMockRecorder) String() *gomock.Call
String indicates an expected call of String.
type MockSQLDatastore ¶
type MockSQLDatastore struct {
// contains filtered or unexported fields
}
MockSQLDatastore is a mock of SQLDatastore interface.
func NewMockSQLDatastore ¶
func NewMockSQLDatastore(ctrl *gomock.Controller) *MockSQLDatastore
NewMockSQLDatastore creates a new mock instance.
func (*MockSQLDatastore) BuildExplainQuery ¶
BuildExplainQuery mocks base method.
func (*MockSQLDatastore) CheckRevision ¶
CheckRevision mocks base method.
func (*MockSQLDatastore) EXPECT ¶
func (m *MockSQLDatastore) EXPECT() *MockSQLDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSQLDatastore) HeadRevision ¶
HeadRevision mocks base method.
func (*MockSQLDatastore) MetricsID ¶
func (m *MockSQLDatastore) MetricsID() (string, error)
MetricsID mocks base method.
func (*MockSQLDatastore) OfflineFeatures ¶
func (m *MockSQLDatastore) OfflineFeatures() (*datastore.Features, error)
OfflineFeatures mocks base method.
func (*MockSQLDatastore) OptimizedRevision ¶
OptimizedRevision mocks base method.
func (*MockSQLDatastore) ParseExplain ¶
func (m *MockSQLDatastore) ParseExplain(explain string) (datastore.ParsedExplain, error)
ParseExplain mocks base method.
func (*MockSQLDatastore) PreExplainStatements ¶
func (m *MockSQLDatastore) PreExplainStatements() []string
PreExplainStatements mocks base method.
func (*MockSQLDatastore) ReadWriteTx ¶
func (m *MockSQLDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, arg2 ...options.RWTOptionsOption) (datastore.Revision, error)
ReadWriteTx mocks base method.
func (*MockSQLDatastore) ReadyState ¶
func (m *MockSQLDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
ReadyState mocks base method.
func (*MockSQLDatastore) RevisionFromString ¶
func (m *MockSQLDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
RevisionFromString mocks base method.
func (*MockSQLDatastore) SnapshotReader ¶
func (m *MockSQLDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
SnapshotReader mocks base method.
func (*MockSQLDatastore) Statistics ¶
Statistics mocks base method.
func (*MockSQLDatastore) UniqueID ¶
func (m *MockSQLDatastore) UniqueID(arg0 context.Context) (string, error)
UniqueID mocks base method.
func (*MockSQLDatastore) Watch ¶
func (m *MockSQLDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, arg2 datastore.WatchOptions) (<-chan datastore.RevisionChanges, <-chan error)
Watch mocks base method.
type MockSQLDatastoreMockRecorder ¶
type MockSQLDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockSQLDatastoreMockRecorder is the mock recorder for MockSQLDatastore.
func (*MockSQLDatastoreMockRecorder) BuildExplainQuery ¶
func (mr *MockSQLDatastoreMockRecorder) BuildExplainQuery(sql, args any) *gomock.Call
BuildExplainQuery indicates an expected call of BuildExplainQuery.
func (*MockSQLDatastoreMockRecorder) CheckRevision ¶
func (mr *MockSQLDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
CheckRevision indicates an expected call of CheckRevision.
func (*MockSQLDatastoreMockRecorder) Close ¶
func (mr *MockSQLDatastoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockSQLDatastoreMockRecorder) Features ¶
func (mr *MockSQLDatastoreMockRecorder) Features(ctx any) *gomock.Call
Features indicates an expected call of Features.
func (*MockSQLDatastoreMockRecorder) HeadRevision ¶
func (mr *MockSQLDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
HeadRevision indicates an expected call of HeadRevision.
func (*MockSQLDatastoreMockRecorder) MetricsID ¶
func (mr *MockSQLDatastoreMockRecorder) MetricsID() *gomock.Call
MetricsID indicates an expected call of MetricsID.
func (*MockSQLDatastoreMockRecorder) OfflineFeatures ¶
func (mr *MockSQLDatastoreMockRecorder) OfflineFeatures() *gomock.Call
OfflineFeatures indicates an expected call of OfflineFeatures.
func (*MockSQLDatastoreMockRecorder) OptimizedRevision ¶
func (mr *MockSQLDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
OptimizedRevision indicates an expected call of OptimizedRevision.
func (*MockSQLDatastoreMockRecorder) ParseExplain ¶
func (mr *MockSQLDatastoreMockRecorder) ParseExplain(explain any) *gomock.Call
ParseExplain indicates an expected call of ParseExplain.
func (*MockSQLDatastoreMockRecorder) PreExplainStatements ¶
func (mr *MockSQLDatastoreMockRecorder) PreExplainStatements() *gomock.Call
PreExplainStatements indicates an expected call of PreExplainStatements.
func (*MockSQLDatastoreMockRecorder) ReadWriteTx ¶
func (mr *MockSQLDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
ReadWriteTx indicates an expected call of ReadWriteTx.
func (*MockSQLDatastoreMockRecorder) ReadyState ¶
func (mr *MockSQLDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
ReadyState indicates an expected call of ReadyState.
func (*MockSQLDatastoreMockRecorder) RevisionFromString ¶
func (mr *MockSQLDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
RevisionFromString indicates an expected call of RevisionFromString.
func (*MockSQLDatastoreMockRecorder) SnapshotReader ¶
func (mr *MockSQLDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
SnapshotReader indicates an expected call of SnapshotReader.
func (*MockSQLDatastoreMockRecorder) Statistics ¶
func (mr *MockSQLDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
Statistics indicates an expected call of Statistics.
type MockSchemaDefinition ¶
type MockSchemaDefinition struct {
// contains filtered or unexported fields
}
MockSchemaDefinition is a mock of SchemaDefinition interface.
func NewMockSchemaDefinition ¶
func NewMockSchemaDefinition(ctrl *gomock.Controller) *MockSchemaDefinition
NewMockSchemaDefinition creates a new mock instance.
func (*MockSchemaDefinition) EXPECT ¶
func (m *MockSchemaDefinition) EXPECT() *MockSchemaDefinitionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSchemaDefinition) GetName ¶
func (m *MockSchemaDefinition) GetName() string
GetName mocks base method.
func (*MockSchemaDefinition) SizeVT ¶
func (m *MockSchemaDefinition) SizeVT() int
SizeVT mocks base method.
type MockSchemaDefinitionMockRecorder ¶
type MockSchemaDefinitionMockRecorder struct {
// contains filtered or unexported fields
}
MockSchemaDefinitionMockRecorder is the mock recorder for MockSchemaDefinition.
func (*MockSchemaDefinitionMockRecorder) GetName ¶
func (mr *MockSchemaDefinitionMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockSchemaDefinitionMockRecorder) SizeVT ¶
func (mr *MockSchemaDefinitionMockRecorder) SizeVT() *gomock.Call
SizeVT indicates an expected call of SizeVT.
type MockStartableDatastore ¶
type MockStartableDatastore struct {
// contains filtered or unexported fields
}
MockStartableDatastore is a mock of StartableDatastore interface.
func NewMockStartableDatastore ¶
func NewMockStartableDatastore(ctrl *gomock.Controller) *MockStartableDatastore
NewMockStartableDatastore creates a new mock instance.
func (*MockStartableDatastore) CheckRevision ¶
func (m *MockStartableDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
CheckRevision mocks base method.
func (*MockStartableDatastore) Close ¶
func (m *MockStartableDatastore) Close() error
Close mocks base method.
func (*MockStartableDatastore) EXPECT ¶
func (m *MockStartableDatastore) EXPECT() *MockStartableDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStartableDatastore) HeadRevision ¶
HeadRevision mocks base method.
func (*MockStartableDatastore) MetricsID ¶
func (m *MockStartableDatastore) MetricsID() (string, error)
MetricsID mocks base method.
func (*MockStartableDatastore) OfflineFeatures ¶
func (m *MockStartableDatastore) OfflineFeatures() (*datastore.Features, error)
OfflineFeatures mocks base method.
func (*MockStartableDatastore) OptimizedRevision ¶
OptimizedRevision mocks base method.
func (*MockStartableDatastore) ReadWriteTx ¶
func (m *MockStartableDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, arg2 ...options.RWTOptionsOption) (datastore.Revision, error)
ReadWriteTx mocks base method.
func (*MockStartableDatastore) ReadyState ¶
func (m *MockStartableDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
ReadyState mocks base method.
func (*MockStartableDatastore) RevisionFromString ¶
func (m *MockStartableDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
RevisionFromString mocks base method.
func (*MockStartableDatastore) SnapshotReader ¶
func (m *MockStartableDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
SnapshotReader mocks base method.
func (*MockStartableDatastore) Start ¶
func (m *MockStartableDatastore) Start(ctx context.Context) error
Start mocks base method.
func (*MockStartableDatastore) Statistics ¶
Statistics mocks base method.
func (*MockStartableDatastore) UniqueID ¶
func (m *MockStartableDatastore) UniqueID(arg0 context.Context) (string, error)
UniqueID mocks base method.
func (*MockStartableDatastore) Watch ¶
func (m *MockStartableDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, arg2 datastore.WatchOptions) (<-chan datastore.RevisionChanges, <-chan error)
Watch mocks base method.
type MockStartableDatastoreMockRecorder ¶
type MockStartableDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStartableDatastoreMockRecorder is the mock recorder for MockStartableDatastore.
func (*MockStartableDatastoreMockRecorder) CheckRevision ¶
func (mr *MockStartableDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
CheckRevision indicates an expected call of CheckRevision.
func (*MockStartableDatastoreMockRecorder) Close ¶
func (mr *MockStartableDatastoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockStartableDatastoreMockRecorder) Features ¶
func (mr *MockStartableDatastoreMockRecorder) Features(ctx any) *gomock.Call
Features indicates an expected call of Features.
func (*MockStartableDatastoreMockRecorder) HeadRevision ¶
func (mr *MockStartableDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
HeadRevision indicates an expected call of HeadRevision.
func (*MockStartableDatastoreMockRecorder) MetricsID ¶
func (mr *MockStartableDatastoreMockRecorder) MetricsID() *gomock.Call
MetricsID indicates an expected call of MetricsID.
func (*MockStartableDatastoreMockRecorder) OfflineFeatures ¶
func (mr *MockStartableDatastoreMockRecorder) OfflineFeatures() *gomock.Call
OfflineFeatures indicates an expected call of OfflineFeatures.
func (*MockStartableDatastoreMockRecorder) OptimizedRevision ¶
func (mr *MockStartableDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
OptimizedRevision indicates an expected call of OptimizedRevision.
func (*MockStartableDatastoreMockRecorder) ReadWriteTx ¶
func (mr *MockStartableDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
ReadWriteTx indicates an expected call of ReadWriteTx.
func (*MockStartableDatastoreMockRecorder) ReadyState ¶
func (mr *MockStartableDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
ReadyState indicates an expected call of ReadyState.
func (*MockStartableDatastoreMockRecorder) RevisionFromString ¶
func (mr *MockStartableDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
RevisionFromString indicates an expected call of RevisionFromString.
func (*MockStartableDatastoreMockRecorder) SnapshotReader ¶
func (mr *MockStartableDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
SnapshotReader indicates an expected call of SnapshotReader.
func (*MockStartableDatastoreMockRecorder) Start ¶
func (mr *MockStartableDatastoreMockRecorder) Start(ctx any) *gomock.Call
Start indicates an expected call of Start.
func (*MockStartableDatastoreMockRecorder) Statistics ¶
func (mr *MockStartableDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
Statistics indicates an expected call of Statistics.
type MockStrictReadDatastore ¶
type MockStrictReadDatastore struct {
// contains filtered or unexported fields
}
MockStrictReadDatastore is a mock of StrictReadDatastore interface.
func NewMockStrictReadDatastore ¶
func NewMockStrictReadDatastore(ctrl *gomock.Controller) *MockStrictReadDatastore
NewMockStrictReadDatastore creates a new mock instance.
func (*MockStrictReadDatastore) CheckRevision ¶
func (m *MockStrictReadDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
CheckRevision mocks base method.
func (*MockStrictReadDatastore) Close ¶
func (m *MockStrictReadDatastore) Close() error
Close mocks base method.
func (*MockStrictReadDatastore) EXPECT ¶
func (m *MockStrictReadDatastore) EXPECT() *MockStrictReadDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStrictReadDatastore) HeadRevision ¶
HeadRevision mocks base method.
func (*MockStrictReadDatastore) IsStrictReadModeEnabled ¶
func (m *MockStrictReadDatastore) IsStrictReadModeEnabled() bool
IsStrictReadModeEnabled mocks base method.
func (*MockStrictReadDatastore) MetricsID ¶
func (m *MockStrictReadDatastore) MetricsID() (string, error)
MetricsID mocks base method.
func (*MockStrictReadDatastore) OfflineFeatures ¶
func (m *MockStrictReadDatastore) OfflineFeatures() (*datastore.Features, error)
OfflineFeatures mocks base method.
func (*MockStrictReadDatastore) OptimizedRevision ¶
func (m *MockStrictReadDatastore) OptimizedRevision(ctx context.Context) (datastore.Revision, error)
OptimizedRevision mocks base method.
func (*MockStrictReadDatastore) ReadWriteTx ¶
func (m *MockStrictReadDatastore) ReadWriteTx(arg0 context.Context, arg1 datastore.TxUserFunc, arg2 ...options.RWTOptionsOption) (datastore.Revision, error)
ReadWriteTx mocks base method.
func (*MockStrictReadDatastore) ReadyState ¶
func (m *MockStrictReadDatastore) ReadyState(ctx context.Context) (datastore.ReadyState, error)
ReadyState mocks base method.
func (*MockStrictReadDatastore) RevisionFromString ¶
func (m *MockStrictReadDatastore) RevisionFromString(serialized string) (datastore.Revision, error)
RevisionFromString mocks base method.
func (*MockStrictReadDatastore) SnapshotReader ¶
func (m *MockStrictReadDatastore) SnapshotReader(arg0 datastore.Revision) datastore.Reader
SnapshotReader mocks base method.
func (*MockStrictReadDatastore) Statistics ¶
Statistics mocks base method.
func (*MockStrictReadDatastore) UniqueID ¶
func (m *MockStrictReadDatastore) UniqueID(arg0 context.Context) (string, error)
UniqueID mocks base method.
func (*MockStrictReadDatastore) Watch ¶
func (m *MockStrictReadDatastore) Watch(ctx context.Context, afterRevision datastore.Revision, arg2 datastore.WatchOptions) (<-chan datastore.RevisionChanges, <-chan error)
Watch mocks base method.
type MockStrictReadDatastoreMockRecorder ¶
type MockStrictReadDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockStrictReadDatastoreMockRecorder is the mock recorder for MockStrictReadDatastore.
func (*MockStrictReadDatastoreMockRecorder) CheckRevision ¶
func (mr *MockStrictReadDatastoreMockRecorder) CheckRevision(ctx, revision any) *gomock.Call
CheckRevision indicates an expected call of CheckRevision.
func (*MockStrictReadDatastoreMockRecorder) Close ¶
func (mr *MockStrictReadDatastoreMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockStrictReadDatastoreMockRecorder) Features ¶
func (mr *MockStrictReadDatastoreMockRecorder) Features(ctx any) *gomock.Call
Features indicates an expected call of Features.
func (*MockStrictReadDatastoreMockRecorder) HeadRevision ¶
func (mr *MockStrictReadDatastoreMockRecorder) HeadRevision(ctx any) *gomock.Call
HeadRevision indicates an expected call of HeadRevision.
func (*MockStrictReadDatastoreMockRecorder) IsStrictReadModeEnabled ¶
func (mr *MockStrictReadDatastoreMockRecorder) IsStrictReadModeEnabled() *gomock.Call
IsStrictReadModeEnabled indicates an expected call of IsStrictReadModeEnabled.
func (*MockStrictReadDatastoreMockRecorder) MetricsID ¶
func (mr *MockStrictReadDatastoreMockRecorder) MetricsID() *gomock.Call
MetricsID indicates an expected call of MetricsID.
func (*MockStrictReadDatastoreMockRecorder) OfflineFeatures ¶
func (mr *MockStrictReadDatastoreMockRecorder) OfflineFeatures() *gomock.Call
OfflineFeatures indicates an expected call of OfflineFeatures.
func (*MockStrictReadDatastoreMockRecorder) OptimizedRevision ¶
func (mr *MockStrictReadDatastoreMockRecorder) OptimizedRevision(ctx any) *gomock.Call
OptimizedRevision indicates an expected call of OptimizedRevision.
func (*MockStrictReadDatastoreMockRecorder) ReadWriteTx ¶
func (mr *MockStrictReadDatastoreMockRecorder) ReadWriteTx(arg0, arg1 any, arg2 ...any) *gomock.Call
ReadWriteTx indicates an expected call of ReadWriteTx.
func (*MockStrictReadDatastoreMockRecorder) ReadyState ¶
func (mr *MockStrictReadDatastoreMockRecorder) ReadyState(ctx any) *gomock.Call
ReadyState indicates an expected call of ReadyState.
func (*MockStrictReadDatastoreMockRecorder) RevisionFromString ¶
func (mr *MockStrictReadDatastoreMockRecorder) RevisionFromString(serialized any) *gomock.Call
RevisionFromString indicates an expected call of RevisionFromString.
func (*MockStrictReadDatastoreMockRecorder) SnapshotReader ¶
func (mr *MockStrictReadDatastoreMockRecorder) SnapshotReader(arg0 any) *gomock.Call
SnapshotReader indicates an expected call of SnapshotReader.
func (*MockStrictReadDatastoreMockRecorder) Statistics ¶
func (mr *MockStrictReadDatastoreMockRecorder) Statistics(ctx any) *gomock.Call
Statistics indicates an expected call of Statistics.
type MockUnwrappableDatastore ¶
type MockUnwrappableDatastore struct {
// contains filtered or unexported fields
}
MockUnwrappableDatastore is a mock of UnwrappableDatastore interface.
func NewMockUnwrappableDatastore ¶
func NewMockUnwrappableDatastore(ctrl *gomock.Controller) *MockUnwrappableDatastore
NewMockUnwrappableDatastore creates a new mock instance.
func (*MockUnwrappableDatastore) EXPECT ¶
func (m *MockUnwrappableDatastore) EXPECT() *MockUnwrappableDatastoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockUnwrappableDatastore) Unwrap ¶
func (m *MockUnwrappableDatastore) Unwrap() datastore.Datastore
Unwrap mocks base method.
type MockUnwrappableDatastoreMockRecorder ¶
type MockUnwrappableDatastoreMockRecorder struct {
// contains filtered or unexported fields
}
MockUnwrappableDatastoreMockRecorder is the mock recorder for MockUnwrappableDatastore.
func (*MockUnwrappableDatastoreMockRecorder) Unwrap ¶
func (mr *MockUnwrappableDatastoreMockRecorder) Unwrap() *gomock.Call
Unwrap indicates an expected call of Unwrap.