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

Method CollectMetadata

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

CollectMetadata records the source position information of a given YAML node, and returns the id associated with the source metadata which is returned in the Policy SourceInfo object.

(*yaml.Node)

Source from the content-addressed store, hash-verified

432 // CollectMetadata records the source position information of a given YAML node, and returns
433 // the id associated with the source metadata which is returned in the Policy SourceInfo object.
434 CollectMetadata(*yaml.Node) int64
435
436 // NewPolicy creates a new Policy instance with an ID associated with the YAML node.
437 NewPolicy(*yaml.Node) (*Policy, int64)

Callers 9

ParsePolicyMethod · 0.65
parseImportsMethod · 0.65
parseImportMethod · 0.65
ParseRuleMethod · 0.65
parseVariablesMethod · 0.65
parseVariableObjectMethod · 0.65
parseMatchesMethod · 0.65
parseMatchInternalMethod · 0.65
RuleTagMethod · 0.65

Implementers 1

parserImplpolicy/parser.go

Calls

no outgoing calls

Tested by

no test coverage detected