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

Method ClearMetadata

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

ClearMetadata removes a named metadata key from the policy.

(name string)

Source from the content-addressed store, hash-verified

146
147// ClearMetadata removes a named metadata key from the policy.
148func (p *Policy) ClearMetadata(name string) {
149 delete(p.metadata, name)
150}
151
152// GetExplanationOutputPolicy returns a copy of the policy, except the output of each match block
153// is replaced by the expression in the explanation field.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected