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

Function NewRule

policy/parser.go:195–202  ·  view source on GitHub ↗

NewRule creates a Rule instance.

(exprID int64)

Source from the content-addressed store, hash-verified

193
194// NewRule creates a Rule instance.
195func NewRule(exprID int64) *Rule {
196 return &Rule{
197 exprID: exprID,
198 variables: []*Variable{},
199 matches: []*Match{},
200 semantic: unspecified,
201 }
202}
203
204// Rule declares a rule identifier, description, along with a set of variables and match statements.
205type Rule struct {

Callers 2

NewRuleMethod · 0.85

Calls

no outgoing calls

Tested by 1