Skip to content

Commit b87ed34

Browse files
committed
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 <github@gone.nl>
1 parent c25115e commit b87ed34

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

2222
// EncodeAuthToBase64 serializes the auth configuration as JSON base64 payload.
23+
//
24+
// Deprecated: use [registrytypes.EncodeAuthConfig] instead.
2325
func EncodeAuthToBase64(authConfig registrytypes.AuthConfig) (string, error) {
2426
return registrytypes.EncodeAuthConfig(authConfig)
2527
}

0 commit comments

Comments
 (0)