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

Method Output

policy/parser.go:370–375  ·  view source on GitHub ↗

Output returns the output expression, or empty expression if output is not set.

()

Source from the content-addressed store, hash-verified

368
369// Output returns the output expression, or empty expression if output is not set.
370func (m *Match) Output() ValueString {
371 if m.HasOutput() {
372 return *m.output
373 }
374 return ValueString{}
375}
376
377// HasExplanation indicates whether the explanation field is set of the match.
378func (m *Match) HasExplanation() bool {

Callers 4

exprLinesFromPolicyFunction · 0.45
MatchTagMethod · 0.45
recoverOriginalSourceFunction · 0.45
optimizeRuleMethod · 0.45

Calls 1

HasOutputMethod · 0.95

Tested by 1

exprLinesFromPolicyFunction · 0.36