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

Method contextDir

cli/context/store/metadatastore.go:29–31  ·  view source on GitHub ↗
(id contextdir)

Source from the content-addressed store, hash-verified

27}
28
29func (s *metadataStore) contextDir(id contextdir) string {
30 return filepath.Join(s.root, string(id))
31}
32
33func (s *metadataStore) createOrUpdate(meta Metadata) error {
34 contextDir := s.contextDir(contextdirOf(meta.Name))

Callers 3

createOrUpdateMethod · 0.95
getByIDMethod · 0.95
removeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected