getAuthConfigKey returns the canonical key used to look up stored registry credentials for the given registry domain. For the official Docker Hub registry ("docker.io"), credentials are stored under the historical full index address ("https://index.docker.io/v1/"). For all other registries, the in
(domainName string)
| 42 | // |
| 43 | // [registry.GetAuthConfigKey]: https://pkg.go.dev/github.com/docker/docker@v28.5.1+incompatible/registry#GetAuthConfigKey |
| 44 | func getAuthConfigKey(domainName string) string { |
| 45 | if domainName == "docker.io" || domainName == "index.docker.io" { |
| 46 | return authConfigKey |
| 47 | } |
| 48 | return domainName |
| 49 | } |
| 50 | |
| 51 | // ConfigFile ~/.docker/config.json file info |
| 52 | type ConfigFile struct { |
no outgoing calls
no test coverage detected
searching dependent graphs…