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

Function authResolver

cmd/docker-trust/trust/common.go:174–178  ·  view source on GitHub ↗

authResolver returns an auth resolver function from a [config.Provider].

(dockerCLI config.Provider)

Source from the content-addressed store, hash-verified

172
173// authResolver returns an auth resolver function from a [config.Provider].
174func 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].

Callers 6

revokeTrustFunction · 0.85
runSignImageFunction · 0.85
lookupTrustInfoFunction · 0.85
addSignerToRepoFunction · 0.85
removeSingleSignerFunction · 0.85

Calls 2

resolveAuthConfigFunction · 0.85
ConfigFileMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…