Semantic returns the evaluation semantic for the policy.
()
| 60 | |
| 61 | // Semantic returns the evaluation semantic for the policy. |
| 62 | func (p *Policy) Semantic() SemanticType { |
| 63 | if p.semantic == unspecified { |
| 64 | return firstMatch |
| 65 | } |
| 66 | return p.semantic |
| 67 | } |
| 68 | |
| 69 | // SetSemantic configures the evaluation semantic for the policy. |
| 70 | func (p *Policy) SetSemantic(s SemanticType) { |
no outgoing calls