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

Function newManifestStore

cli/command/manifest/annotate.go:41–49  ·  view source on GitHub ↗

newManifestStore returns a store for local manifests

(dockerCLI command.Cli)

Source from the content-addressed store, hash-verified

39
40// newManifestStore returns a store for local manifests
41func newManifestStore(dockerCLI command.Cli) store.Store {
42 if msp, ok := dockerCLI.(manifestStoreProvider); ok {
43 // manifestStoreProvider is used in tests to provide a dummy store.
44 return msp.ManifestStore()
45 }
46
47 // TODO: support override default location from config file
48 return store.NewStore(filepath.Join(config.Dir(), "manifests"))
49}
50
51// authConfigKey is the key used to store credentials for Docker Hub. It is
52// a copy of [registry.IndexServer].

Callers 6

runPushFunction · 0.85
runInspectFunction · 0.85
createManifestListFunction · 0.85
newRmManifestListCommandFunction · 0.85
runManifestAnnotateFunction · 0.85
getManifestFunction · 0.85

Calls 1

ManifestStoreMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…