Skip to content

Commit d28f534

Browse files
committed
cli/command: remove usages of RegistryAuthenticationPrivilegedFunc
This patch deprecates the unused `RegistryAuthenticationPrivilegedFunc`. The function would prompt the user when the registry returns a 403 after trying the initial auth value set in `RegistryAuth`. Signed-off-by: Alano Terblanche <[email protected]>
1 parent 578ccf6 commit d28f534

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)