This repository has been archived by the owner on Oct 23, 2023. It is now read-only.
/
tasks.pb.go
697 lines (626 loc) · 26.5 KB
/
tasks.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
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: flyteidl/core/tasks.proto
package core // import "github.com/lyft/flyteidl/gen/pb-go/flyteidl/core"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import duration "github.com/golang/protobuf/ptypes/duration"
import _struct "github.com/golang/protobuf/ptypes/struct"
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
// Known resource names.
type Resources_ResourceName int32
const (
Resources_UNKNOWN Resources_ResourceName = 0
Resources_CPU Resources_ResourceName = 1
Resources_GPU Resources_ResourceName = 2
Resources_MEMORY Resources_ResourceName = 3
Resources_STORAGE Resources_ResourceName = 4
)
var Resources_ResourceName_name = map[int32]string{
0: "UNKNOWN",
1: "CPU",
2: "GPU",
3: "MEMORY",
4: "STORAGE",
}
var Resources_ResourceName_value = map[string]int32{
"UNKNOWN": 0,
"CPU": 1,
"GPU": 2,
"MEMORY": 3,
"STORAGE": 4,
}
func (x Resources_ResourceName) String() string {
return proto.EnumName(Resources_ResourceName_name, int32(x))
}
func (Resources_ResourceName) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{0, 0}
}
type RuntimeMetadata_RuntimeType int32
const (
RuntimeMetadata_OTHER RuntimeMetadata_RuntimeType = 0
RuntimeMetadata_FLYTE_SDK RuntimeMetadata_RuntimeType = 1
)
var RuntimeMetadata_RuntimeType_name = map[int32]string{
0: "OTHER",
1: "FLYTE_SDK",
}
var RuntimeMetadata_RuntimeType_value = map[string]int32{
"OTHER": 0,
"FLYTE_SDK": 1,
}
func (x RuntimeMetadata_RuntimeType) String() string {
return proto.EnumName(RuntimeMetadata_RuntimeType_name, int32(x))
}
func (RuntimeMetadata_RuntimeType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{1, 0}
}
// A customizable interface to convey resources requested for a container. This can be interpretted differently for different
// container engines.
type Resources struct {
// The desired set of resources requested. ResourceNames must be unique within the list.
Requests []*Resources_ResourceEntry `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"`
// Defines a set of bounds (e.g. min/max) within which the task can reliably run. ResourceNames must be unique
// within the list.
Limits []*Resources_ResourceEntry `protobuf:"bytes,2,rep,name=limits,proto3" json:"limits,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Resources) Reset() { *m = Resources{} }
func (m *Resources) String() string { return proto.CompactTextString(m) }
func (*Resources) ProtoMessage() {}
func (*Resources) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{0}
}
func (m *Resources) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Resources.Unmarshal(m, b)
}
func (m *Resources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Resources.Marshal(b, m, deterministic)
}
func (dst *Resources) XXX_Merge(src proto.Message) {
xxx_messageInfo_Resources.Merge(dst, src)
}
func (m *Resources) XXX_Size() int {
return xxx_messageInfo_Resources.Size(m)
}
func (m *Resources) XXX_DiscardUnknown() {
xxx_messageInfo_Resources.DiscardUnknown(m)
}
var xxx_messageInfo_Resources proto.InternalMessageInfo
func (m *Resources) GetRequests() []*Resources_ResourceEntry {
if m != nil {
return m.Requests
}
return nil
}
func (m *Resources) GetLimits() []*Resources_ResourceEntry {
if m != nil {
return m.Limits
}
return nil
}
// Encapsulates a resource name and value.
type Resources_ResourceEntry struct {
// Resource name.
Name Resources_ResourceName `protobuf:"varint,1,opt,name=name,proto3,enum=flyteidl.core.Resources_ResourceName" json:"name,omitempty"`
// Value must be a valid k8s quantity. See
// https://github.com/kubernetes/apimachinery/blob/master/pkg/api/resource/quantity.go#L30-L80
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Resources_ResourceEntry) Reset() { *m = Resources_ResourceEntry{} }
func (m *Resources_ResourceEntry) String() string { return proto.CompactTextString(m) }
func (*Resources_ResourceEntry) ProtoMessage() {}
func (*Resources_ResourceEntry) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{0, 0}
}
func (m *Resources_ResourceEntry) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Resources_ResourceEntry.Unmarshal(m, b)
}
func (m *Resources_ResourceEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Resources_ResourceEntry.Marshal(b, m, deterministic)
}
func (dst *Resources_ResourceEntry) XXX_Merge(src proto.Message) {
xxx_messageInfo_Resources_ResourceEntry.Merge(dst, src)
}
func (m *Resources_ResourceEntry) XXX_Size() int {
return xxx_messageInfo_Resources_ResourceEntry.Size(m)
}
func (m *Resources_ResourceEntry) XXX_DiscardUnknown() {
xxx_messageInfo_Resources_ResourceEntry.DiscardUnknown(m)
}
var xxx_messageInfo_Resources_ResourceEntry proto.InternalMessageInfo
func (m *Resources_ResourceEntry) GetName() Resources_ResourceName {
if m != nil {
return m.Name
}
return Resources_UNKNOWN
}
func (m *Resources_ResourceEntry) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// Runtime information. This is losely defined to allow for extensibility.
type RuntimeMetadata struct {
// Type of runtime.
Type RuntimeMetadata_RuntimeType `protobuf:"varint,1,opt,name=type,proto3,enum=flyteidl.core.RuntimeMetadata_RuntimeType" json:"type,omitempty"`
// Version of the runtime. All versions should be backward compatible. However, certain cases call for version
// checks to ensure tighter validation or setting expectations.
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// +optional It can be used to provide extra information about the runtime (e.g. python, golang... etc.).
Flavor string `protobuf:"bytes,3,opt,name=flavor,proto3" json:"flavor,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RuntimeMetadata) Reset() { *m = RuntimeMetadata{} }
func (m *RuntimeMetadata) String() string { return proto.CompactTextString(m) }
func (*RuntimeMetadata) ProtoMessage() {}
func (*RuntimeMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{1}
}
func (m *RuntimeMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RuntimeMetadata.Unmarshal(m, b)
}
func (m *RuntimeMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RuntimeMetadata.Marshal(b, m, deterministic)
}
func (dst *RuntimeMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_RuntimeMetadata.Merge(dst, src)
}
func (m *RuntimeMetadata) XXX_Size() int {
return xxx_messageInfo_RuntimeMetadata.Size(m)
}
func (m *RuntimeMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_RuntimeMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_RuntimeMetadata proto.InternalMessageInfo
func (m *RuntimeMetadata) GetType() RuntimeMetadata_RuntimeType {
if m != nil {
return m.Type
}
return RuntimeMetadata_OTHER
}
func (m *RuntimeMetadata) GetVersion() string {
if m != nil {
return m.Version
}
return ""
}
func (m *RuntimeMetadata) GetFlavor() string {
if m != nil {
return m.Flavor
}
return ""
}
// Task Metadata
type TaskMetadata struct {
// Indicates whether the system should attempt to lookup this task's output to avoid duplication of work.
Discoverable bool `protobuf:"varint,1,opt,name=discoverable,proto3" json:"discoverable,omitempty"`
// Runtime information about the task.
Runtime *RuntimeMetadata `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"`
// The overall timeout of a task including user-triggered retries.
Timeout *duration.Duration `protobuf:"bytes,4,opt,name=timeout,proto3" json:"timeout,omitempty"`
// Number of retries per task.
Retries *RetryStrategy `protobuf:"bytes,5,opt,name=retries,proto3" json:"retries,omitempty"`
// Indicates a logical version to apply to this task for the purpose of discovery.
DiscoveryVersion string `protobuf:"bytes,6,opt,name=discovery_version,json=discoveryVersion,proto3" json:"discovery_version,omitempty"`
// If set, this indicates that this task is deprecated. This will enable owners of tasks to notify consumers
// of the ending of support for a given task.
DeprecatedErrorMessage string `protobuf:"bytes,7,opt,name=deprecated_error_message,json=deprecatedErrorMessage,proto3" json:"deprecated_error_message,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskMetadata) Reset() { *m = TaskMetadata{} }
func (m *TaskMetadata) String() string { return proto.CompactTextString(m) }
func (*TaskMetadata) ProtoMessage() {}
func (*TaskMetadata) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{2}
}
func (m *TaskMetadata) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskMetadata.Unmarshal(m, b)
}
func (m *TaskMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskMetadata.Marshal(b, m, deterministic)
}
func (dst *TaskMetadata) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskMetadata.Merge(dst, src)
}
func (m *TaskMetadata) XXX_Size() int {
return xxx_messageInfo_TaskMetadata.Size(m)
}
func (m *TaskMetadata) XXX_DiscardUnknown() {
xxx_messageInfo_TaskMetadata.DiscardUnknown(m)
}
var xxx_messageInfo_TaskMetadata proto.InternalMessageInfo
func (m *TaskMetadata) GetDiscoverable() bool {
if m != nil {
return m.Discoverable
}
return false
}
func (m *TaskMetadata) GetRuntime() *RuntimeMetadata {
if m != nil {
return m.Runtime
}
return nil
}
func (m *TaskMetadata) GetTimeout() *duration.Duration {
if m != nil {
return m.Timeout
}
return nil
}
func (m *TaskMetadata) GetRetries() *RetryStrategy {
if m != nil {
return m.Retries
}
return nil
}
func (m *TaskMetadata) GetDiscoveryVersion() string {
if m != nil {
return m.DiscoveryVersion
}
return ""
}
func (m *TaskMetadata) GetDeprecatedErrorMessage() string {
if m != nil {
return m.DeprecatedErrorMessage
}
return ""
}
// A Task structure that uniquely identifies a task in the system
// Tasks are registered as a first step in the system.
type TaskTemplate struct {
// Auto generated taskId by the system. Task Id uniquely identifies this task globally.
Id *Identifier `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// A predefined yet extensible Task type identifier. This can be used to customize any of the components. If no
// extensions are provided in the system, Flyte will resolve the this task to its TaskCategory and default the
// implementation registered for the TaskCategory.
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
// Extra metadata about the task.
Metadata *TaskMetadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
// A strongly typed interface for the task. This enables others to use this task within a workflow and gauarantees
// compile-time validation of the workflow to avoid costly runtime failures.
Interface *TypedInterface `protobuf:"bytes,4,opt,name=interface,proto3" json:"interface,omitempty"`
// Custom data about the task. This is extensible to allow various plugins in the system.
Custom *_struct.Struct `protobuf:"bytes,5,opt,name=custom,proto3" json:"custom,omitempty"`
// Known target types that the system will guarantee plugins for. Custom SDK plugins are allowed to set these if needed.
// If no corresponding execution-layer plugins are found, the system will default to handling these using built-in
// handlers.
//
// Types that are valid to be assigned to Target:
// *TaskTemplate_Container
Target isTaskTemplate_Target `protobuf_oneof:"target"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskTemplate) Reset() { *m = TaskTemplate{} }
func (m *TaskTemplate) String() string { return proto.CompactTextString(m) }
func (*TaskTemplate) ProtoMessage() {}
func (*TaskTemplate) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{3}
}
func (m *TaskTemplate) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskTemplate.Unmarshal(m, b)
}
func (m *TaskTemplate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskTemplate.Marshal(b, m, deterministic)
}
func (dst *TaskTemplate) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskTemplate.Merge(dst, src)
}
func (m *TaskTemplate) XXX_Size() int {
return xxx_messageInfo_TaskTemplate.Size(m)
}
func (m *TaskTemplate) XXX_DiscardUnknown() {
xxx_messageInfo_TaskTemplate.DiscardUnknown(m)
}
var xxx_messageInfo_TaskTemplate proto.InternalMessageInfo
func (m *TaskTemplate) GetId() *Identifier {
if m != nil {
return m.Id
}
return nil
}
func (m *TaskTemplate) GetType() string {
if m != nil {
return m.Type
}
return ""
}
func (m *TaskTemplate) GetMetadata() *TaskMetadata {
if m != nil {
return m.Metadata
}
return nil
}
func (m *TaskTemplate) GetInterface() *TypedInterface {
if m != nil {
return m.Interface
}
return nil
}
func (m *TaskTemplate) GetCustom() *_struct.Struct {
if m != nil {
return m.Custom
}
return nil
}
type isTaskTemplate_Target interface {
isTaskTemplate_Target()
}
type TaskTemplate_Container struct {
Container *Container `protobuf:"bytes,6,opt,name=container,proto3,oneof"`
}
func (*TaskTemplate_Container) isTaskTemplate_Target() {}
func (m *TaskTemplate) GetTarget() isTaskTemplate_Target {
if m != nil {
return m.Target
}
return nil
}
func (m *TaskTemplate) GetContainer() *Container {
if x, ok := m.GetTarget().(*TaskTemplate_Container); ok {
return x.Container
}
return nil
}
// XXX_OneofFuncs is for the internal use of the proto package.
func (*TaskTemplate) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
return _TaskTemplate_OneofMarshaler, _TaskTemplate_OneofUnmarshaler, _TaskTemplate_OneofSizer, []interface{}{
(*TaskTemplate_Container)(nil),
}
}
func _TaskTemplate_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
m := msg.(*TaskTemplate)
// target
switch x := m.Target.(type) {
case *TaskTemplate_Container:
b.EncodeVarint(6<<3 | proto.WireBytes)
if err := b.EncodeMessage(x.Container); err != nil {
return err
}
case nil:
default:
return fmt.Errorf("TaskTemplate.Target has unexpected type %T", x)
}
return nil
}
func _TaskTemplate_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
m := msg.(*TaskTemplate)
switch tag {
case 6: // target.container
if wire != proto.WireBytes {
return true, proto.ErrInternalBadWireType
}
msg := new(Container)
err := b.DecodeMessage(msg)
m.Target = &TaskTemplate_Container{msg}
return true, err
default:
return false, nil
}
}
func _TaskTemplate_OneofSizer(msg proto.Message) (n int) {
m := msg.(*TaskTemplate)
// target
switch x := m.Target.(type) {
case *TaskTemplate_Container:
s := proto.Size(x.Container)
n += 1 // tag and wire
n += proto.SizeVarint(uint64(s))
n += s
case nil:
default:
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
}
return n
}
// Defines port properties for a container.
type ContainerPort struct {
// Number of port to expose on the pod's IP address.
// This must be a valid port number, 0 < x < 65536.
ContainerPort uint32 `protobuf:"varint,1,opt,name=container_port,json=containerPort,proto3" json:"container_port,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ContainerPort) Reset() { *m = ContainerPort{} }
func (m *ContainerPort) String() string { return proto.CompactTextString(m) }
func (*ContainerPort) ProtoMessage() {}
func (*ContainerPort) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{4}
}
func (m *ContainerPort) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ContainerPort.Unmarshal(m, b)
}
func (m *ContainerPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ContainerPort.Marshal(b, m, deterministic)
}
func (dst *ContainerPort) XXX_Merge(src proto.Message) {
xxx_messageInfo_ContainerPort.Merge(dst, src)
}
func (m *ContainerPort) XXX_Size() int {
return xxx_messageInfo_ContainerPort.Size(m)
}
func (m *ContainerPort) XXX_DiscardUnknown() {
xxx_messageInfo_ContainerPort.DiscardUnknown(m)
}
var xxx_messageInfo_ContainerPort proto.InternalMessageInfo
func (m *ContainerPort) GetContainerPort() uint32 {
if m != nil {
return m.ContainerPort
}
return 0
}
type Container struct {
// Container image url. Eg: docker/redis:latest
Image string `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
// Command to be executed, if not provided, the default entrypoint in the container image will be used.
Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"`
// These will default to Flyte given paths. If provided, the system will not append known paths. If the task still
// needs flyte's inputs and outputs path, add $(FLYTE_INPUT_FILE), $(FLYTE_OUTPUT_FILE) wherever makes sense and the
// system will populate these before executing the container.
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
// Container resources requirement as specified by the container engine.
Resources *Resources `protobuf:"bytes,4,opt,name=resources,proto3" json:"resources,omitempty"`
// Environment variables will be set as the container is starting up.
Env []*KeyValuePair `protobuf:"bytes,5,rep,name=env,proto3" json:"env,omitempty"`
// Allows extra configs to be available for the container.
// TODO: elaborate on how configs will become available.
Config []*KeyValuePair `protobuf:"bytes,6,rep,name=config,proto3" json:"config,omitempty"`
// Ports to open in the container. This feature is not supported by all execution engines. (e.g. supported on K8s but
// not supported on AWS Batch)
Ports []*ContainerPort `protobuf:"bytes,7,rep,name=ports,proto3" json:"ports,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Container) Reset() { *m = Container{} }
func (m *Container) String() string { return proto.CompactTextString(m) }
func (*Container) ProtoMessage() {}
func (*Container) Descriptor() ([]byte, []int) {
return fileDescriptor_tasks_f2650cafe1f6b7ce, []int{5}
}
func (m *Container) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Container.Unmarshal(m, b)
}
func (m *Container) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Container.Marshal(b, m, deterministic)
}
func (dst *Container) XXX_Merge(src proto.Message) {
xxx_messageInfo_Container.Merge(dst, src)
}
func (m *Container) XXX_Size() int {
return xxx_messageInfo_Container.Size(m)
}
func (m *Container) XXX_DiscardUnknown() {
xxx_messageInfo_Container.DiscardUnknown(m)
}
var xxx_messageInfo_Container proto.InternalMessageInfo
func (m *Container) GetImage() string {
if m != nil {
return m.Image
}
return ""
}
func (m *Container) GetCommand() []string {
if m != nil {
return m.Command
}
return nil
}
func (m *Container) GetArgs() []string {
if m != nil {
return m.Args
}
return nil
}
func (m *Container) GetResources() *Resources {
if m != nil {
return m.Resources
}
return nil
}
func (m *Container) GetEnv() []*KeyValuePair {
if m != nil {
return m.Env
}
return nil
}
func (m *Container) GetConfig() []*KeyValuePair {
if m != nil {
return m.Config
}
return nil
}
func (m *Container) GetPorts() []*ContainerPort {
if m != nil {
return m.Ports
}
return nil
}
func init() {
proto.RegisterType((*Resources)(nil), "flyteidl.core.Resources")
proto.RegisterType((*Resources_ResourceEntry)(nil), "flyteidl.core.Resources.ResourceEntry")
proto.RegisterType((*RuntimeMetadata)(nil), "flyteidl.core.RuntimeMetadata")
proto.RegisterType((*TaskMetadata)(nil), "flyteidl.core.TaskMetadata")
proto.RegisterType((*TaskTemplate)(nil), "flyteidl.core.TaskTemplate")
proto.RegisterType((*ContainerPort)(nil), "flyteidl.core.ContainerPort")
proto.RegisterType((*Container)(nil), "flyteidl.core.Container")
proto.RegisterEnum("flyteidl.core.Resources_ResourceName", Resources_ResourceName_name, Resources_ResourceName_value)
proto.RegisterEnum("flyteidl.core.RuntimeMetadata_RuntimeType", RuntimeMetadata_RuntimeType_name, RuntimeMetadata_RuntimeType_value)
}
func init() { proto.RegisterFile("flyteidl/core/tasks.proto", fileDescriptor_tasks_f2650cafe1f6b7ce) }
var fileDescriptor_tasks_f2650cafe1f6b7ce = []byte{
// 828 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xed, 0x6e, 0xdb, 0x36,
0x14, 0x8d, 0xed, 0x58, 0x8e, 0xae, 0xe3, 0xce, 0x23, 0x86, 0x4e, 0xcd, 0xd2, 0x20, 0x10, 0xd0,
0x2d, 0xdb, 0x50, 0x6b, 0x70, 0x80, 0x2c, 0xc3, 0x80, 0x02, 0x4b, 0xeb, 0x7e, 0x20, 0xcb, 0x07,
0x18, 0xa7, 0x43, 0xf7, 0xc7, 0xa3, 0xa5, 0x6b, 0x8d, 0xa8, 0x24, 0x7a, 0x24, 0x65, 0x40, 0x4f,
0xb3, 0x17, 0xd8, 0x03, 0x6c, 0xff, 0xf6, 0x68, 0x83, 0xa8, 0x8f, 0x58, 0x2e, 0xba, 0xa2, 0xbf,
0xc4, 0xab, 0x73, 0xce, 0xd5, 0xe5, 0xb9, 0xe4, 0x15, 0x3c, 0x58, 0x44, 0x99, 0x46, 0x1e, 0x44,
0x9e, 0x2f, 0x24, 0x7a, 0x9a, 0xa9, 0xb7, 0x6a, 0xb4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