Skip to main content

Module parser

Module parser 

Source

Structs§

AuthorizationYaml
Nested authorization: block. Both sub-lists are optional and default to empty; each is compiled the same way as the flat pre_invocation: / post_invocation: forms.
CompiledConfig
Output of compile_config — the routes that have APL blocks plus the registry of plugin declarations from the root plugins: block.
ConfigYaml
Top-level config — only the bits step 5a understands.
RouteYaml

Enums§

ParseError

Functions§

compile_config
Compile a YAML config into a CompiledConfig (routes + plugin registry).
compile_policy_block_value
Compile a single APL policy block from a serde_yaml::Value whose shape is the body of a route’s apl: block:
parse_pipeline
Parse a pipe-chain string into a Pipeline.
parse_predicate
Parse a predicate string into the IR. Public for tests + step-5b use.
parse_rule
Parse a single rule line into a Rule.
parse_step
Parse a single YAML entry from a pre_invocation / post_invocation list.