You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: proto/config.proto
+50-40Lines changed: 50 additions & 40 deletions
Original file line number
Diff line number
Diff line change
@@ -5,55 +5,60 @@ package oci;
5
5
// independent configuration.
6
6
messageSpec {
7
7
// Version is the version of the specification that is supported.
8
-
optionalstringVersion=1;
8
+
optionalstringversion=1;
9
9
// Platform is the host information for OS and Arch.
10
-
optionalPlatformPlatform=2; // [default=77];
10
+
optionalPlatformplatform=2; // [default=77];
11
11
// Process is the container's main process.
12
-
optionalProcessProcess=3;
12
+
optionalProcessprocess=3;
13
13
// Root is the root information for the container's filesystem.
14
-
optionalRootRoot=4;
14
+
optionalRootroot=4;
15
15
// Hostname is the container's host name.
16
-
optionalstringHostname=5;
17
-
// Mounts profile configuration for adding mounts to the container's filesystem.
18
-
repeatedMountPointMounts=6;
16
+
optionalstringhostname=5;
17
+
// Mounts profile configuration for adding mounts to the container's
18
+
// filesystem.
19
+
repeatedMountPointmounts=6;
19
20
}
20
21
21
22
22
23
// LinuxSpec is the full specification for linux containers.
23
24
messageLinuxSpec {
24
-
optionalSpecSpec=1;
25
-
// LinuxConfig is platform specific configuration for linux based containers.
26
-
optionalLinuxConfigLinuxConfig=2;
25
+
optionalSpecspec=1;
26
+
// LinuxConfig is platform specific configuration for linux based
27
+
// containers.
28
+
optionalLinuxConfiglinux_config=2;
27
29
}
28
30
29
-
// LinuxConfig contains platform specific configuration for linux based containers.
31
+
// LinuxConfig contains platform specific configuration for linux based
32
+
// containers.
30
33
messageLinuxConfig {
31
34
// Capabilities are linux capabilities that are kept for the container.
32
-
repeatedstringCapabilities=1;
35
+
repeatedstringcapabilities=1;
33
36
}
34
37
35
-
// Platform specifies OS and arch information for the host system that the container
36
-
// is created for.
38
+
// Platform specifies OS and arch information for the host system that the
39
+
// container is created for.
37
40
messagePlatform {
38
41
// OS is the operating system.
39
-
optionalstringOS=1;
42
+
optionalstringos=1;
40
43
// Arch is the architecture
41
-
optionalstringArch=2;
44
+
optionalstringarch=2;
42
45
}
43
46
44
-
// Process contains information to start a specific application inside the container.
47
+
// Process contains information to start a specific application inside the
48
+
// container.
45
49
messageProcess {
46
50
// Terminal creates an interactive terminal for the container.
47
-
optionalboolTerminal=1;
51
+
optionalboolterminal=1;
48
52
// User specifies user information for the process.
49
-
optionalUserUser=2;
50
-
// Args specifies the binary and arguments for the application to execute.
51
-
repeatedstringArgs=3;
53
+
optionalUseruser=2;
54
+
// Args specifies the binary and arguments for the application to
55
+
// execute.
56
+
repeatedstringargs=3;
52
57
// Env populates the process environment for the process.
53
-
repeatedstringEnv=4;
58
+
repeatedstringenv=4;
54
59
// Cwd is the current working directory for the process and must be
55
60
// relative to the container's root.
56
-
optionalstringCwd=5;
61
+
optionalstringcwd=5;
57
62
}
58
63
59
64
enumPlatformType {
@@ -62,34 +67,39 @@ enum PlatformType {
62
67
63
68
// User specifies user information for the process.
64
69
messageUser {
65
-
// Type so that receivers of this message can `switch` for the fields expected
66
-
optionalPlatformTypeType=1 [default = LINUX];
70
+
// Type so that receivers of this message can `switch` for the fields
71
+
// expected
72
+
optionalPlatformTypetype=1 [default = LINUX];
67
73
68
-
optionalLinuxUserLinuxUser=2;
74
+
optionalLinuxUserlinux_type=2;
69
75
}
70
76
71
-
// User specifies linux specific user and group information for the container's
72
-
// main process.
77
+
// LinuxUser specifies linux specific user and group information for the
78
+
// container's main process.
73
79
messageLinuxUser {
74
-
// UID is the user id.
75
-
optionalint32UID=1;
76
-
// GID is the group id.
77
-
optionalint32GID=2;
78
-
repeatedint32AdditionalGids=3;
80
+
// Uid is the user id.
81
+
optionalint32uid=1;
82
+
// Gid is the group id.
83
+
optionalint32gid=2;
84
+
repeatedint32additional_gids=3;
79
85
}
80
86
81
87
// Root contains information about the container's root filesystem on the host.
82
88
messageRoot {
83
89
// Path is the absolute path to the container's root filesystem.
84
-
optionalstringPath=1;
85
-
// Readonly makes the root filesystem for the container readonly before the process is executed.
86
-
optionalboolReadonly=2;
90
+
optionalstringpath=1;
91
+
// Readonly makes the root filesystem for the container readonly before
92
+
// the process is executed.
93
+
optionalboolreadonly=2;
87
94
}
88
95
89
-
// MountPoint describes a directory that may be fullfilled by a mount in the runtime.json.
96
+
// MountPoint describes a directory that may be fullfilled by a mount in the
97
+
// runtime.json.
90
98
messageMountPoint {
91
99
// Name is a unique descriptive identifier for this mount point.
92
-
optionalstringName=1;
93
-
// Path specifies the path of the mount. The path and child directories MUST exist, a runtime MUST NOT create directories automatically to a mount point.
94
-
optionalstringPath=2;
100
+
optionalstringname=1;
101
+
// Path specifies the path of the mount. The path and child directories
102
+
// MUST exist, a runtime MUST NOT create directories automatically to a
0 commit comments