Documentation ¶
Index ¶
- type SQLStore
- func (s *SQLStore) ListRelationTuples(ctx context.Context, query *aclpb.ListRelationTuplesRequest_Query) ([]ac.InternalRelationTuple, error)
- func (s *SQLStore) RowCount(ctx context.Context, query ac.RelationTupleQuery) (int64, error)
- func (s *SQLStore) SubjectSets(ctx context.Context, object ac.Object, relations ...string) ([]ac.SubjectSet, error)
- func (s *SQLStore) TransactRelationTuples(ctx context.Context, tupleInserts []*ac.InternalRelationTuple, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SQLStore ¶
SQLStore implements the RelationTupleStore interface for a sql storage adapter.
func (*SQLStore) ListRelationTuples ¶
func (s *SQLStore) ListRelationTuples(ctx context.Context, query *aclpb.ListRelationTuplesRequest_Query) ([]ac.InternalRelationTuple, error)
ListRelationTuples lists the relation tuples matching the request query and filters the response fields by the provided field mask.
func (*SQLStore) RowCount ¶
RowCount returns the number of rows matching the relation tuple query provided.
func (*SQLStore) SubjectSets ¶
func (s *SQLStore) SubjectSets(ctx context.Context, object ac.Object, relations ...string) ([]ac.SubjectSet, error)
SubjectSets fetches the subject sets for all of the (object, relation) pairs provided.
func (*SQLStore) TransactRelationTuples ¶
func (s *SQLStore) TransactRelationTuples(ctx context.Context, tupleInserts []*ac.InternalRelationTuple, tupleDeletes []*ac.InternalRelationTuple) error
TransactRelationTuples applies, with the same txn, the relation tuple inserts and deletions provided. Each insertion/deletion includes a corresponding changelog entry with an operation indicating what was applied.
Click to show internal directories.
Click to hide internal directories.