|
@@ -8,7 +8,7 @@ import (
|
|
|
"github.com/containerd/containerd/platforms"
|
|
|
"github.com/docker/distribution"
|
|
|
"github.com/docker/distribution/reference"
|
|
|
- "github.com/docker/docker/api/types"
|
|
|
+ "github.com/docker/docker/api/types/registry"
|
|
|
"github.com/docker/docker/errdefs"
|
|
|
"github.com/opencontainers/go-digest"
|
|
|
specs "github.com/opencontainers/image-spec/specs-go/v1"
|
|
@@ -16,7 +16,7 @@ import (
|
|
|
|
|
|
// PullImage initiates a pull operation. image is the repository name to pull, and
|
|
|
// tagOrDigest may be either empty, or indicate a specific tag or digest to pull.
|
|
|
-func (i *ImageService) PullImage(ctx context.Context, image, tagOrDigest string, platform *specs.Platform, metaHeaders map[string][]string, authConfig *types.AuthConfig, outStream io.Writer) error {
|
|
|
+func (i *ImageService) PullImage(ctx context.Context, image, tagOrDigest string, platform *specs.Platform, metaHeaders map[string][]string, authConfig *registry.AuthConfig, outStream io.Writer) error {
|
|
|
var opts []containerd.RemoteOpt
|
|
|
if platform != nil {
|
|
|
opts = append(opts, containerd.WithPlatform(platforms.Format(*platform)))
|
|
@@ -46,6 +46,6 @@ func (i *ImageService) PullImage(ctx context.Context, image, tagOrDigest string,
|
|
|
}
|
|
|
|
|
|
// GetRepository returns a repository from the registry.
|
|
|
-func (i *ImageService) GetRepository(ctx context.Context, ref reference.Named, authConfig *types.AuthConfig) (distribution.Repository, error) {
|
|
|
+func (i *ImageService) GetRepository(ctx context.Context, ref reference.Named, authConfig *registry.AuthConfig) (distribution.Repository, error) {
|
|
|
panic("not implemented")
|
|
|
}
|