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.
Click to show internal directories.
Click to hide internal directories.