generator

package
v1.39.1 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

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 added in v1.14.0

func GenerateCaveatSource(caveat *core.CaveatDefinition) (string, bool, error)

GenerateCaveatSource generates a DSL view of the given caveat definition.

func GenerateRelationSource added in v1.31.0

func GenerateRelationSource(relation *core.Relation) (string, error)

GenerateRelationSource generates a DSL view of the given relation definition.

func GenerateSchema added in v1.14.0

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.

Jump to

Keyboard shortcuts

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