mirror of https://github.com/docker/cli.git
cli/command: remove deprecated EncodeAuthToBase64
This function was deprecated in b87ed34351
,
which is part of the v24.0 release, so we can remove it from master.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
bc3f905a2a
commit
ff7111ae21
|
@ -19,13 +19,6 @@ import (
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// EncodeAuthToBase64 serializes the auth configuration as JSON base64 payload.
|
|
||||||
//
|
|
||||||
// Deprecated: use [registrytypes.EncodeAuthConfig] instead.
|
|
||||||
func EncodeAuthToBase64(authConfig registrytypes.AuthConfig) (string, error) {
|
|
||||||
return registrytypes.EncodeAuthConfig(authConfig)
|
|
||||||
}
|
|
||||||
|
|
||||||
// RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info
|
// RegistryAuthenticationPrivilegedFunc returns a RequestPrivilegeFunc from the specified registry index info
|
||||||
// for the given command.
|
// for the given command.
|
||||||
func RegistryAuthenticationPrivilegedFunc(cli Cli, index *registrytypes.IndexInfo, cmdName string) types.RequestPrivilegeFunc {
|
func RegistryAuthenticationPrivilegedFunc(cli Cli, index *registrytypes.IndexInfo, cmdName string) types.RequestPrivilegeFunc {
|
||||||
|
|
Loading…
Reference in New Issue