Skip to content

Commit 0f78de7

Browse files
authored
Merge pull request #4280 from thaJeztah/remove_deprecated_EncodeAuthToBase64
cli/command: remove deprecated EncodeAuthToBase64
2 parents 3d9905f + ff7111a commit 0f78de7

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

cli/command/registry.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,6 @@ import (
1919
"github.com/pkg/errors"
2020
)
2121

22-
// EncodeAuthToBase64 serializes the auth configuration as JSON base64 payload.
23-
//
24-
// Deprecated: use [registrytypes.EncodeAuthConfig] instead.
25-
func EncodeAuthToBase64(authConfig registrytypes.AuthConfig) (string, error) {
26-
return registrytypes.EncodeAuthConfig(authConfig)
27-
}
28-
2922
// RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info
3023
// for the given command.
3124
func RegistryAuthenticationPrivilegedFunc(cli Cli, index *registrytypes.IndexInfo, cmdName string) types.RequestPrivilegeFunc {

0 commit comments

Comments
 (0)