Merge pull request #4203 from thaJeztah/deprecate_EncodeAuthToBase64

cli/command: deprecate EncodeAuthToBase64 (take 2)
This commit is contained in:
Sebastiaan van Stijn 2023-04-13 16:20:23 +02:00 committed by GitHub
commit 8b8ce2276b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ import (
)
// 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)
}