@@ -25,7 +25,7 @@ service Registration {
25
25
}
26
26
27
27
message DevicePluginOptions {
28
- // Indicates if PreStartContainer call is required before each container start
28
+ // Indicates if PreStartContainer call is required before each container start
29
29
bool pre_start_required = 1 ;
30
30
}
31
31
@@ -37,8 +37,8 @@ message RegisterRequest {
37
37
string endpoint = 2 ;
38
38
// Schedulable resource name. As of now it's expected to be a DNS Label
39
39
string resource_name = 3 ;
40
- // Options to be communicated with Device Manager
41
- DevicePluginOptions options = 4 ;
40
+ // Options to be communicated with Device Manager
41
+ DevicePluginOptions options = 4 ;
42
42
}
43
43
44
44
message Empty {
@@ -47,7 +47,7 @@ message Empty {
47
47
// DevicePlugin is the service advertised by Device Plugins
48
48
service DevicePlugin {
49
49
// GetDevicePluginOptions returns options to be communicated with Device
50
- // Manager
50
+ // Manager
51
51
rpc GetDevicePluginOptions (Empty ) returns (DevicePluginOptions ) {}
52
52
53
53
// ListAndWatch returns a stream of List of Devices
@@ -60,9 +60,9 @@ service DevicePlugin {
60
60
// of the steps to make the Device available in the container
61
61
rpc Allocate (AllocateRequest ) returns (AllocateResponse ) {}
62
62
63
- // PreStartContainer is called, if indicated by Device Plugin during registeration phase,
64
- // before each container start. Device plugin can run device specific operations
65
- // such as resetting the device before making devices available to the container
63
+ // PreStartContainer is called, if indicated by Device Plugin during registeration phase,
64
+ // before each container start. Device plugin can run device specific operations
65
+ // such as resetting the device before making devices available to the container
66
66
rpc PreStartContainer (PreStartContainerRequest ) returns (PreStartContainerResponse ) {}
67
67
}
68
68
@@ -78,7 +78,7 @@ message TopologyInfo {
78
78
}
79
79
80
80
message NUMANode {
81
- int64 ID = 1 ;
81
+ int64 ID = 1 ;
82
82
}
83
83
84
84
/* E.g:
@@ -87,7 +87,7 @@ message NUMANode {
87
87
* Health: "Healthy",
88
88
* Topology:
89
89
* Node:
90
- ID: 1
90
+ * ID: 1
91
91
*} */
92
92
message Device {
93
93
// A unique ID assigned by the device plugin used
@@ -105,7 +105,7 @@ message Device {
105
105
// - PreStartContainer allows Device Plugin to run device specific operations on
106
106
// the Devices requested
107
107
message PreStartContainerRequest {
108
- repeated string devicesIDs = 1 ;
108
+ repeated string devicesIDs = 1 ;
109
109
}
110
110
111
111
// PreStartContainerResponse will be send by plugin in response to PreStartContainerRequest
@@ -162,13 +162,13 @@ message Mount {
162
162
163
163
// DeviceSpec specifies a host device to mount into a container.
164
164
message DeviceSpec {
165
- // Path of the device within the container.
166
- string container_path = 1 ;
167
- // Path of the device on the host.
168
- string host_path = 2 ;
169
- // Cgroups permissions of the device, candidates are one or more of
170
- // * r - allows container to read from the specified device.
171
- // * w - allows container to write to the specified device.
172
- // * m - allows container to create device files that do not yet exist.
173
- string permissions = 3 ;
165
+ // Path of the device within the container.
166
+ string container_path = 1 ;
167
+ // Path of the device on the host.
168
+ string host_path = 2 ;
169
+ // Cgroups permissions of the device, candidates are one or more of
170
+ // * r - allows container to read from the specified device.
171
+ // * w - allows container to write to the specified device.
172
+ // * m - allows container to create device files that do not yet exist.
173
+ string permissions = 3 ;
174
174
}
0 commit comments