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

Method Rule

policy/parser.go:354–356  ·  view source on GitHub ↗

Rule returns the rule value, or nil if the rule is not set.

()

Source from the content-addressed store, hash-verified

352
353// Rule returns the rule value, or nil if the rule is not set.
354func (m *Match) Rule() *Rule {
355 return m.rule
356}
357
358// SetCondition sets the CEL condition for the match.
359func (m *Match) SetCondition(c ValueString) {

Callers 4

exprLinesFromPolicyFunction · 0.45
CompileRuleFunction · 0.45
compileRuleMethod · 0.45

Calls

no outgoing calls

Tested by 2

exprLinesFromPolicyFunction · 0.36