images: move image package to images
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
604af9cd46
commit
39da6ff879
10 changed files with 28 additions and 28 deletions
8
cmd/dist/fetch.go
vendored
8
cmd/dist/fetch.go
vendored
|
@ -10,7 +10,7 @@ import (
|
|||
"time"
|
||||
|
||||
contentapi "github.com/docker/containerd/api/services/content"
|
||||
"github.com/docker/containerd/image"
|
||||
"github.com/docker/containerd/images"
|
||||
"github.com/docker/containerd/log"
|
||||
"github.com/docker/containerd/progress"
|
||||
"github.com/docker/containerd/remotes"
|
||||
|
@ -79,13 +79,13 @@ Most of this is experimental and there are few leaps to make this work.`,
|
|||
log.G(ctx).WithField("image", name).Debug("fetching")
|
||||
close(resolved)
|
||||
|
||||
return image.Dispatch(ctx,
|
||||
image.Handlers(image.HandlerFunc(func(ctx context.Context, desc ocispec.Descriptor) ([]ocispec.Descriptor, error) {
|
||||
return images.Dispatch(ctx,
|
||||
images.Handlers(images.HandlerFunc(func(ctx context.Context, desc ocispec.Descriptor) ([]ocispec.Descriptor, error) {
|
||||
ongoing.add(remotes.MakeRefKey(ctx, desc))
|
||||
return nil, nil
|
||||
}),
|
||||
remotes.FetchHandler(ingester, fetcher),
|
||||
image.ChildrenHandler(provider),
|
||||
images.ChildrenHandler(provider),
|
||||
),
|
||||
desc)
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue