Load Cerbos policies from YAML or JSON files.
Function |
Description |
---|---|
Parse a policy from a YAML- or JSON-encoded string. | |
Read the policy and schema files in a directory and its subdirectories. | |
Read a policy from a YAML or JSON file. | |
Read a schema from a JSON file. |
Interface |
Description |
---|---|
The contents of a directory, returned by readDirectory(). | |
Options for readSchema(). | |
A JSON schema to be used to validate principal or resource attributes. |