mirror of https://github.com/docker/cli.git
Merge pull request #4196 from thaJeztah/23.0_backport_registry_fix_ResolveAuthConfig_docs
[23.0 backport] cli/command: fix documentation for ResolveAuthConfig
This commit is contained in:
commit
ad7ae5a894
|
@ -56,9 +56,12 @@ func RegistryAuthenticationPrivilegedFunc(cli Cli, index *registrytypes.IndexInf
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// ResolveAuthConfig is like registry.ResolveAuthConfig, but if using the
|
// ResolveAuthConfig returns auth-config for the given registry from the
|
||||||
// default index, it uses the default index name for the daemon's platform,
|
// credential-store. It returns an empty AuthConfig if no credentials were
|
||||||
// not the client's platform.
|
// found.
|
||||||
|
//
|
||||||
|
// It is similar to [registry.ResolveAuthConfig], but uses the credentials-
|
||||||
|
// store, instead of looking up credentials from a map.
|
||||||
func ResolveAuthConfig(_ context.Context, cli Cli, index *registrytypes.IndexInfo) types.AuthConfig {
|
func ResolveAuthConfig(_ context.Context, cli Cli, index *registrytypes.IndexInfo) types.AuthConfig {
|
||||||
configKey := index.Name
|
configKey := index.Name
|
||||||
if index.Official {
|
if index.Official {
|
||||||
|
|
Loading…
Reference in New Issue