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

Struct CompiledRule

policy/compiler.go:32–37  ·  view source on GitHub ↗

CompiledRule represents the variables and match blocks associated with a rule block.

Source from the content-addressed store, hash-verified

30
31// CompiledRule represents the variables and match blocks associated with a rule block.
32type CompiledRule struct {
33 exprID int64
34 id *ValueString
35 variables []*CompiledVariable
36 matches []*CompiledMatch
37}
38
39// SourceID returns the source metadata identifier associated with the compiled rule.
40func (r *CompiledRule) SourceID() int64 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected