Documentation ¶
Index ¶
- type MockDatastore
- func (dm *MockDatastore) CheckRevision(_ context.Context, revision datastore.Revision) error
- func (dm *MockDatastore) Close() error
- func (dm *MockDatastore) Features(_ context.Context) (*datastore.Features, error)
- func (dm *MockDatastore) HeadRevision(_ context.Context) (datastore.Revision, error)
- func (dm *MockDatastore) OptimizedRevision(_ context.Context) (datastore.Revision, error)
- func (dm *MockDatastore) ReadWriteTx(_ context.Context, f datastore.TxUserFunc, opts ...options.RWTOptionsOption) (datastore.Revision, error)
- func (dm *MockDatastore) ReadyState(_ context.Context) (datastore.ReadyState, error)
- func (dm *MockDatastore) RevisionFromString(s string) (datastore.Revision, error)
- func (dm *MockDatastore) SnapshotReader(rev datastore.Revision) datastore.Reader
- func (dm *MockDatastore) Statistics(_ context.Context) (datastore.Stats, error)
- func (dm *MockDatastore) Watch(_ context.Context, afterRevision datastore.Revision) (<-chan *datastore.RevisionChanges, <-chan error)
- type MockReadWriteTransaction
- func (dm *MockReadWriteTransaction) BulkLoad(_ context.Context, iter datastore.BulkWriteRelationshipSource) (uint64, error)
- func (dm *MockReadWriteTransaction) DeleteCaveats(_ context.Context, _ []string) error
- func (dm *MockReadWriteTransaction) DeleteNamespaces(_ context.Context, nsNames ...string) error
- func (dm *MockReadWriteTransaction) DeleteRelationships(_ context.Context, filter *v1.RelationshipFilter) error
- func (dm *MockReadWriteTransaction) ListAllCaveats(_ context.Context) ([]datastore.RevisionedCaveat, error)
- func (dm *MockReadWriteTransaction) ListAllNamespaces(_ context.Context) ([]datastore.RevisionedNamespace, error)
- func (dm *MockReadWriteTransaction) LookupCaveatsWithNames(_ context.Context, caveatNames []string) ([]datastore.RevisionedCaveat, error)
- func (dm *MockReadWriteTransaction) LookupNamespacesWithNames(_ context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)
- func (dm *MockReadWriteTransaction) QueryRelationships(_ context.Context, filter datastore.RelationshipsFilter, ...) (datastore.RelationshipIterator, error)
- func (dm *MockReadWriteTransaction) ReadCaveatByName(_ context.Context, name string) (*core.CaveatDefinition, datastore.Revision, error)
- func (dm *MockReadWriteTransaction) ReadNamespaceByName(_ context.Context, nsName string) (*core.NamespaceDefinition, datastore.Revision, error)
- func (dm *MockReadWriteTransaction) ReverseQueryRelationships(_ context.Context, subjectsFilter datastore.SubjectsFilter, ...) (datastore.RelationshipIterator, error)
- func (dm *MockReadWriteTransaction) WriteCaveats(_ context.Context, caveats []*core.CaveatDefinition) error
- func (dm *MockReadWriteTransaction) WriteNamespaces(_ context.Context, newConfigs ...*core.NamespaceDefinition) error
- func (dm *MockReadWriteTransaction) WriteRelationships(_ context.Context, mutations []*core.RelationTupleUpdate) error
- type MockReader
- func (dm *MockReader) ListAllCaveats(_ context.Context) ([]datastore.RevisionedCaveat, error)
- func (dm *MockReader) ListAllNamespaces(_ context.Context) ([]datastore.RevisionedNamespace, error)
- func (dm *MockReader) LookupCaveatsWithNames(_ context.Context, caveatNames []string) ([]datastore.RevisionedCaveat, error)
- func (dm *MockReader) LookupNamespacesWithNames(_ context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)
- func (dm *MockReader) QueryRelationships(_ context.Context, filter datastore.RelationshipsFilter, ...) (datastore.RelationshipIterator, error)
- func (dm *MockReader) ReadCaveatByName(_ context.Context, name string) (*core.CaveatDefinition, datastore.Revision, error)
- func (dm *MockReader) ReadNamespaceByName(_ context.Context, nsName string) (*core.NamespaceDefinition, datastore.Revision, error)
- func (dm *MockReader) ReverseQueryRelationships(_ context.Context, subjectsFilter datastore.SubjectsFilter, ...) (datastore.RelationshipIterator, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDatastore ¶
func (*MockDatastore) CheckRevision ¶
func (*MockDatastore) Close ¶
func (dm *MockDatastore) Close() error
func (*MockDatastore) HeadRevision ¶
func (*MockDatastore) OptimizedRevision ¶
func (*MockDatastore) ReadWriteTx ¶
func (dm *MockDatastore) ReadWriteTx( _ context.Context, f datastore.TxUserFunc, opts ...options.RWTOptionsOption, ) (datastore.Revision, error)
func (*MockDatastore) ReadyState ¶ added in v1.18.1
func (dm *MockDatastore) ReadyState(_ context.Context) (datastore.ReadyState, error)
func (*MockDatastore) RevisionFromString ¶ added in v1.14.0
func (dm *MockDatastore) RevisionFromString(s string) (datastore.Revision, error)
func (*MockDatastore) SnapshotReader ¶
func (dm *MockDatastore) SnapshotReader(rev datastore.Revision) datastore.Reader
func (*MockDatastore) Statistics ¶
func (*MockDatastore) Watch ¶
func (dm *MockDatastore) Watch(_ context.Context, afterRevision datastore.Revision) (<-chan *datastore.RevisionChanges, <-chan error)
type MockReadWriteTransaction ¶
func (*MockReadWriteTransaction) BulkLoad ¶ added in v1.22.0
func (dm *MockReadWriteTransaction) BulkLoad(_ context.Context, iter datastore.BulkWriteRelationshipSource) (uint64, error)
func (*MockReadWriteTransaction) DeleteCaveats ¶ added in v1.14.0
func (dm *MockReadWriteTransaction) DeleteCaveats(_ context.Context, _ []string) error
func (*MockReadWriteTransaction) DeleteNamespaces ¶ added in v1.14.0
func (dm *MockReadWriteTransaction) DeleteNamespaces(_ context.Context, nsNames ...string) error
func (*MockReadWriteTransaction) DeleteRelationships ¶
func (dm *MockReadWriteTransaction) DeleteRelationships(_ context.Context, filter *v1.RelationshipFilter) error
func (*MockReadWriteTransaction) ListAllCaveats ¶ added in v1.16.2
func (dm *MockReadWriteTransaction) ListAllCaveats(_ context.Context) ([]datastore.RevisionedCaveat, error)
func (*MockReadWriteTransaction) ListAllNamespaces ¶ added in v1.16.2
func (dm *MockReadWriteTransaction) ListAllNamespaces(_ context.Context) ([]datastore.RevisionedNamespace, error)
func (*MockReadWriteTransaction) LookupCaveatsWithNames ¶ added in v1.16.2
func (dm *MockReadWriteTransaction) LookupCaveatsWithNames(_ context.Context, caveatNames []string) ([]datastore.RevisionedCaveat, error)
func (*MockReadWriteTransaction) LookupNamespacesWithNames ¶ added in v1.16.2
func (dm *MockReadWriteTransaction) LookupNamespacesWithNames(_ context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)
func (*MockReadWriteTransaction) QueryRelationships ¶
func (dm *MockReadWriteTransaction) QueryRelationships( _ context.Context, filter datastore.RelationshipsFilter, options ...options.QueryOptionsOption, ) (datastore.RelationshipIterator, error)
func (*MockReadWriteTransaction) ReadCaveatByName ¶ added in v1.14.0
func (dm *MockReadWriteTransaction) ReadCaveatByName(_ context.Context, name string) (*core.CaveatDefinition, datastore.Revision, error)
func (*MockReadWriteTransaction) ReadNamespaceByName ¶ added in v1.16.2
func (dm *MockReadWriteTransaction) ReadNamespaceByName( _ context.Context, nsName string, ) (*core.NamespaceDefinition, datastore.Revision, error)
func (*MockReadWriteTransaction) ReverseQueryRelationships ¶
func (dm *MockReadWriteTransaction) ReverseQueryRelationships( _ context.Context, subjectsFilter datastore.SubjectsFilter, options ...options.ReverseQueryOptionsOption, ) (datastore.RelationshipIterator, error)
func (*MockReadWriteTransaction) WriteCaveats ¶ added in v1.14.0
func (dm *MockReadWriteTransaction) WriteCaveats(_ context.Context, caveats []*core.CaveatDefinition) error
func (*MockReadWriteTransaction) WriteNamespaces ¶
func (dm *MockReadWriteTransaction) WriteNamespaces(_ context.Context, newConfigs ...*core.NamespaceDefinition) error
func (*MockReadWriteTransaction) WriteRelationships ¶
func (dm *MockReadWriteTransaction) WriteRelationships(_ context.Context, mutations []*core.RelationTupleUpdate) error
type MockReader ¶
func (*MockReader) ListAllCaveats ¶ added in v1.16.2
func (dm *MockReader) ListAllCaveats(_ context.Context) ([]datastore.RevisionedCaveat, error)
func (*MockReader) ListAllNamespaces ¶ added in v1.16.2
func (dm *MockReader) ListAllNamespaces(_ context.Context) ([]datastore.RevisionedNamespace, error)
func (*MockReader) LookupCaveatsWithNames ¶ added in v1.16.2
func (dm *MockReader) LookupCaveatsWithNames(_ context.Context, caveatNames []string) ([]datastore.RevisionedCaveat, error)
func (*MockReader) LookupNamespacesWithNames ¶ added in v1.16.2
func (dm *MockReader) LookupNamespacesWithNames(_ context.Context, nsNames []string) ([]datastore.RevisionedNamespace, error)
func (*MockReader) QueryRelationships ¶
func (dm *MockReader) QueryRelationships( _ context.Context, filter datastore.RelationshipsFilter, options ...options.QueryOptionsOption, ) (datastore.RelationshipIterator, error)
func (*MockReader) ReadCaveatByName ¶ added in v1.14.0
func (dm *MockReader) ReadCaveatByName(_ context.Context, name string) (*core.CaveatDefinition, datastore.Revision, error)
func (*MockReader) ReadNamespaceByName ¶ added in v1.16.2
func (dm *MockReader) ReadNamespaceByName( _ context.Context, nsName string, ) (*core.NamespaceDefinition, datastore.Revision, error)
func (*MockReader) ReverseQueryRelationships ¶
func (dm *MockReader) ReverseQueryRelationships( _ context.Context, subjectsFilter datastore.SubjectsFilter, options ...options.ReverseQueryOptionsOption, ) (datastore.RelationshipIterator, error)
Click to show internal directories.
Click to hide internal directories.