|
@@ -5,13 +5,12 @@ import (
|
|
|
"encoding/json"
|
|
|
"net/url"
|
|
|
|
|
|
- "github.com/docker/docker/api/types"
|
|
|
"github.com/docker/docker/api/types/registry"
|
|
|
)
|
|
|
|
|
|
// RegistryLogin authenticates the docker server with a given docker registry.
|
|
|
// It returns unauthorizedError when the authentication fails.
|
|
|
-func (cli *Client) RegistryLogin(ctx context.Context, auth types.AuthConfig) (registry.AuthenticateOKBody, error) {
|
|
|
+func (cli *Client) RegistryLogin(ctx context.Context, auth registry.AuthConfig) (registry.AuthenticateOKBody, error) {
|
|
|
resp, err := cli.post(ctx, "/auth", url.Values{}, auth, nil)
|
|
|
defer ensureReaderClosed(resp)
|
|
|
|