Documentation ¶
Index ¶
- Variables
- type Config
- type PolicyRepository
- type RelationRepository
- func (r RelationRepository) Add(ctx context.Context, rel relation.Relation) error
- func (r RelationRepository) AddV2(ctx context.Context, rel relation.RelationV2) error
- func (r RelationRepository) BulkCheck(ctx context.Context, rels []relation.Relation, acts []action.Action) ([]relation.Permission, error)
- func (r RelationRepository) Check(ctx context.Context, rel relation.Relation, act action.Action) (bool, error)
- func (r RelationRepository) CheckIsPublic(ctx context.Context, rel relation.Relation, act action.Action) (bool, error)
- func (r RelationRepository) Delete(ctx context.Context, rel relation.Relation) error
- func (r RelationRepository) DeleteSubjectRelations(ctx context.Context, resourceType, optionalResourceID string) error
- func (r RelationRepository) DeleteV2(ctx context.Context, rel relation.RelationV2) error
- func (r RelationRepository) LookupResources(ctx context.Context, resourceType, permission, subjectType, subjectID string) ([]string, error)
- type SpiceDB
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrWritingSchema = errors.New("error in writing schema to spicedb")
Functions ¶
This section is empty.
Types ¶
type PolicyRepository ¶
type PolicyRepository struct {
// contains filtered or unexported fields
}
func NewPolicyRepository ¶
func NewPolicyRepository(spiceDB *SpiceDB) *PolicyRepository
func (PolicyRepository) WriteSchema ¶
func (r PolicyRepository) WriteSchema(ctx context.Context, schema schema.NamespaceConfigMapType) error
type RelationRepository ¶
type RelationRepository struct {
// contains filtered or unexported fields
}
func NewRelationRepository ¶
func NewRelationRepository(spiceDB *SpiceDB) *RelationRepository
func (RelationRepository) AddV2 ¶
func (r RelationRepository) AddV2(ctx context.Context, rel relation.RelationV2) error
func (RelationRepository) BulkCheck ¶ added in v0.6.30
func (r RelationRepository) BulkCheck(ctx context.Context, rels []relation.Relation, acts []action.Action) ([]relation.Permission, error)
func (RelationRepository) CheckIsPublic ¶ added in v0.6.31
func (RelationRepository) DeleteSubjectRelations ¶
func (r RelationRepository) DeleteSubjectRelations(ctx context.Context, resourceType, optionalResourceID string) error
func (RelationRepository) DeleteV2 ¶
func (r RelationRepository) DeleteV2(ctx context.Context, rel relation.RelationV2) error
func (RelationRepository) LookupResources ¶ added in v0.6.22
Source Files ¶
Click to show internal directories.
Click to hide internal directories.