Merge pull request #4110 from thaJeztah/remove_ElectAuthServer

cli/command: remove deprecated ElectAuthServer()
This commit is contained in:
Sebastiaan van Stijn 2023-03-22 19:30:38 +01:00 committed by GitHub
commit 14482589df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 7 deletions

View File

@ -21,13 +21,6 @@ import (
"github.com/pkg/errors"
)
// ElectAuthServer returns the default registry to use.
//
// Deprecated: use [registry.IndexServer] instead.
func ElectAuthServer(_ context.Context, _ Cli) string {
return registry.IndexServer
}
// EncodeAuthToBase64 serializes the auth configuration as JSON base64 payload
func EncodeAuthToBase64(authConfig types.AuthConfig) (string, error) {
buf, err := json.Marshal(authConfig)