Skip to content

Commit 30ca1c5

Browse files
jterry75thaJeztah
authored andcommitted
Add io.containerd.runhcs.v1 shim proto options
Signed-off-by: Justin Terry (VM) <juterry@microsoft.com> (cherry picked from commit ec3dbd1) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent 7908802 commit 30ca1c5

File tree

5 files changed

+509
-0
lines changed

5 files changed

+509
-0
lines changed

Protobuild.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ ignore_files = [
6666
"gogoproto/gogo.proto"
6767
]
6868

69+
[[descriptors]]
70+
prefix = "github.com/containerd/containerd/runtime/v2/runhcs/options"
71+
target = "runtime/v2/runhcs/options/next.pb.txt"
72+
ignore_files = [
73+
"google/protobuf/descriptor.proto",
74+
"gogoproto/gogo.proto"
75+
]
76+
6977
[[descriptors]]
7078
prefix = "github.com/containerd/containerd/windows/hcsshimtypes"
7179
target = "windows/hcsshimtypes/next.pb.txt"

runtime/v2/runhcs/options/doc.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
Copyright The containerd Authors.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
*/
16+
17+
package options
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
file {
2+
name: "github.com/containerd/containerd/runtime/v2/runhcs/options/runhcs.proto"
3+
package: "containerd.runhcs.v1"
4+
dependency: "gogoproto/gogo.proto"
5+
message_type {
6+
name: "Options"
7+
field {
8+
name: "debug"
9+
number: 1
10+
label: LABEL_OPTIONAL
11+
type: TYPE_BOOL
12+
json_name: "debug"
13+
}
14+
field {
15+
name: "debug_type"
16+
number: 2
17+
label: LABEL_OPTIONAL
18+
type: TYPE_ENUM
19+
type_name: ".containerd.runhcs.v1.Options.DebugType"
20+
json_name: "debugType"
21+
}
22+
field {
23+
name: "registry_root"
24+
number: 3
25+
label: LABEL_OPTIONAL
26+
type: TYPE_STRING
27+
json_name: "registryRoot"
28+
}
29+
enum_type {
30+
name: "DebugType"
31+
value {
32+
name: "NPIPE"
33+
number: 0
34+
}
35+
value {
36+
name: "FILE"
37+
number: 1
38+
}
39+
}
40+
}
41+
options {
42+
go_package: "github.com/containerd/containerd/runtime/v2/runhcs/options;options"
43+
}
44+
weak_dependency: 0
45+
syntax: "proto3"
46+
}

0 commit comments

Comments
 (0)