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

Method CollectMetadata

policy/parser.go:392–392  ·  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

390 // CollectMetadata records the source position information of a given YAML node, and returns
391 // the id associated with the source metadata which is returned in the Policy SourceInfo object.
392 CollectMetadata(*yaml.Node) int64
393
394 // NewPolicy creates a new Policy instance with an ID associated with the YAML node.
395 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
ParseMatchMethod · 0.65
RuleTagMethod · 0.65

Implementers 1

parserImplpolicy/parser.go

Calls

no outgoing calls

Tested by

no test coverage detected