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

Method SetMetadata

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

SetMetadata updates a named metadata key with the given value.

(name string, value any)

Source from the content-addressed store, hash-verified

141
142// SetMetadata updates a named metadata key with the given value.
143func (p *Policy) SetMetadata(name string, value any) {
144 p.metadata[name] = value
145}
146
147// ClearMetadata removes a named metadata key from the policy.
148func (p *Policy) ClearMetadata(name string) {

Callers 4

PolicyTagMethod · 0.80
PolicyTagMethod · 0.80
PolicyTagMethod · 0.80
RuleTagMethod · 0.80

Calls

no outgoing calls

Tested by 2

PolicyTagMethod · 0.64
PolicyTagMethod · 0.64