SetSemantic configures the evaluation semantic for the policy.
(s SemanticType)
| 68 | |
| 69 | // SetSemantic configures the evaluation semantic for the policy. |
| 70 | func (p *Policy) SetSemantic(s SemanticType) { |
| 71 | if p.semantic != unspecified && p.semantic != s { |
| 72 | return |
| 73 | } |
| 74 | p.semantic = s |
| 75 | } |
| 76 | |
| 77 | // Source returns the policy file contents as a CEL source object. |
| 78 | func (p *Policy) Source() *Source { |
no outgoing calls