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

Method get

cli/context/store/metadatastore.go:63–69  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

61}
62
63func (s *metadataStore) get(name string) (Metadata, error) {
64 m, err := s.getByID(contextdirOf(name))
65 if err != nil {
66 return m, fmt.Errorf("context %q: %w", name, err)
67 }
68 return m, nil
69}
70
71func (s *metadataStore) getByID(id contextdir) (Metadata, error) {
72 fileName := filepath.Join(s.contextDir(id), metaFile)

Callers 4

TestWithEmbeddingFunction · 0.95
GetMetadataMethod · 0.45

Calls 2

getByIDMethod · 0.95
contextdirOfFunction · 0.85

Tested by 3

TestWithEmbeddingFunction · 0.76