Documentation
¶
Overview ¶
Package stdlib contains standard library functions exposed to Alloy configs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DeprecatedIdentifiers = map[string]any{ "env": os.Getenv, "nonsensitive": nonSensitive, "concat": concat, "json_decode": jsonDecode, "yaml_decode": yamlDecode, "base64_decode": base64Decode, "format": fmt.Sprintf, "join": strings.Join, "replace": strings.ReplaceAll, "split": strings.Split, "to_lower": strings.ToLower, "to_upper": strings.ToUpper, "trim": strings.Trim, "trim_prefix": strings.TrimPrefix, "trim_suffix": strings.TrimSuffix, "trim_space": strings.TrimSpace, }
DeprecatedIdentifiers are deprecated in favour of the namespaced ones.
View Source
var ExperimentalIdentifiers = map[string]bool{ "array.combine_maps": true, "array.group_by": true, }
ExperimentalIdentifiers contains the full name (namespace + identifier's name) of stdlib identifiers that are considered "experimental".
View Source
var Identifiers = map[string]any{
"constants": constants,
"coalesce": coalesce,
"json_path": jsonPath,
"sys": sys,
"convert": convert,
"array": array,
"encoding": encoding,
"string": str,
"file": file,
}
Identifiers holds a list of stdlib identifiers by name. All interface{} values are Alloy-compatible values.
Function identifiers are Go functions with exactly one non-error return value, with an optionally supported error return value as the second return value.
View Source
var Version string
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.