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 RegisterBuiltin ¶
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.