authResolver returns an auth resolver function from a [config.Provider].
(dockerCLI config.Provider)
| 172 | |
| 173 | // authResolver returns an auth resolver function from a [config.Provider]. |
| 174 | func authResolver(dockerCLI config.Provider) func(ctx context.Context, index *registrytypes.IndexInfo) registrytypes.AuthConfig { |
| 175 | return func(ctx context.Context, index *registrytypes.IndexInfo) registrytypes.AuthConfig { |
| 176 | return resolveAuthConfig(dockerCLI.ConfigFile(), index) |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | // authConfigKey is the key used to store credentials for Docker Hub. It is |
| 181 | // a copy of [registry.IndexServer]. |
no test coverage detected
searching dependent graphs…