mocks

package
v1.47.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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

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

func (*MockBulkWriteRelationshipSource) Next

Next mocks base method.

type MockBulkWriteRelationshipSourceMockRecorder

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

MockBulkWriteRelationshipSourceMockRecorder is the mock recorder for MockBulkWriteRelationshipSource.

func (*MockBulkWriteRelationshipSourceMockRecorder) Next

Next indicates an expected call of Next.

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

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

CheckRevision mocks base method.

func (*MockDatastore) Close

func (m *MockDatastore) Close() error

Close mocks base method.

func (*MockDatastore) EXPECT

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

func (*MockDatastore) Features

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

Features mocks base method.

func (*MockDatastore) HeadRevision

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

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

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

OptimizedRevision mocks base method.

func (*MockDatastore) ReadWriteTx

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

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

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.

func (*MockDatastoreMockRecorder) UniqueID

func (mr *MockDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call

UniqueID indicates an expected call of UniqueID.

func (*MockDatastoreMockRecorder) Watch

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

Watch indicates an expected call of Watch.

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

func (m *MockExplainable) BuildExplainQuery(sql string, args []any) (string, []any, error)

BuildExplainQuery mocks base method.

func (*MockExplainable) EXPECT

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

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

func (*MockReadOnlyDatastore) Features

Features mocks base method.

func (*MockReadOnlyDatastore) HeadRevision

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

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

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

OptimizedRevision mocks base method.

func (*MockReadOnlyDatastore) ReadyState

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

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

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

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

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.

func (*MockReadOnlyDatastoreMockRecorder) UniqueID

func (mr *MockReadOnlyDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call

UniqueID indicates an expected call of UniqueID.

func (*MockReadOnlyDatastoreMockRecorder) Watch

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

Watch indicates an expected call of Watch.

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) 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

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

func (*MockReadWriteTransaction) ListAllCaveats

ListAllCaveats mocks base method.

func (*MockReadWriteTransaction) ListAllNamespaces

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

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

QueryRelationships mocks base method.

func (*MockReadWriteTransaction) ReadCaveatByName

ReadCaveatByName mocks base method.

func (*MockReadWriteTransaction) ReadNamespaceByName

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

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

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

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

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

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

func (*MockRepairableDatastore) Features

Features mocks base method.

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

ReadWriteTx mocks base method.

func (*MockRepairableDatastore) ReadyState

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

Close indicates an expected call of Close.

func (*MockRepairableDatastoreMockRecorder) Features

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

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.

func (*MockRepairableDatastoreMockRecorder) UniqueID

func (mr *MockRepairableDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call

UniqueID indicates an expected call of UniqueID.

func (*MockRepairableDatastoreMockRecorder) Watch

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

Watch indicates an expected call of Watch.

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

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.

func (*MockRevision) LessThan

func (m *MockRevision) LessThan(arg0 datastore.Revision) bool

LessThan mocks base method.

func (*MockRevision) String

func (m *MockRevision) String() string

String 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

func (m *MockSQLDatastore) BuildExplainQuery(sql string, args []any) (string, []any, error)

BuildExplainQuery mocks base method.

func (*MockSQLDatastore) CheckRevision

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

CheckRevision mocks base method.

func (*MockSQLDatastore) Close

func (m *MockSQLDatastore) Close() error

Close mocks base method.

func (*MockSQLDatastore) EXPECT

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

func (*MockSQLDatastore) Features

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

Features mocks base method.

func (*MockSQLDatastore) HeadRevision

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

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

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

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

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

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

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

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.

func (*MockSQLDatastoreMockRecorder) UniqueID

func (mr *MockSQLDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call

UniqueID indicates an expected call of UniqueID.

func (*MockSQLDatastoreMockRecorder) Watch

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

Watch indicates an expected call of Watch.

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

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

GetName indicates an expected call of GetName.

func (*MockSchemaDefinitionMockRecorder) SizeVT

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

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

func (*MockStartableDatastore) Features

Features mocks base method.

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

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

OptimizedRevision mocks base method.

func (*MockStartableDatastore) ReadWriteTx

ReadWriteTx mocks base method.

func (*MockStartableDatastore) ReadyState

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

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

Close indicates an expected call of Close.

func (*MockStartableDatastoreMockRecorder) Features

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

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

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.

func (*MockStartableDatastoreMockRecorder) UniqueID

func (mr *MockStartableDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call

UniqueID indicates an expected call of UniqueID.

func (*MockStartableDatastoreMockRecorder) Watch

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

Watch indicates an expected call of Watch.

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

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

func (*MockStrictReadDatastore) Features

Features mocks base method.

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

ReadWriteTx mocks base method.

func (*MockStrictReadDatastore) ReadyState

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

Close indicates an expected call of Close.

func (*MockStrictReadDatastoreMockRecorder) Features

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

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.

func (*MockStrictReadDatastoreMockRecorder) UniqueID

func (mr *MockStrictReadDatastoreMockRecorder) UniqueID(arg0 any) *gomock.Call

UniqueID indicates an expected call of UniqueID.

func (*MockStrictReadDatastoreMockRecorder) Watch

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

Watch indicates an expected call of Watch.

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

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

func (*MockUnwrappableDatastore) Unwrap

Unwrap mocks base method.

type MockUnwrappableDatastoreMockRecorder

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

MockUnwrappableDatastoreMockRecorder is the mock recorder for MockUnwrappableDatastore.

func (*MockUnwrappableDatastoreMockRecorder) Unwrap

Unwrap indicates an expected call of Unwrap.

Jump to

Keyboard shortcuts

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