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) Check(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
- 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) 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
Source Files ¶
Click to show internal directories.
Click to hide internal directories.