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

Function NewRule

policy/parser.go:177–183  ·  view source on GitHub ↗

NewRule creates a Rule instance.

(exprID int64)

Source from the content-addressed store, hash-verified

175
176// NewRule creates a Rule instance.
177func NewRule(exprID int64) *Rule {
178 return &Rule{
179 exprID: exprID,
180 variables: []*Variable{},
181 matches: []*Match{},
182 }
183}
184
185// Rule declares a rule identifier, description, along with a set of variables and match statements.
186type Rule struct {

Callers 1

NewRuleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected