MCPcopy Create free account
hub / github.com/cel-expr/cel-go / SetSemantic

Method SetSemantic

policy/parser.go:70–75  ·  view source on GitHub ↗

SetSemantic configures the evaluation semantic for the policy.

(s SemanticType)

Source from the content-addressed store, hash-verified

68
69// SetSemantic configures the evaluation semantic for the policy.
70func (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.
78func (p *Policy) Source() *Source {

Callers 1

Calls

no outgoing calls

Tested by 1