builtins

package
v1.46.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 51 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuiltinMap map[string]*ast.Builtin

BuiltinMap provides a convenient mapping of built-in names to built-in definitions.

View Source
var Builtins []*ast.Builtin

Builtins is the registry of built-in functions supported by EOPA. Call RegisterBuiltin to add a new built-in.

View Source
var DefaultBuiltins = [...]*ast.Builtin{

	dynamoDBGet,
	dynamoDBQuery,
	mongoDBFind,
	mongoDBFindOne,
	regoEval,
	regoCompile,
	sqlSend,
	vaultSend,
	neo4jQuery,
	redisQuery,
}

DefaultBuiltins is the registry of built-in functions supported in EOPA by default. When adding a new built-in function to EOPA, update this list.

View Source
var (
	MongoDBClients = mongoDBClientPool{/* contains filtered or unexported fields */}
)

Functions

func Init

func Init()

func RegisterBuiltin

func RegisterBuiltin(b *ast.Builtin)

RegisterBuiltin adds a new built-in function to the registry.

func RegisterBuiltinFunc

func RegisterBuiltinFunc(name string, f topdown.BuiltinFunc)

func ToSnakeCase

func ToSnakeCase(v interface{}) interface{}

ToSnakeCase converts the top level map keys to snake case enough for JSON decoder, removing underscores. Since JSON decoding prefers case matching but finds noncase matching fields, this is enough.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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