validation

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateObjectsRelations

func ValidateObjectsRelations(ctx context.Context, backend storage.TypeDefinitionReadBackend, store, modelID string, t *openfgapb.TupleKey) (*openfgapb.Userset, error)

ValidateObjectsRelations checks whether a tuple's object and relations are valid. If they are not, returns an error. If they are, it grabs the type of the tuple's object, and the tuple's relation, and returns its corresponding userset.

func ValidateTuple

func ValidateTuple(ctx context.Context, backend storage.TypeDefinitionReadBackend, store, authorizationModelID string, tk *openfgapb.TupleKey) (*openfgapb.Userset, error)

ValidateTuple checks whether a tuple is valid. If it is not, returns as error. If it is, it grabs the type of the tuple's object, and the tuple's relation, and returns its corresponding userset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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