MCPcopy Create free account
hub / github.com/docker/cli / GetMetadata

Method GetMetadata

cli/context/store/store.go:154–156  ·  view source on GitHub ↗

GetMetadata returns the metadata for the context with the given name. It returns an errdefs.ErrNotFound if the context was not found.

(name string)

Source from the content-addressed store, hash-verified

152// GetMetadata returns the metadata for the context with the given name.
153// It returns an errdefs.ErrNotFound if the context was not found.
154func (s *ContextStore) GetMetadata(name string) (Metadata, error) {
155 return s.meta.get(name)
156}
157
158// ResetTLSMaterial removes TLS data for all endpoints in the context and replaces
159// it with the new data.

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected