Skip to content

Commit c68fac1

Browse files
committed
proto/config: indentation
Signed-off-by: Vincent Batts <[email protected]>
1 parent 32e3ec9 commit c68fac1

File tree

2 files changed

+24
-24
lines changed

2 files changed

+24
-24
lines changed

proto/runtime_config.proto

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ message RuntimeSpec {
88
// Mounts is a mapping of names to mount configurations.
99
// Which mounts will be mounted and where should be chosen with MountPoints
1010
// in Spec.
11-
repeated MountFieldEntry Mounts = 1;
11+
repeated MountFieldEntry Mounts = 1;
1212
// Hooks are the commands run at various lifecycle events of the container.
1313
optional Hooks Hooks = 2;
1414
}
@@ -22,19 +22,19 @@ message LinuxRuntimeSpec {
2222

2323
// MountFieldEntry is more backwards compatible protobuf associative map (than map<string, Mount>)
2424
message MountFieldEntry {
25-
required string key = 1;
26-
required Mount value = 2;
25+
required string key = 1;
26+
required Mount value = 2;
2727
}
2828

2929
// Mount specifies a mount for a container
3030
message Mount {
3131
// Type specifies the mount kind.
32-
optional string Type = 1;
33-
// Source specifies the source path of the mount. In the case of bind mounts on
32+
optional string Type = 1;
33+
// Source specifies the source path of the mount. In the case of bind mounts on
3434
// linux based systems this would be the file on the host.
35-
optional string Source = 2;
35+
optional string Source = 2;
3636
// Options are fstab style mount options.
37-
repeated string Options = 3;
37+
repeated string Options = 3;
3838
}
3939

4040
// Hook specifies a command that is run at a particular event in the lifecycle of a container
@@ -48,7 +48,7 @@ message Hook {
4848
message Hooks {
4949
// Prestart is a list of hooks to be run before the container process is executed.
5050
// On Linux, they are run after the container namespaces are created.
51-
repeated Hook Prestart = 1;
51+
repeated Hook Prestart = 1;
5252
// Poststop is a list of hooks to be run after the container process exits.
53-
repeated Hook Poststop = 2;
53+
repeated Hook Poststop = 2;
5454
}

proto/runtime_config_linux.proto

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ package oci;
22

33
// LinuxStateDirectory holds the container's state information
44
message DefaultState {
5-
// TODO(vbatts) not as elegant in some ways, but there is not a concept of const here
6-
optional string Directory = 1 [default = "/run/opencontainer/containers"];
5+
// TODO(vbatts) not as elegant in some ways, but there is not a concept of const here
6+
optional string Directory = 1 [default = "/run/opencontainer/containers"];
77
}
88

99
// LinuxRuntime hosts the Linux-only runtime information
1010
message LinuxRuntime {
1111
// UIDMapping specifies user mappings for supporting user namespaces on linux.
12-
repeated IDMapping UIDMapping = 1;
12+
repeated IDMapping UIDMapping = 1;
1313
// GIDMapping specifies group mappings for supporting user namespaces on linux.
14-
repeated IDMapping GIDMapping = 2;
14+
repeated IDMapping GIDMapping = 2;
1515
// Rlimits specifies rlimit options to apply to the container's process.
16-
repeated Rlimit Rlimits = 3;
16+
repeated Rlimit Rlimits = 3;
1717
// Sysctl are a set of key value pairs that are set for the container on start
18-
repeated StringStringEntry Sysctl = 4;
18+
repeated StringStringEntry Sysctl = 4;
1919
// Resources contain cgroup information for handling resource constraints
2020
// for the container
2121
optional Resources Resources = 5;
@@ -40,11 +40,11 @@ message LinuxRuntime {
4040
// IDMapping specifies UID/GID mappings
4141
message IDMapping {
4242
// HostID is the UID/GID of the host user or group
43-
optional int32 HostID = 1;
43+
optional int32 HostID = 1;
4444
// ContainerID is the UID/GID of the container's user or group
45-
optional int32 ContainerID = 2;
45+
optional int32 ContainerID = 2;
4646
// Size is the length of the range of IDs mapped between the two namespaces
47-
optional int32 Size = 3;
47+
optional int32 Size = 3;
4848
}
4949

5050
// Rlimit type and restrictions
@@ -59,8 +59,8 @@ message Rlimit {
5959

6060
// StringStringEntry is more backwards compatible protobuf associative map (than map<string, Mount>)
6161
message StringStringEntry {
62-
required string key = 1;
63-
required string value = 2;
62+
required string key = 1;
63+
required string value = 2;
6464
}
6565

6666
// Resources has container runtime resource constraints
@@ -171,7 +171,7 @@ message Device {
171171
// Path to the device.
172172
optional string Path = 1;
173173
// Device type, block, char, etc.
174-
// TODO(vbatts) ensure int32 is fine here, instead of golang's rune
174+
// TODO(vbatts) ensure int32 is fine here, instead of golang's rune
175175
optional int32 Type = 2;
176176
// Major is the device's major number.
177177
optional int64 Major = 3;
@@ -180,7 +180,7 @@ message Device {
180180
// Cgroup permissions format, rwm.
181181
optional string Permissions = 5;
182182
// FileMode permission bits for the device.
183-
// TODO(vbatts) os.FileMode is an octal uint32
183+
// TODO(vbatts) os.FileMode is an octal uint32
184184
optional uint32 FileMode = 6;
185185
// UID of the device.
186186
optional uint32 UID = 7;
@@ -190,7 +190,7 @@ message Device {
190190

191191
// Seccomp represents syscall restrictions
192192
message Seccomp {
193-
// TODO(vbatts) string instead of "Action" type
193+
// TODO(vbatts) string instead of "Action" type
194194
optional string DefaultAction = 1;
195195
repeated Syscall Syscalls = 2;
196196
}
@@ -207,7 +207,7 @@ message Arg {
207207
optional uint32 Index = 1;
208208
optional uint64 Value = 2;
209209
optional uint64 ValueTwo = 3;
210-
// Op is the operator string
210+
// Op is the operator string
211211
optional string Op = 4;
212212
}
213213

0 commit comments

Comments
 (0)