Skip to content

Commit 00d4910

Browse files
authored
Merge pull request #2387 from ehazlett/runtime-shim
Move runtime/linux/shim -> runtime/shim
2 parents 437e90a + 821c8ea commit 00d4910

21 files changed

+92
-92
lines changed

Protobuild.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ plugins = ["fieldpath"] # disable grpc for this package
3737

3838
[[overrides]]
3939
# enable ttrpc and disable fieldpath and grpc for the shim
40-
prefixes = ["github.com/containerd/containerd/runtime/linux/shim/v1"]
40+
prefixes = ["github.com/containerd/containerd/runtime/shim/v1"]
4141
plugins = ["ttrpc"]
4242

4343
# Aggregrate the API descriptors to lock down API changes.

cmd/containerd-shim/main_unix.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ import (
3737
"github.com/containerd/containerd/events"
3838
"github.com/containerd/containerd/namespaces"
3939
"github.com/containerd/containerd/runtime/linux/proc"
40-
"github.com/containerd/containerd/runtime/linux/shim"
41-
shimapi "github.com/containerd/containerd/runtime/linux/shim/v1"
40+
"github.com/containerd/containerd/runtime/shim"
41+
shimapi "github.com/containerd/containerd/runtime/shim/v1"
4242
"github.com/containerd/typeurl"
4343
ptypes "github.com/gogo/protobuf/types"
4444
"github.com/pkg/errors"

cmd/containerd-shim/shim_darwin.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"os"
2323
"os/signal"
2424

25-
"github.com/containerd/containerd/runtime/linux/shim"
25+
"github.com/containerd/containerd/runtime/shim"
2626
runc "github.com/containerd/go-runc"
2727
"github.com/stevvooe/ttrpc"
2828
)

cmd/containerd-shim/shim_linux.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"os"
2121
"os/signal"
2222

23-
"github.com/containerd/containerd/runtime/linux/shim"
23+
"github.com/containerd/containerd/runtime/shim"
2424
runc "github.com/containerd/go-runc"
2525
"github.com/opencontainers/runc/libcontainer/system"
2626
"github.com/stevvooe/ttrpc"

cmd/containerd-shim/shim_unix.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
"os"
2323
"os/signal"
2424

25-
"github.com/containerd/containerd/runtime/linux/shim"
25+
"github.com/containerd/containerd/runtime/shim"
2626
runc "github.com/containerd/go-runc"
2727
"github.com/stevvooe/ttrpc"
2828
)

cmd/ctr/commands/shim/shim.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626

2727
"github.com/containerd/console"
2828
"github.com/containerd/containerd/cmd/ctr/commands"
29-
shim "github.com/containerd/containerd/runtime/linux/shim/v1"
29+
shim "github.com/containerd/containerd/runtime/shim/v1"
3030
"github.com/containerd/typeurl"
3131
ptypes "github.com/gogo/protobuf/types"
3232
"github.com/opencontainers/runtime-spec/specs-go"

runtime/linux/bundle.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import (
2626

2727
"github.com/containerd/containerd/events/exchange"
2828
"github.com/containerd/containerd/runtime/linux/runctypes"
29-
"github.com/containerd/containerd/runtime/linux/shim"
30-
"github.com/containerd/containerd/runtime/linux/shim/client"
29+
"github.com/containerd/containerd/runtime/shim"
30+
"github.com/containerd/containerd/runtime/shim/client"
3131
"github.com/pkg/errors"
3232
)
3333

runtime/linux/process.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
"github.com/containerd/containerd/api/types/task"
2626
"github.com/containerd/containerd/errdefs"
2727
"github.com/containerd/containerd/runtime"
28-
shim "github.com/containerd/containerd/runtime/linux/shim/v1"
28+
shim "github.com/containerd/containerd/runtime/shim/v1"
2929
"github.com/pkg/errors"
3030
"github.com/stevvooe/ttrpc"
3131
)

runtime/linux/runtime.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import (
4242
"github.com/containerd/containerd/runtime"
4343
"github.com/containerd/containerd/runtime/linux/proc"
4444
"github.com/containerd/containerd/runtime/linux/runctypes"
45-
shim "github.com/containerd/containerd/runtime/linux/shim/v1"
45+
shim "github.com/containerd/containerd/runtime/shim/v1"
4646
runc "github.com/containerd/go-runc"
4747
"github.com/containerd/typeurl"
4848
ptypes "github.com/gogo/protobuf/types"

runtime/linux/task.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ import (
2929
"github.com/containerd/containerd/events/exchange"
3030
"github.com/containerd/containerd/identifiers"
3131
"github.com/containerd/containerd/runtime"
32-
"github.com/containerd/containerd/runtime/linux/shim/client"
33-
shim "github.com/containerd/containerd/runtime/linux/shim/v1"
32+
"github.com/containerd/containerd/runtime/shim/client"
33+
shim "github.com/containerd/containerd/runtime/shim/v1"
3434
runc "github.com/containerd/go-runc"
3535
"github.com/gogo/protobuf/types"
3636
"github.com/pkg/errors"

runtime/linux/shim/client/client.go runtime/shim/client/client.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ import (
3737

3838
"github.com/containerd/containerd/events"
3939
"github.com/containerd/containerd/log"
40-
"github.com/containerd/containerd/runtime/linux/shim"
41-
shimapi "github.com/containerd/containerd/runtime/linux/shim/v1"
40+
"github.com/containerd/containerd/runtime/shim"
41+
shimapi "github.com/containerd/containerd/runtime/shim/v1"
4242
"github.com/containerd/containerd/sys"
4343
ptypes "github.com/gogo/protobuf/types"
4444
)
File renamed without changes.
File renamed without changes.

runtime/linux/shim/local.go runtime/shim/local.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
"path/filepath"
2424

2525
"github.com/containerd/containerd/mount"
26-
shimapi "github.com/containerd/containerd/runtime/linux/shim/v1"
26+
shimapi "github.com/containerd/containerd/runtime/shim/v1"
2727
ptypes "github.com/gogo/protobuf/types"
2828
)
2929

File renamed without changes.

runtime/linux/shim/service.go runtime/shim/service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434
"github.com/containerd/containerd/runtime"
3535
"github.com/containerd/containerd/runtime/linux/proc"
3636
"github.com/containerd/containerd/runtime/linux/runctypes"
37-
shimapi "github.com/containerd/containerd/runtime/linux/shim/v1"
37+
shimapi "github.com/containerd/containerd/runtime/shim/v1"
3838
runc "github.com/containerd/go-runc"
3939
"github.com/containerd/typeurl"
4040
ptypes "github.com/gogo/protobuf/types"
File renamed without changes.
File renamed without changes.
File renamed without changes.

runtime/linux/shim/v1/shim.pb.go runtime/shim/v1/shim.pb.go

+74-74
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

runtime/linux/shim/v1/shim.proto runtime/shim/v1/shim.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import "google/protobuf/timestamp.proto";
99
import "github.com/containerd/containerd/api/types/mount.proto";
1010
import "github.com/containerd/containerd/api/types/task/task.proto";
1111

12-
option go_package = "github.com/containerd/containerd/runtime/linux/shim/v1;shim";
12+
option go_package = "github.com/containerd/containerd/runtime/shim/v1;shim";
1313

1414
// Shim service is launched for each container and is responsible for owning the IO
1515
// for the container and its additional processes. The shim is also the parent of

0 commit comments

Comments
 (0)