checkutil

package
v1.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2026 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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