Rename execution service to tasks
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -12,7 +12,7 @@ import (
|
||||
"github.com/containerd/console"
|
||||
"github.com/containerd/containerd"
|
||||
containersapi "github.com/containerd/containerd/api/services/containers"
|
||||
"github.com/containerd/containerd/api/services/execution"
|
||||
"github.com/containerd/containerd/api/services/tasks"
|
||||
"github.com/containerd/containerd/log"
|
||||
"github.com/containerd/containerd/mount"
|
||||
"github.com/containerd/containerd/windows"
|
||||
@@ -160,8 +160,8 @@ func newCreateContainerRequest(context *cli.Context, id, snapshot, image string,
|
||||
return create, nil
|
||||
}
|
||||
|
||||
func newCreateTaskRequest(context *cli.Context, id, tmpDir string, checkpoint *ocispec.Descriptor, mounts []mount.Mount) (*execution.CreateTaskRequest, error) {
|
||||
create := &execution.CreateTaskRequest{
|
||||
func newCreateTaskRequest(context *cli.Context, id, tmpDir string, checkpoint *ocispec.Descriptor, mounts []mount.Mount) (*tasks.CreateTaskRequest, error) {
|
||||
create := &tasks.CreateTaskRequest{
|
||||
ContainerID: id,
|
||||
Terminal: context.Bool("tty"),
|
||||
Stdin: fmt.Sprintf(`%s\ctr-%s-stdin`, pipeRoot, id),
|
||||
|
||||
@@ -16,10 +16,10 @@ import (
|
||||
contentapi "github.com/containerd/containerd/api/services/content"
|
||||
diffapi "github.com/containerd/containerd/api/services/diff"
|
||||
"github.com/containerd/containerd/api/services/events"
|
||||
"github.com/containerd/containerd/api/services/execution"
|
||||
imagesapi "github.com/containerd/containerd/api/services/images"
|
||||
namespacesapi "github.com/containerd/containerd/api/services/namespaces"
|
||||
snapshotapi "github.com/containerd/containerd/api/services/snapshot"
|
||||
"github.com/containerd/containerd/api/services/tasks"
|
||||
versionservice "github.com/containerd/containerd/api/services/version"
|
||||
"github.com/containerd/containerd/content"
|
||||
"github.com/containerd/containerd/images"
|
||||
@@ -81,12 +81,12 @@ func getContainersService(context *cli.Context) (containersapi.ContainersClient,
|
||||
return containersapi.NewContainersClient(conn), nil
|
||||
}
|
||||
|
||||
func getTasksService(context *cli.Context) (execution.TasksClient, error) {
|
||||
func getTasksService(context *cli.Context) (tasks.TasksClient, error) {
|
||||
conn, err := getGRPCConnection(context)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return execution.NewTasksClient(conn), nil
|
||||
return tasks.NewTasksClient(conn), nil
|
||||
}
|
||||
|
||||
func getEventsService(context *cli.Context) (events.EventsClient, error) {
|
||||
|
||||
Reference in New Issue
Block a user