Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultHash string = `0`
Variables ¶
This section is empty.
Functions ¶
Types ¶
type RelationScope ¶
type RelationScope int
const ( AsRelation RelationScope = iota AsPermission AsEither )
type SafeCheck ¶
type SafeCheck struct {
*dsr3.CheckRequest
}
func Check ¶
func Check(i *dsr3.CheckRequest) *SafeCheck
func (*SafeCheck) Object ¶
func (i *SafeCheck) Object() *dsc3.ObjectIdentifier
func (*SafeCheck) Subject ¶
func (i *SafeCheck) Subject() *dsc3.ObjectIdentifier
type SafeGetGraph ¶
type SafeGetGraph struct {
*dsr3.GetGraphRequest
}
func GetGraph ¶
func GetGraph(i *dsr3.GetGraphRequest) *SafeGetGraph
func (*SafeGetGraph) Object ¶
func (i *SafeGetGraph) Object() *dsc3.ObjectIdentifier
func (*SafeGetGraph) RelationRef ¶ added in v0.1.1
func (i *SafeGetGraph) RelationRef() *model.RelationRef
func (*SafeGetGraph) Subject ¶
func (i *SafeGetGraph) Subject() *dsc3.ObjectIdentifier
type SafeObject ¶
func Object ¶
func Object(i *dsc3.Object) *SafeObject
func (*SafeObject) Hash ¶
func (i *SafeObject) Hash() string
type SafeObjectIdentifier ¶
type SafeObjectIdentifier struct {
*dsc3.ObjectIdentifier
}
func ObjectIdentifier ¶
func ObjectIdentifier(i *dsc3.ObjectIdentifier) *SafeObjectIdentifier
func (*SafeObjectIdentifier) Equal ¶
func (i *SafeObjectIdentifier) Equal(n *dsc3.ObjectIdentifier) bool
func (*SafeObjectIdentifier) IsComplete ¶
func (i *SafeObjectIdentifier) IsComplete() bool
type SafeObjectSelector ¶
type SafeObjectSelector struct {
*dsc3.ObjectIdentifier
}
func ObjectSelector ¶
func ObjectSelector(i *dsc3.ObjectIdentifier) *SafeObjectSelector
func (*SafeObjectSelector) IsComplete ¶
func (i *SafeObjectSelector) IsComplete() bool
type SafeRelation ¶
SafeRelation identifier.
func Relation ¶
func Relation(i *dsc3.Relation) *SafeRelation
func (*SafeRelation) Hash ¶
func (i *SafeRelation) Hash() string
func (*SafeRelation) Object ¶
func (i *SafeRelation) Object() *dsc3.ObjectIdentifier
func (*SafeRelation) Subject ¶
func (i *SafeRelation) Subject() *dsc3.ObjectIdentifier
type SafeRelationIdentifier ¶
type SafeRelationIdentifier struct {
*model.RelationRef
}
func RelationIdentifier ¶
func RelationIdentifier(i *model.RelationRef) *SafeRelationIdentifier
func (*SafeRelationIdentifier) Validate ¶
func (r *SafeRelationIdentifier) Validate(scope RelationScope, mc *cache.Cache) error
type SafeRelations ¶
type SafeRelations struct {
*SafeRelation
}
Relation selector.
func GetRelation ¶
func GetRelation(i *dsr3.GetRelationRequest) *SafeRelations
func GetRelations ¶
func GetRelations(i *dsr3.GetRelationsRequest) *SafeRelations
Click to show internal directories.
Click to hide internal directories.