Documentation
¶
Overview ¶
Package parser owns the grammars used by Atmos configuration functions.
It deliberately parses only function arguments. YAML parsing, template rendering, and expression evaluation remain the responsibility of their existing layers. Callers receive typed argument values and can apply execution-context defaults.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IncludeArgs ¶
IncludeArgs contains an include target and its optional YQ query.
func ParseInclude ¶
func ParseInclude(input string) (IncludeArgs, error)
ParseInclude parses `path [query]` and preserves whitespace in the query.
type RandomArgs ¶
type RandomArgs struct {
Values []string
}
RandomArgs contains the optional minimum and maximum random values as source text.
func ParseRandom ¶
func ParseRandom(input string) (RandomArgs, error)
ParseRandom parses zero, one, or two integer source values.
type StoreArgs ¶
type StoreArgs struct {
Store string
Stack string
Component string
Key string
Default *string
Query string
}
StoreArgs contains the parsed !store arguments.
func ParseStore ¶
ParseStore parses !store arguments and their optional default/query clauses.
type StoreGetArgs ¶
StoreGetArgs contains the parsed !store.get arguments.
func ParseStoreGet ¶
func ParseStoreGet(input string) (StoreGetArgs, error)
ParseStoreGet parses !store.get arguments and optional default/query clauses.
type TerraformArgs ¶
TerraformArgs is the parsed form of `component [stack] expression`. An empty Stack means the caller should use the execution-context stack.
func ParseTerraform ¶
func ParseTerraform(input string) (TerraformArgs, error)
ParseTerraform parses `component [stack] expression`.