Skip to content

Commit 7c8c267

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 <18033717+Benehiko@users.noreply.github.com>
1 parent 2b56b66 commit 7c8c267

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)