Merge pull request #6184 from Benehiko/deprecate-prompt-privilege-func

cli/command: deprecate RegistryAuthenticationPrivilegedFunc
This commit is contained in:
Sebastiaan van Stijn
2025-07-16 13:26:12 +02:00
committed by GitHub
+2
View File
@@ -36,6 +36,8 @@ const authConfigKey = "https://index.docker.io/v1/"
// RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info
// for the given command to prompt the user for username and password.
//
// Deprecated: this function is no longer used and will be removed in the next release.
func RegistryAuthenticationPrivilegedFunc(cli Cli, index *registrytypes.IndexInfo, cmdName string) registrytypes.RequestAuthConfig {
configKey := getAuthConfigKey(index.Name)
isDefaultRegistry := configKey == authConfigKey || index.Official