Documentation ¶
Index ¶
- type MockDatastore
- func (dm *MockDatastore) CheckRevision(ctx context.Context, revision datastore.Revision) error
- func (dm *MockDatastore) Close() error
- func (dm *MockDatastore) Features(ctx context.Context) (*datastore.Features, error)
- func (dm *MockDatastore) HeadRevision(ctx context.Context) (datastore.Revision, error)
- func (dm *MockDatastore) IsReady(ctx context.Context) (bool, error)
- func (dm *MockDatastore) OptimizedRevision(ctx context.Context) (datastore.Revision, error)
- func (dm *MockDatastore) ReadWriteTx(ctx context.Context, f datastore.TxUserFunc) (datastore.Revision, error)
- func (dm *MockDatastore) RevisionFromString(s string) (datastore.Revision, error)
- func (dm *MockDatastore) SnapshotReader(rev datastore.Revision) datastore.Reader
- func (dm *MockDatastore) Statistics(ctx context.Context) (datastore.Stats, error)
- func (dm *MockDatastore) Watch(ctx context.Context, afterRevision datastore.Revision) (<-chan *datastore.RevisionChanges, <-chan error)
- type MockReadWriteTransaction
- func (dm *MockReadWriteTransaction) DeleteCaveats(ctx context.Context, names []string) error
- func (dm *MockReadWriteTransaction) DeleteNamespaces(ctx context.Context, nsNames ...string) error
- func (dm *MockReadWriteTransaction) DeleteRelationships(ctx context.Context, filter *v1.RelationshipFilter) error
- func (dm *MockReadWriteTransaction) ListCaveats(ctx context.Context, caveatNames ...string) ([]*core.CaveatDefinition, error)
- func (dm *MockReadWriteTransaction) ListNamespaces(ctx context.Context) ([]*core.NamespaceDefinition, error)
- func (dm *MockReadWriteTransaction) LookupNamespaces(ctx context.Context, nsNames []string) ([]*core.NamespaceDefinition, error)
- func (dm *MockReadWriteTransaction) QueryRelationships(ctx context.Context, filter datastore.RelationshipsFilter, ...) (datastore.RelationshipIterator, error)
- func (dm *MockReadWriteTransaction) ReadCaveatByName(ctx context.Context, name string) (*core.CaveatDefinition, datastore.Revision, error)
- func (dm *MockReadWriteTransaction) ReadNamespace(ctx context.Context, nsName string) (*core.NamespaceDefinition, datastore.Revision, error)
- func (dm *MockReadWriteTransaction) ReverseQueryRelationships(ctx context.Context, subjectsFilter datastore.SubjectsFilter, ...) (datastore.RelationshipIterator, error)
- func (dm *MockReadWriteTransaction) WriteCaveats(ctx context.Context, caveats []*core.CaveatDefinition) error
- func (dm *MockReadWriteTransaction) WriteNamespaces(ctx context.Context, newConfigs ...*core.NamespaceDefinition) error
- func (dm *MockReadWriteTransaction) WriteRelationships(ctx context.Context, mutations []*core.RelationTupleUpdate) error
- type MockReader
- func (dm *MockReader) ListCaveats(ctx context.Context, caveatNames ...string) ([]*core.CaveatDefinition, error)
- func (dm *MockReader) ListNamespaces(ctx context.Context) ([]*core.NamespaceDefinition, error)
- func (dm *MockReader) LookupNamespaces(ctx context.Context, nsNames []string) ([]*core.NamespaceDefinition, error)
- func (dm *MockReader) QueryRelationships(ctx context.Context, filter datastore.RelationshipsFilter, ...) (datastore.RelationshipIterator, error)
- func (dm *MockReader) ReadCaveatByName(ctx context.Context, name string) (*core.CaveatDefinition, datastore.Revision, error)
- func (dm *MockReader) ReadNamespace(ctx context.Context, nsName string) (*core.NamespaceDefinition, datastore.Revision, error)
- func (dm *MockReader) ReverseQueryRelationships(ctx 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( ctx context.Context, f datastore.TxUserFunc, ) (datastore.Revision, 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(ctx context.Context, afterRevision datastore.Revision) (<-chan *datastore.RevisionChanges, <-chan error)
type MockReadWriteTransaction ¶
func (*MockReadWriteTransaction) DeleteCaveats ¶ added in v1.14.0
func (dm *MockReadWriteTransaction) DeleteCaveats(ctx context.Context, names []string) error
func (*MockReadWriteTransaction) DeleteNamespaces ¶ added in v1.14.0
func (dm *MockReadWriteTransaction) DeleteNamespaces(ctx context.Context, nsNames ...string) error
func (*MockReadWriteTransaction) DeleteRelationships ¶
func (dm *MockReadWriteTransaction) DeleteRelationships(ctx context.Context, filter *v1.RelationshipFilter) error
func (*MockReadWriteTransaction) ListCaveats ¶ added in v1.14.0
func (dm *MockReadWriteTransaction) ListCaveats(ctx context.Context, caveatNames ...string) ([]*core.CaveatDefinition, error)
func (*MockReadWriteTransaction) ListNamespaces ¶
func (dm *MockReadWriteTransaction) ListNamespaces(ctx context.Context) ([]*core.NamespaceDefinition, error)
func (*MockReadWriteTransaction) LookupNamespaces ¶ added in v1.13.0
func (dm *MockReadWriteTransaction) LookupNamespaces(ctx context.Context, nsNames []string) ([]*core.NamespaceDefinition, error)
func (*MockReadWriteTransaction) QueryRelationships ¶
func (dm *MockReadWriteTransaction) QueryRelationships( ctx context.Context, filter datastore.RelationshipsFilter, options ...options.QueryOptionsOption, ) (datastore.RelationshipIterator, error)
func (*MockReadWriteTransaction) ReadCaveatByName ¶ added in v1.14.0
func (dm *MockReadWriteTransaction) ReadCaveatByName(ctx context.Context, name string) (*core.CaveatDefinition, datastore.Revision, error)
func (*MockReadWriteTransaction) ReadNamespace ¶
func (dm *MockReadWriteTransaction) ReadNamespace( ctx context.Context, nsName string, ) (*core.NamespaceDefinition, datastore.Revision, error)
func (*MockReadWriteTransaction) ReverseQueryRelationships ¶
func (dm *MockReadWriteTransaction) ReverseQueryRelationships( ctx context.Context, subjectsFilter datastore.SubjectsFilter, options ...options.ReverseQueryOptionsOption, ) (datastore.RelationshipIterator, error)
func (*MockReadWriteTransaction) WriteCaveats ¶ added in v1.14.0
func (dm *MockReadWriteTransaction) WriteCaveats(ctx context.Context, caveats []*core.CaveatDefinition) error
func (*MockReadWriteTransaction) WriteNamespaces ¶
func (dm *MockReadWriteTransaction) WriteNamespaces(ctx context.Context, newConfigs ...*core.NamespaceDefinition) error
func (*MockReadWriteTransaction) WriteRelationships ¶
func (dm *MockReadWriteTransaction) WriteRelationships(ctx context.Context, mutations []*core.RelationTupleUpdate) error
type MockReader ¶
func (*MockReader) ListCaveats ¶ added in v1.14.0
func (dm *MockReader) ListCaveats(ctx context.Context, caveatNames ...string) ([]*core.CaveatDefinition, error)
func (*MockReader) ListNamespaces ¶
func (dm *MockReader) ListNamespaces(ctx context.Context) ([]*core.NamespaceDefinition, error)
func (*MockReader) LookupNamespaces ¶ added in v1.13.0
func (dm *MockReader) LookupNamespaces(ctx context.Context, nsNames []string) ([]*core.NamespaceDefinition, error)
func (*MockReader) QueryRelationships ¶
func (dm *MockReader) QueryRelationships( ctx context.Context, filter datastore.RelationshipsFilter, options ...options.QueryOptionsOption, ) (datastore.RelationshipIterator, error)
func (*MockReader) ReadCaveatByName ¶ added in v1.14.0
func (dm *MockReader) ReadCaveatByName(ctx context.Context, name string) (*core.CaveatDefinition, datastore.Revision, error)
func (*MockReader) ReadNamespace ¶
func (dm *MockReader) ReadNamespace( ctx context.Context, nsName string, ) (*core.NamespaceDefinition, datastore.Revision, error)
func (*MockReader) ReverseQueryRelationships ¶
func (dm *MockReader) ReverseQueryRelationships( ctx context.Context, subjectsFilter datastore.SubjectsFilter, options ...options.ReverseQueryOptionsOption, ) (datastore.RelationshipIterator, error)
Click to show internal directories.
Click to hide internal directories.