Versions in this module Expand all Collapse all v3 v3.0.1 Nov 3, 2022 Changes in this version + func ParseRule(options RuleOptions) (*corazawaf.Rule, error) + type DirectiveOptions struct + Config types.Config + Datasets map[string][]string + Opts string + Path []string + WAF *corazawaf.WAF + type Parser struct + func NewParser(waf *corazawaf.WAF) *Parser + func (p *Parser) FromFile(profilePath string) error + func (p *Parser) FromString(data string) error + func (p *Parser) SetRoot(root fs.FS) + type RuleOptions struct + Config types.Config + Data string + Directive string + WAF *corazawaf.WAF + WithOperator bool + type RuleParser struct + func (p *RuleParser) ParseActions(actions string) error + func (p *RuleParser) ParseDefaultActions(actions string) error + func (p *RuleParser) ParseOperator(operator string) error + func (p *RuleParser) ParseVariables(vars string) error + func (p *RuleParser) Rule() *corazawaf.Rule