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
5
cmd/dist/ingest.go
vendored
5
cmd/dist/ingest.go
vendored
|
@ -6,9 +6,10 @@ import (
|
|||
|
||||
contentapi "github.com/docker/containerd/api/services/content"
|
||||
"github.com/docker/containerd/content"
|
||||
contentservice "github.com/docker/containerd/services/content"
|
||||
"github.com/opencontainers/go-digest"
|
||||
"github.com/urfave/cli"
|
||||
"github.com/pkg/errors"
|
||||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
var ingestCommand = cli.Command{
|
||||
|
@ -51,7 +52,7 @@ var ingestCommand = cli.Command{
|
|||
return errors.New("must specify a transaction reference")
|
||||
}
|
||||
|
||||
ingester := content.NewIngesterFromClient(contentapi.NewContentClient(conn))
|
||||
ingester := contentservice.NewIngesterFromClient(contentapi.NewContentClient(conn))
|
||||
|
||||
// TODO(stevvooe): Allow ingest to be reentrant. Currently, we expect
|
||||
// all data to be written in a single invocation. Allow multiple writes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue