()
| 122 | } |
| 123 | |
| 124 | func customPolicyParserOption() policy.ParserOption { |
| 125 | return func(p *policy.Parser) (*policy.Parser, error) { |
| 126 | p.TagVisitor = customTagHandler{TagVisitor: policy.DefaultTagVisitor()} |
| 127 | return p, nil |
| 128 | } |
| 129 | } |
| 130 | |
| 131 | func ParsePolicyVariables(metadata map[string]any) cel.EnvOption { |
| 132 | var variables []*decls.VariableDecl |
no test coverage detected