services/content: move service client into package
Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
parent
4793f968e5
commit
5da4e1d0d2
10 changed files with 136 additions and 102 deletions
4
cmd/dist/get.go
vendored
4
cmd/dist/get.go
vendored
|
@ -5,7 +5,7 @@ import (
|
|||
"os"
|
||||
|
||||
contentapi "github.com/docker/containerd/api/services/content"
|
||||
"github.com/docker/containerd/content"
|
||||
contentservice "github.com/docker/containerd/services/content"
|
||||
digest "github.com/opencontainers/go-digest"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
@ -33,7 +33,7 @@ Output paths can be used to directly access blobs on disk.`,
|
|||
return err
|
||||
}
|
||||
|
||||
cs := content.NewProviderFromClient(contentapi.NewContentClient(conn))
|
||||
cs := contentservice.NewProviderFromClient(contentapi.NewContentClient(conn))
|
||||
|
||||
rc, err := cs.Reader(ctx, dgst)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue