SetRule configures the policy rule entry point.
(r *Rule)
| 118 | |
| 119 | // SetRule configures the policy rule entry point. |
| 120 | func (p *Policy) SetRule(r *Rule) { |
| 121 | p.rule = r |
| 122 | } |
| 123 | |
| 124 | // SetMetadata updates a named metadata key with the given value. |
| 125 | func (p *Policy) SetMetadata(name string, value any) { |