Documentation ¶
Index ¶
- Variables
- func RegalJSONPretty(_ rego.BuiltinContext, data *ast.Term) (*ast.Term, error)
- func RegalLast(_ rego.BuiltinContext, arr *ast.Term) (*ast.Term, error)
- func RegalParseModule(_ rego.BuiltinContext, filename *ast.Term, policy *ast.Term) (*ast.Term, error)
- func TestContextBuiltins() []*tester.Builtin
Constants ¶
This section is empty.
Variables ¶
View Source
var RegalJSONPrettyMeta = ®o.Function{ Name: "regal.json_pretty", Decl: types.NewFunction( types.Args( types.Named("data", types.A).Description("data to marshal to JSON in a pretty format"), ), types.Named("output", types.S), ), }
RegalJSONPrettyMeta metadata for regal.json_pretty.
View Source
var RegalLastMeta = ®o.Function{ Name: "regal.last", Decl: types.NewFunction( types.Args( types.Named("array", types.NewArray(nil, types.A)). Description("performance optimized last index retrieval"), ), types.Named("element", types.A), ), }
RegalLastMeta metadata for regal.last.
View Source
var RegalParseModuleMeta = ®o.Function{ Name: "regal.parse_module", Decl: types.NewFunction( types.Args( types.Named("filename", types.S).Description("file name to attach to AST nodes' locations"), types.Named("rego", types.S).Description("Rego module"), ), types.Named("output", types.NewObject(nil, types.NewDynamicProperty(types.S, types.A))), ), }
RegalParseModuleMeta metadata for regal.parse_module.
Functions ¶
func RegalJSONPretty ¶
RegalJSONPretty regal.json_pretty, like json.marshal but with pretty formatting.
func RegalParseModule ¶
func RegalParseModule(_ rego.BuiltinContext, filename *ast.Term, policy *ast.Term) (*ast.Term, error)
RegalParseModule regal.parse_module, like rego.parse_module but with location data included in AST.
func TestContextBuiltins ¶
TestContextBuiltins returns the list of builtins as expected by the test runner.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.