|
@@ -21,15 +21,15 @@ import (
|
|
|
"github.com/docker/distribution/digest"
|
|
|
"github.com/docker/distribution/registry/client/auth"
|
|
|
"github.com/docker/distribution/registry/client/transport"
|
|
|
- "github.com/docker/docker/api/client/lib"
|
|
|
- "github.com/docker/docker/api/types"
|
|
|
- registrytypes "github.com/docker/docker/api/types/registry"
|
|
|
"github.com/docker/docker/cliconfig"
|
|
|
"github.com/docker/docker/pkg/ansiescape"
|
|
|
"github.com/docker/docker/pkg/ioutils"
|
|
|
flag "github.com/docker/docker/pkg/mflag"
|
|
|
"github.com/docker/docker/reference"
|
|
|
"github.com/docker/docker/registry"
|
|
|
+ apiclient "github.com/docker/engine-api/client"
|
|
|
+ "github.com/docker/engine-api/types"
|
|
|
+ registrytypes "github.com/docker/engine-api/types/registry"
|
|
|
"github.com/docker/go-connections/tlsconfig"
|
|
|
"github.com/docker/notary/client"
|
|
|
"github.com/docker/notary/passphrase"
|
|
@@ -280,7 +280,7 @@ func notaryError(err error) error {
|
|
|
return err
|
|
|
}
|
|
|
|
|
|
-func (cli *DockerCli) trustedPull(repoInfo *registry.RepositoryInfo, ref registry.Reference, authConfig types.AuthConfig, requestPrivilege lib.RequestPrivilegeFunc) error {
|
|
|
+func (cli *DockerCli) trustedPull(repoInfo *registry.RepositoryInfo, ref registry.Reference, authConfig types.AuthConfig, requestPrivilege apiclient.RequestPrivilegeFunc) error {
|
|
|
var refs []target
|
|
|
|
|
|
notaryRepo, err := cli.getNotaryRepository(repoInfo, authConfig)
|
|
@@ -383,7 +383,7 @@ func targetStream(in io.Writer) (io.WriteCloser, <-chan []target) {
|
|
|
return ioutils.NewWriteCloserWrapper(out, w.Close), targetChan
|
|
|
}
|
|
|
|
|
|
-func (cli *DockerCli) trustedPush(repoInfo *registry.RepositoryInfo, tag string, authConfig types.AuthConfig, requestPrivilege lib.RequestPrivilegeFunc) error {
|
|
|
+func (cli *DockerCli) trustedPush(repoInfo *registry.RepositoryInfo, tag string, authConfig types.AuthConfig, requestPrivilege apiclient.RequestPrivilegeFunc) error {
|
|
|
streamOut, targetChan := targetStream(cli.out)
|
|
|
|
|
|
reqError := cli.imagePushPrivileged(authConfig, repoInfo.Name(), tag, streamOut, requestPrivilege)
|