newManifestStore returns a store for local manifests
(dockerCLI command.Cli)
| 39 | |
| 40 | // newManifestStore returns a store for local manifests |
| 41 | func 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]. |
no test coverage detected
searching dependent graphs…