mirrored from https://chromium.googlesource.com/infra/luci/luci-go
/
params.pb.go
392 lines (352 loc) · 16.2 KB
/
params.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/dm/api/distributor/swarming/v1/params.proto
package swarmingV1
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Parameters represents the set of swarming parameters that the Swarming v1
// distributor can interpret for use with a Swarming v1 compatible service.
type Parameters struct {
Scheduling *Parameters_Scheduling `protobuf:"bytes,1,opt,name=scheduling,proto3" json:"scheduling,omitempty"`
Meta *Parameters_Meta `protobuf:"bytes,2,opt,name=meta,proto3" json:"meta,omitempty"`
Job *Parameters_Job `protobuf:"bytes,3,opt,name=job,proto3" json:"job,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Parameters) Reset() { *m = Parameters{} }
func (m *Parameters) String() string { return proto.CompactTextString(m) }
func (*Parameters) ProtoMessage() {}
func (*Parameters) Descriptor() ([]byte, []int) {
return fileDescriptor_a392a071be03ce1c, []int{0}
}
func (m *Parameters) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Parameters.Unmarshal(m, b)
}
func (m *Parameters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Parameters.Marshal(b, m, deterministic)
}
func (m *Parameters) XXX_Merge(src proto.Message) {
xxx_messageInfo_Parameters.Merge(m, src)
}
func (m *Parameters) XXX_Size() int {
return xxx_messageInfo_Parameters.Size(m)
}
func (m *Parameters) XXX_DiscardUnknown() {
xxx_messageInfo_Parameters.DiscardUnknown(m)
}
var xxx_messageInfo_Parameters proto.InternalMessageInfo
func (m *Parameters) GetScheduling() *Parameters_Scheduling {
if m != nil {
return m.Scheduling
}
return nil
}
func (m *Parameters) GetMeta() *Parameters_Meta {
if m != nil {
return m.Meta
}
return nil
}
func (m *Parameters) GetJob() *Parameters_Job {
if m != nil {
return m.Job
}
return nil
}
// These parameters affect how the Executions for this Quest are scheduled.
type Parameters_Scheduling struct {
// Priority adjusts the scheduling preference for Executions. The higher the
// priority number, the longer it will take to schedule, and vice versa (ala
// `nice`).
//
// A value of 0 (default) corresponds to a default priority (currently 100).
// Other values correspond directly to the swarming task Priority.
//
// THIS MEANS THAT PRIORITY 0 IS NOT PERMITTED HERE! If you want 0, use
// 1 instead.
//
// This must be <= 255.
Priority uint32 `protobuf:"varint,1,opt,name=priority,proto3" json:"priority,omitempty"`
// These specifiy the profile of the machine to use for Execuions of this
// quest. These can indicate OS, number of cores, amount of ram, GPU type,
// pool, etc. See the swarming service instance for available dimensions.
Dimensions map[string]string `protobuf:"bytes,2,rep,name=dimensions,proto3" json:"dimensions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// These dimensions will be snapshotted from the first execution of each
// attempt, and will be subsequently re-used for all following executions of
// that attempt.
//
// The most-specific value for these dimensions will be taken for tasks
// where a given dimension has multiple values.
SnapshotDimensions []string `protobuf:"bytes,3,rep,name=snapshot_dimensions,json=snapshotDimensions,proto3" json:"snapshot_dimensions,omitempty"`
// This indicates the maximum amount of time that an Execution may run
// without emitting IO on stdout/err. 0 means 'no timeout'.
IoTimeout *duration.Duration `protobuf:"bytes,4,opt,name=io_timeout,json=ioTimeout,proto3" json:"io_timeout,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Parameters_Scheduling) Reset() { *m = Parameters_Scheduling{} }
func (m *Parameters_Scheduling) String() string { return proto.CompactTextString(m) }
func (*Parameters_Scheduling) ProtoMessage() {}
func (*Parameters_Scheduling) Descriptor() ([]byte, []int) {
return fileDescriptor_a392a071be03ce1c, []int{0, 0}
}
func (m *Parameters_Scheduling) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Parameters_Scheduling.Unmarshal(m, b)
}
func (m *Parameters_Scheduling) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Parameters_Scheduling.Marshal(b, m, deterministic)
}
func (m *Parameters_Scheduling) XXX_Merge(src proto.Message) {
xxx_messageInfo_Parameters_Scheduling.Merge(m, src)
}
func (m *Parameters_Scheduling) XXX_Size() int {
return xxx_messageInfo_Parameters_Scheduling.Size(m)
}
func (m *Parameters_Scheduling) XXX_DiscardUnknown() {
xxx_messageInfo_Parameters_Scheduling.DiscardUnknown(m)
}
var xxx_messageInfo_Parameters_Scheduling proto.InternalMessageInfo
func (m *Parameters_Scheduling) GetPriority() uint32 {
if m != nil {
return m.Priority
}
return 0
}
func (m *Parameters_Scheduling) GetDimensions() map[string]string {
if m != nil {
return m.Dimensions
}
return nil
}
func (m *Parameters_Scheduling) GetSnapshotDimensions() []string {
if m != nil {
return m.SnapshotDimensions
}
return nil
}
func (m *Parameters_Scheduling) GetIoTimeout() *duration.Duration {
if m != nil {
return m.IoTimeout
}
return nil
}
type Parameters_Meta struct {
// The 'human readable' name prefix for Executions of this quest. DM will
// automatically prepend this to the execution ID. So if this was "cool
// job", the swarming task name would be
// "cool job / <quest_ID>|<attempt>|<execution>"
NamePrefix string `protobuf:"bytes,1,opt,name=name_prefix,json=namePrefix,proto3" json:"name_prefix,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Parameters_Meta) Reset() { *m = Parameters_Meta{} }
func (m *Parameters_Meta) String() string { return proto.CompactTextString(m) }
func (*Parameters_Meta) ProtoMessage() {}
func (*Parameters_Meta) Descriptor() ([]byte, []int) {
return fileDescriptor_a392a071be03ce1c, []int{0, 1}
}
func (m *Parameters_Meta) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Parameters_Meta.Unmarshal(m, b)
}
func (m *Parameters_Meta) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Parameters_Meta.Marshal(b, m, deterministic)
}
func (m *Parameters_Meta) XXX_Merge(src proto.Message) {
xxx_messageInfo_Parameters_Meta.Merge(m, src)
}
func (m *Parameters_Meta) XXX_Size() int {
return xxx_messageInfo_Parameters_Meta.Size(m)
}
func (m *Parameters_Meta) XXX_DiscardUnknown() {
xxx_messageInfo_Parameters_Meta.DiscardUnknown(m)
}
var xxx_messageInfo_Parameters_Meta proto.InternalMessageInfo
func (m *Parameters_Meta) GetNamePrefix() string {
if m != nil {
return m.NamePrefix
}
return ""
}
type Parameters_Job struct {
Inputs *Parameters_Job_Inputs `protobuf:"bytes,1,opt,name=inputs,proto3" json:"inputs,omitempty"`
// This is the "argv" to run with this job. This includes substitution
// paramters defined by swarming's run_isolated.py script:
// https://github.com/luci/luci-py/blob/master/client/run_isolated.py
//
// Additionally, DM provides the following substitutions:
// ${DM.PREVIOUS.EXECUTION.STATE:PATH} - the path to a JSONPB encoding of
// the swarming_v1.Result from the previous Execution of this Attempt.
// ${DM.QUEST.DATA.DESC:PATH} - the path to the
// dm.Quest.Data.Desc JSONPB for the quest that this execution is part
// of.
// ${DM.HOST} - the hostname to use to access DM's pRPC API.
//
// DM also provides a JSONPB encoded dm.Execution.Auth via the LUCI_CONTEXT
// swarming.secret_bytes value. See:
// https://github.com/luci/luci-py/blob/master/client/LUCI_CONTEXT.md
//
// Command MUST be specified; specifying a command in any of the isolated
// inputs WILL NOT DO ANYTHING.
Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"`
// Environment variables for the executions.
Env map[string]string `protobuf:"bytes,3,rep,name=env,proto3" json:"env,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Parameters_Job) Reset() { *m = Parameters_Job{} }
func (m *Parameters_Job) String() string { return proto.CompactTextString(m) }
func (*Parameters_Job) ProtoMessage() {}
func (*Parameters_Job) Descriptor() ([]byte, []int) {
return fileDescriptor_a392a071be03ce1c, []int{0, 2}
}
func (m *Parameters_Job) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Parameters_Job.Unmarshal(m, b)
}
func (m *Parameters_Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Parameters_Job.Marshal(b, m, deterministic)
}
func (m *Parameters_Job) XXX_Merge(src proto.Message) {
xxx_messageInfo_Parameters_Job.Merge(m, src)
}
func (m *Parameters_Job) XXX_Size() int {
return xxx_messageInfo_Parameters_Job.Size(m)
}
func (m *Parameters_Job) XXX_DiscardUnknown() {
xxx_messageInfo_Parameters_Job.DiscardUnknown(m)
}
var xxx_messageInfo_Parameters_Job proto.InternalMessageInfo
func (m *Parameters_Job) GetInputs() *Parameters_Job_Inputs {
if m != nil {
return m.Inputs
}
return nil
}
func (m *Parameters_Job) GetCommand() []string {
if m != nil {
return m.Command
}
return nil
}
func (m *Parameters_Job) GetEnv() map[string]string {
if m != nil {
return m.Env
}
return nil
}
type Parameters_Job_Inputs struct {
// 0 or more isolated IDs that will be 'included' together into the final
// job .isolated sent to swarming.
//
// The "server" value must either be omitted, or equal the isolate server
// defined by this distributor's config (the `isolate.host` field,
// prepended with "https://").
Isolated []*IsolatedRef `protobuf:"bytes,1,rep,name=isolated,proto3" json:"isolated,omitempty"`
// CIPD packages to use for the job. These specs may contain templated
// parameters for package names or non-instance_ids for the package
// versions. The first successful execution for each attempt will
// resolve+snapshot all package names and versions. These package names
// and versions will be used for all subsequent executions of that
// attempt.
Cipd *CipdSpec `protobuf:"bytes,2,opt,name=cipd,proto3" json:"cipd,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Parameters_Job_Inputs) Reset() { *m = Parameters_Job_Inputs{} }
func (m *Parameters_Job_Inputs) String() string { return proto.CompactTextString(m) }
func (*Parameters_Job_Inputs) ProtoMessage() {}
func (*Parameters_Job_Inputs) Descriptor() ([]byte, []int) {
return fileDescriptor_a392a071be03ce1c, []int{0, 2, 0}
}
func (m *Parameters_Job_Inputs) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Parameters_Job_Inputs.Unmarshal(m, b)
}
func (m *Parameters_Job_Inputs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Parameters_Job_Inputs.Marshal(b, m, deterministic)
}
func (m *Parameters_Job_Inputs) XXX_Merge(src proto.Message) {
xxx_messageInfo_Parameters_Job_Inputs.Merge(m, src)
}
func (m *Parameters_Job_Inputs) XXX_Size() int {
return xxx_messageInfo_Parameters_Job_Inputs.Size(m)
}
func (m *Parameters_Job_Inputs) XXX_DiscardUnknown() {
xxx_messageInfo_Parameters_Job_Inputs.DiscardUnknown(m)
}
var xxx_messageInfo_Parameters_Job_Inputs proto.InternalMessageInfo
func (m *Parameters_Job_Inputs) GetIsolated() []*IsolatedRef {
if m != nil {
return m.Isolated
}
return nil
}
func (m *Parameters_Job_Inputs) GetCipd() *CipdSpec {
if m != nil {
return m.Cipd
}
return nil
}
func init() {
proto.RegisterType((*Parameters)(nil), "swarmingV1.Parameters")
proto.RegisterType((*Parameters_Scheduling)(nil), "swarmingV1.Parameters.Scheduling")
proto.RegisterMapType((map[string]string)(nil), "swarmingV1.Parameters.Scheduling.DimensionsEntry")
proto.RegisterType((*Parameters_Meta)(nil), "swarmingV1.Parameters.Meta")
proto.RegisterType((*Parameters_Job)(nil), "swarmingV1.Parameters.Job")
proto.RegisterMapType((map[string]string)(nil), "swarmingV1.Parameters.Job.EnvEntry")
proto.RegisterType((*Parameters_Job_Inputs)(nil), "swarmingV1.Parameters.Job.Inputs")
}
func init() {
proto.RegisterFile("go.chromium.org/luci/dm/api/distributor/swarming/v1/params.proto", fileDescriptor_a392a071be03ce1c)
}
var fileDescriptor_a392a071be03ce1c = []byte{
// 513 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xdf, 0x8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