Documentation ¶
Index ¶
- Constants
- func GenerateCaveatSource(caveat *core.CaveatDefinition) (string, bool, error)
- func GenerateRelationSource(relation *core.Relation) (string, error)
- func GenerateSchema(definitions []compiler.SchemaDefinition) (string, bool, error)
- func GenerateSource(namespace *core.NamespaceDefinition) (string, bool, error)
Constants ¶
View Source
const Ellipsis = "..."
Ellipsis is the relation name for terminal subjects.
View Source
const MaxSingleLineCommentLength = 70 // 80 - the comment parts and some padding
MaxSingleLineCommentLength sets the maximum length for a comment to made single line.
Variables ¶
This section is empty.
Functions ¶
func GenerateCaveatSource ¶
func GenerateCaveatSource(caveat *core.CaveatDefinition) (string, bool, error)
GenerateCaveatSource generates a DSL view of the given caveat definition.
func GenerateRelationSource ¶
GenerateRelationSource generates a DSL view of the given relation definition.
func GenerateSchema ¶
func GenerateSchema(definitions []compiler.SchemaDefinition) (string, bool, error)
GenerateSchema generates a DSL view of the given schema.
func GenerateSource ¶
func GenerateSource(namespace *core.NamespaceDefinition) (string, bool, error)
GenerateSource generates a DSL view of the given namespace definition.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.