Make api a Go sub-module
Allow the api to stay at the same v1 go package name and keep using a 1.x version number. This indicates the API is still at 1.x and allows sharing proto types with containerd 1.6 and 1.7 releases. Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
@@ -24,10 +24,10 @@ import (
|
||||
"google.golang.org/grpc"
|
||||
"google.golang.org/protobuf/types/known/emptypb"
|
||||
|
||||
v2 "github.com/containerd/containerd/v2/api/runtime/task/v2"
|
||||
v3 "github.com/containerd/containerd/v2/api/runtime/task/v3"
|
||||
v2 "github.com/containerd/containerd/api/runtime/task/v2"
|
||||
v3 "github.com/containerd/containerd/api/runtime/task/v3"
|
||||
|
||||
api "github.com/containerd/containerd/v2/api/runtime/task/v3" // Current version used by TaskServiceClient
|
||||
api "github.com/containerd/containerd/api/runtime/task/v3" // Current version used by TaskServiceClient
|
||||
)
|
||||
|
||||
// TaskServiceClient exposes a client interface to shims, which aims to hide
|
||||
|
||||
Reference in New Issue
Block a user