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

Method Metadata

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

Metadata returns a named metadata object if one exists within the policy.

(name string)

Source from the content-addressed store, hash-verified

88
89// Metadata returns a named metadata object if one exists within the policy.
90func (p *Policy) Metadata(name string) (any, bool) {
91 value, found := p.metadata[name]
92 return value, found
93}
94
95// MetadataKeys returns a list of metadata keys set on the policy.
96func (p *Policy) MetadataKeys() []string {

Callers 3

clonePolicyMetadataFunction · 0.80
TestCustomTagVisitorFunction · 0.80
PolicyTagMethod · 0.80

Calls

no outgoing calls

Tested by 2

TestCustomTagVisitorFunction · 0.64
PolicyTagMethod · 0.64