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:
@@ -51,7 +51,7 @@ file {
|
||||
proto3_optional: true
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types;types"
|
||||
go_package: "github.com/containerd/containerd/api/types;types"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -166,7 +166,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/events;events"
|
||||
go_package: "github.com/containerd/containerd/api/events;events"
|
||||
63300: 1
|
||||
}
|
||||
syntax: "proto3"
|
||||
@@ -186,7 +186,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/events;events"
|
||||
go_package: "github.com/containerd/containerd/api/events;events"
|
||||
63300: 1
|
||||
}
|
||||
syntax: "proto3"
|
||||
@@ -282,7 +282,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/events;events"
|
||||
go_package: "github.com/containerd/containerd/api/events;events"
|
||||
63300: 1
|
||||
}
|
||||
syntax: "proto3"
|
||||
@@ -378,7 +378,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/events;events"
|
||||
go_package: "github.com/containerd/containerd/api/events;events"
|
||||
63300: 1
|
||||
}
|
||||
syntax: "proto3"
|
||||
@@ -464,7 +464,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/events;events"
|
||||
go_package: "github.com/containerd/containerd/api/events;events"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -538,7 +538,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/events;events"
|
||||
go_package: "github.com/containerd/containerd/api/events;events"
|
||||
63300: 1
|
||||
}
|
||||
syntax: "proto3"
|
||||
@@ -578,7 +578,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types;types"
|
||||
go_package: "github.com/containerd/containerd/api/types;types"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -850,7 +850,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/events;events"
|
||||
go_package: "github.com/containerd/containerd/api/events;events"
|
||||
63300: 1
|
||||
}
|
||||
syntax: "proto3"
|
||||
@@ -890,7 +890,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types;types"
|
||||
go_package: "github.com/containerd/containerd/api/types;types"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -926,7 +926,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types;types"
|
||||
go_package: "github.com/containerd/containerd/api/types;types"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -1344,7 +1344,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/runtime/sandbox/v1;sandbox"
|
||||
go_package: "github.com/containerd/containerd/api/runtime/sandbox/v1;sandbox"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -1491,7 +1491,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types/task"
|
||||
go_package: "github.com/containerd/containerd/api/types/task"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -2206,7 +2206,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/runtime/task/v2;task"
|
||||
go_package: "github.com/containerd/containerd/api/runtime/task/v2;task"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -2921,7 +2921,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/runtime/task/v3;task"
|
||||
go_package: "github.com/containerd/containerd/api/runtime/task/v3;task"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -3251,7 +3251,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/containers/v1;containers"
|
||||
go_package: "github.com/containerd/containerd/api/services/containers/v1;containers"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -3734,7 +3734,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/content/v1;content"
|
||||
go_package: "github.com/containerd/containerd/api/services/content/v1;content"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -3794,7 +3794,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types;types"
|
||||
go_package: "github.com/containerd/containerd/api/types;types"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -3965,7 +3965,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/diff/v1;diff"
|
||||
go_package: "github.com/containerd/containerd/api/services/diff/v1;diff"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -4012,7 +4012,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types;types"
|
||||
go_package: "github.com/containerd/containerd/api/types;types"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -4081,7 +4081,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/events/v1;events"
|
||||
go_package: "github.com/containerd/containerd/api/services/events/v1;events"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -4323,7 +4323,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/images/v1;images"
|
||||
go_package: "github.com/containerd/containerd/api/services/images/v1;images"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -4429,7 +4429,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types;types"
|
||||
go_package: "github.com/containerd/containerd/api/types;types"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -4696,7 +4696,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/introspection/v1;introspection"
|
||||
go_package: "github.com/containerd/containerd/api/services/introspection/v1;introspection"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -4946,7 +4946,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/leases/v1;leases"
|
||||
go_package: "github.com/containerd/containerd/api/services/leases/v1;leases"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -5126,7 +5126,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/namespaces/v1;namespaces"
|
||||
go_package: "github.com/containerd/containerd/api/services/namespaces/v1;namespaces"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -5260,7 +5260,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types;types"
|
||||
go_package: "github.com/containerd/containerd/api/types;types"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -5865,7 +5865,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/sandbox/v1;sandbox"
|
||||
go_package: "github.com/containerd/containerd/api/services/sandbox/v1;sandbox"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -6379,7 +6379,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/snapshots/v1;snapshots"
|
||||
go_package: "github.com/containerd/containerd/api/services/snapshots/v1;snapshots"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -6408,7 +6408,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/streaming/v1;streaming"
|
||||
go_package: "github.com/containerd/containerd/api/services/streaming/v1;streaming"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7053,7 +7053,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/tasks/v1;tasks"
|
||||
go_package: "github.com/containerd/containerd/api/services/tasks/v1;tasks"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7108,7 +7108,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/transfer/v1;transfer"
|
||||
go_package: "github.com/containerd/containerd/api/services/transfer/v1;transfer"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7137,7 +7137,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/ttrpc/events/v1;events"
|
||||
go_package: "github.com/containerd/containerd/api/services/ttrpc/events/v1;events"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7171,7 +7171,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/services/version/v1;version"
|
||||
go_package: "github.com/containerd/containerd/api/services/version/v1;version"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7346,7 +7346,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types/runc/options;options"
|
||||
go_package: "github.com/containerd/containerd/api/types/runc/options;options"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7378,7 +7378,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types/runtimeoptions/v1;runtimeoptions"
|
||||
go_package: "github.com/containerd/containerd/api/types/runtimeoptions/v1;runtimeoptions"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7519,7 +7519,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types/transfer"
|
||||
go_package: "github.com/containerd/containerd/api/types/transfer"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7598,7 +7598,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types/transfer"
|
||||
go_package: "github.com/containerd/containerd/api/types/transfer"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7653,7 +7653,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types/transfer"
|
||||
go_package: "github.com/containerd/containerd/api/types/transfer"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7808,7 +7808,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types/transfer"
|
||||
go_package: "github.com/containerd/containerd/api/types/transfer"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
@@ -7836,7 +7836,7 @@ file {
|
||||
}
|
||||
}
|
||||
options {
|
||||
go_package: "github.com/containerd/containerd/v2/api/types/transfer"
|
||||
go_package: "github.com/containerd/containerd/api/types/transfer"
|
||||
}
|
||||
syntax: "proto3"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user