Skip to main content

Module parse

Module parse 

Source
Expand description

Rule file parser: YAML and JSON → TowerRule.

Operators author rules as YAML in .yah/cloud/rules/<name>.yaml. JSON is accepted for machine-generated rules (agents, desktop). A tiny DSL authoring surface is deferred to tower-2.

Enums§

ParseError
Error produced when a rule file cannot be parsed.

Functions§

parse_rule_json
Parse a JSON rule definition into a TowerRule.
parse_rule_yaml
Parse a YAML rule definition into a TowerRule.