Skip to content

Commit d8089e7

Browse files
authored
Merge pull request #6184 from Benehiko/deprecate-prompt-privilege-func
cli/command: deprecate RegistryAuthenticationPrivilegedFunc
2 parents 6bcc9ce + 29263e8 commit d8089e7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/command/registry.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ const authConfigKey = "https://index.docker.io/v1/"
3636

3737
// RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info
3838
// for the given command to prompt the user for username and password.
39+
//
40+
// Deprecated: this function is no longer used and will be removed in the next release.
3941
func RegistryAuthenticationPrivilegedFunc(cli Cli, index *registrytypes.IndexInfo, cmdName string) registrytypes.RequestAuthConfig {
4042
configKey := getAuthConfigKey(index.Name)
4143
isDefaultRegistry := configKey == authConfigKey || index.Official

0 commit comments

Comments
 (0)