MCPcopy
hub / github.com/grafana/dskit / Has

Method Has

tenant/metadata.go:210–213  ·  view source on GitHub ↗

Has checks whether a specific metadata key is present.

(key string)

Source from the content-addressed store, hash-verified

208
209// Has checks whether a specific metadata key is present.
210func (m Metadata) Has(key string) bool {
211 _, ok := m.Get(key)
212 return ok
213}
214
215// Get the value set for key.
216func (m Metadata) Get(key string) (string, bool) {

Callers 1

TestMetadata_HasFunction · 0.95

Calls 1

GetMethod · 0.95

Tested by 1

TestMetadata_HasFunction · 0.76