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

Method Condition

policy/compiler.go:148–150  ·  view source on GitHub ↗

Condition returns the compiled predicate expression which must evaluate to true before the output or subrule is entered.

()

Source from the content-addressed store, hash-verified

146// Condition returns the compiled predicate expression which must evaluate to true before the output
147// or subrule is entered.
148func (m *CompiledMatch) Condition() *cel.Ast {
149 return m.cond
150}
151
152// ConditionIsLiteral indicates whether the condition for the match is a literal with a given value.
153func (m *CompiledMatch) ConditionIsLiteral(val ref.Val) bool {

Callers 1

compileRuleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected