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

Method NewPolicy

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

NewPolicy creates a new Policy instance with an ID associated with the YAML node.

(*yaml.Node)

Source from the content-addressed store, hash-verified

393
394 // NewPolicy creates a new Policy instance with an ID associated with the YAML node.
395 NewPolicy(*yaml.Node) (*Policy, int64)
396
397 // NewRule creates a new Rule instance with an ID associated with the YAML node.
398 NewRule(*yaml.Node) (*Rule, int64)

Callers 1

ParsePolicyMethod · 0.65

Implementers 1

parserImplpolicy/parser.go

Calls

no outgoing calls

Tested by

no test coverage detected