checkutil

package
v1.11.4 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTupleKeyConditionFilter

func BuildTupleKeyConditionFilter(ctx context.Context, reqCtx *structpb.Struct, typesys *typesystem.TypeSystem) storage.TupleKeyConditionFilterFunc

BuildTupleKeyConditionFilter returns the TupleKeyConditionFilterFunc for which, together with the tuple key, evaluates whether condition is met.

func IteratorReadStartingFromUser

func IteratorReadStartingFromUser(ctx context.Context,
	typesys *typesystem.TypeSystem,
	ds storage.RelationshipTupleReader,
	req resolveCheckRequest,
	objectRel string,
	objectIDs storage.SortedSet,
	sortContextualTuples bool) (storage.TupleKeyIterator, error)

IteratorReadStartingFromUser returns storage iterator for user with request's type and relation with specified objectIDs as filter.

func IteratorReadUsersetTuples added in v1.10.0

func IteratorReadUsersetTuples(ctx context.Context,
	req resolveCheckRequest,
	allowedUserTypeRestrictions []*openfgav1.RelationReference) (storage.TupleKeyIterator, error)

Types

type V2RelationFunc added in v1.8.3

type V2RelationFunc func(*openfgav1.RelationReference) string

func BuildTTUV2RelationFunc added in v1.8.3

func BuildTTUV2RelationFunc(computedRelation string) V2RelationFunc

BuildTTUV2RelationFunc will always return the computedRelation regardless of the reference.

func BuildUsersetV2RelationFunc added in v1.8.3

func BuildUsersetV2RelationFunc() V2RelationFunc

BuildUsersetV2RelationFunc returns the reference's relation.

Jump to

Keyboard shortcuts

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