From b87ed343510b1cf71d1aba02294f52268f754386 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 13 Apr 2023 14:29:59 +0200 Subject: [PATCH] cli/command: deprecate EncodeAuthToBase64 Deprecate this function in favor of the implementation in the API types, considering that to be the canonical implementation. Signed-off-by: Sebastiaan van Stijn --- cli/command/registry.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cli/command/registry.go b/cli/command/registry.go index 41cc951b93..9099367225 100644 --- a/cli/command/registry.go +++ b/cli/command/registry.go @@ -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) }