generator

package
v1.26.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 12 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 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