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

Method SetMetadata

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

123
124// SetMetadata updates a named metadata key with the given value.
125func (p *Policy) SetMetadata(name string, value any) {
126 p.metadata[name] = value
127}
128
129// ClearMetadata removes a named metadata key from the policy.
130func (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