hints

package
v1.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL