Documentation ¶
Index ¶
- func AsCheckHintForArrow(checkHint *v1.CheckHint, resourceType string, tuplesetRelation string, ...) (string, bool)
- func AsCheckHintForComputedUserset(checkHint *v1.CheckHint, resourceType string, relationName string, ...) (string, bool)
- func CheckHintForArrow(resourceType string, resourceID string, tuplesetRelation string, ...) *v1.CheckHint
- func CheckHintForComputedUserset(resourceType string, resourceID string, relation string, ...) *v1.CheckHint
- func HintForEntrypoint(re typesystem.ReachabilityEntrypoint, resourceID string, ...) (*v1.CheckHint, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsCheckHintForArrow ¶
func AsCheckHintForArrow(checkHint *v1.CheckHint, resourceType string, tuplesetRelation string, computedUsersetRelation string, subject *core.ObjectAndRelation) (string, bool)
AsCheckHintForArrow returns the resourceID if the checkHint is for the given arrow and subject.
func AsCheckHintForComputedUserset ¶
func AsCheckHintForComputedUserset(checkHint *v1.CheckHint, resourceType string, relationName string, subject *core.ObjectAndRelation) (string, bool)
AsCheckHintForComputedUserset returns the resourceID if the checkHint is for the given relation and subject.
func CheckHintForArrow ¶
func CheckHintForArrow(resourceType string, resourceID string, tuplesetRelation string, computedUsersetRelation string, subject *core.ObjectAndRelation, result *v1.ResourceCheckResult) *v1.CheckHint
CheckHintForArrow creates a CheckHint for an arrow and a subject.
func CheckHintForComputedUserset ¶
func CheckHintForComputedUserset(resourceType string, resourceID string, relation string, subject *core.ObjectAndRelation, result *v1.ResourceCheckResult) *v1.CheckHint
CheckHintForComputedUserset creates a CheckHint for a relation and a subject.
func HintForEntrypoint ¶
func HintForEntrypoint(re typesystem.ReachabilityEntrypoint, resourceID string, subject *core.ObjectAndRelation, result *v1.ResourceCheckResult) (*v1.CheckHint, error)
HintForEntrypoint returns a CheckHint for the given reachability graph entrypoint and associated subject and result.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.