SetRule configures the policy rule entry point.
(r *Rule)
| 136 | |
| 137 | // SetRule configures the policy rule entry point. |
| 138 | func (p *Policy) SetRule(r *Rule) { |
| 139 | p.rule = r |
| 140 | } |
| 141 | |
| 142 | // SetMetadata updates a named metadata key with the given value. |
| 143 | func (p *Policy) SetMetadata(name string, value any) { |