This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
/
titus_job_api.pb.go
7047 lines (6302 loc) · 284 KB
/
titus_job_api.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
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.21.2
// source: netflix/titus/titus_job_api.proto
// Titus job management API specification.
//
package titus
import (
reflect "reflect"
sync "sync"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type NetworkConfiguration_NetworkMode int32
const (
// Unknown, the backend will have to chose a sane default base on other
// inputs
NetworkConfiguration_UnknownNetworkMode NetworkConfiguration_NetworkMode = 0
// IPv4 only means the task will not get an ipv6 address, and will only get
// a unique v4.
NetworkConfiguration_Ipv4Only NetworkConfiguration_NetworkMode = 1
// IPv6 And IPv4 (True Dual Stack), each task gets a unique v6 and v4
// address.
NetworkConfiguration_Ipv6AndIpv4 NetworkConfiguration_NetworkMode = 2
// IPv6 and IPv4 Fallback uses the Titus IPv4 "transition mechanism" to give
// v4 connectivity transparently without providing every container their own
// IPv4 address. From a spinnaker/task perspective, only an IPv6 address is
// allocated to the task.
NetworkConfiguration_Ipv6AndIpv4Fallback NetworkConfiguration_NetworkMode = 3
// IPv6 Only is for true believers, no IPv4 connectivity is provided.
NetworkConfiguration_Ipv6Only NetworkConfiguration_NetworkMode = 4
// HighScale is a special mode, which applies opinionated network settings
// to the workload for maximum scalability for the network.
// Enabling this mode *removes* the option for the user to select which
// subnets or security groups in use by the workload.
// Instead, special HighScale subnets and security groups are chosen.
NetworkConfiguration_HighScale NetworkConfiguration_NetworkMode = 5
)
// Enum value maps for NetworkConfiguration_NetworkMode.
var (
NetworkConfiguration_NetworkMode_name = map[int32]string{
0: "UnknownNetworkMode",
1: "Ipv4Only",
2: "Ipv6AndIpv4",
3: "Ipv6AndIpv4Fallback",
4: "Ipv6Only",
5: "HighScale",
}
NetworkConfiguration_NetworkMode_value = map[string]int32{
"UnknownNetworkMode": 0,
"Ipv4Only": 1,
"Ipv6AndIpv4": 2,
"Ipv6AndIpv4Fallback": 3,
"Ipv6Only": 4,
"HighScale": 5,
}
)
func (x NetworkConfiguration_NetworkMode) Enum() *NetworkConfiguration_NetworkMode {
p := new(NetworkConfiguration_NetworkMode)
*p = x
return p
}
func (x NetworkConfiguration_NetworkMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (NetworkConfiguration_NetworkMode) Descriptor() protoreflect.EnumDescriptor {
return file_netflix_titus_titus_job_api_proto_enumTypes[0].Descriptor()
}
func (NetworkConfiguration_NetworkMode) Type() protoreflect.EnumType {
return &file_netflix_titus_titus_job_api_proto_enumTypes[0]
}
func (x NetworkConfiguration_NetworkMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use NetworkConfiguration_NetworkMode.Descriptor instead.
func (NetworkConfiguration_NetworkMode) EnumDescriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{4, 0}
}
// State information associated with a job.
type JobStatus_JobState int32
const (
// A job is persisted in Titus and is ready to be scheduled.
JobStatus_Accepted JobStatus_JobState = 0
// A job still has running tasks that were requested to be terminated. No
// more tasks for this job are deployed.
// Job policy update operations are not allowed.
JobStatus_KillInitiated JobStatus_JobState = 1
// A job has no running tasks, and new tasks cannot be created. Job policy
// update operations are not allowed.
JobStatus_Finished JobStatus_JobState = 2
)
// Enum value maps for JobStatus_JobState.
var (
JobStatus_JobState_name = map[int32]string{
0: "Accepted",
1: "KillInitiated",
2: "Finished",
}
JobStatus_JobState_value = map[string]int32{
"Accepted": 0,
"KillInitiated": 1,
"Finished": 2,
}
)
func (x JobStatus_JobState) Enum() *JobStatus_JobState {
p := new(JobStatus_JobState)
*p = x
return p
}
func (x JobStatus_JobState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (JobStatus_JobState) Descriptor() protoreflect.EnumDescriptor {
return file_netflix_titus_titus_job_api_proto_enumTypes[1].Descriptor()
}
func (JobStatus_JobState) Type() protoreflect.EnumType {
return &file_netflix_titus_titus_job_api_proto_enumTypes[1]
}
func (x JobStatus_JobState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use JobStatus_JobState.Descriptor instead.
func (JobStatus_JobState) EnumDescriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{16, 0}
}
// State information associated with a task.
type TaskStatus_TaskState int32
const (
// A task was passed to the scheduler but has no resources allocated yet.
TaskStatus_Accepted TaskStatus_TaskState = 0
// A task had resources allocated and was passed to Mesos.
TaskStatus_Launched TaskStatus_TaskState = 1
// An executor provisioned resources for a task.
TaskStatus_StartInitiated TaskStatus_TaskState = 2
// The container was started.
TaskStatus_Started TaskStatus_TaskState = 3
// A user requested the task to be terminated. An executor is stopping the
// task and releasing its allocated resources.
TaskStatus_KillInitiated TaskStatus_TaskState = 4
// No connectivity between Mesos and an agent running a task. The task's
// state cannot be determined until the connection
// is established again.
TaskStatus_Disconnected TaskStatus_TaskState = 5
// A task completed or was forced by a user to be terminated. All resources
// previously assigned to this task are released.
TaskStatus_Finished TaskStatus_TaskState = 6
)
// Enum value maps for TaskStatus_TaskState.
var (
TaskStatus_TaskState_name = map[int32]string{
0: "Accepted",
1: "Launched",
2: "StartInitiated",
3: "Started",
4: "KillInitiated",
5: "Disconnected",
6: "Finished",
}
TaskStatus_TaskState_value = map[string]int32{
"Accepted": 0,
"Launched": 1,
"StartInitiated": 2,
"Started": 3,
"KillInitiated": 4,
"Disconnected": 5,
"Finished": 6,
}
)
func (x TaskStatus_TaskState) Enum() *TaskStatus_TaskState {
p := new(TaskStatus_TaskState)
*p = x
return p
}
func (x TaskStatus_TaskState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TaskStatus_TaskState) Descriptor() protoreflect.EnumDescriptor {
return file_netflix_titus_titus_job_api_proto_enumTypes[2].Descriptor()
}
func (TaskStatus_TaskState) Type() protoreflect.EnumType {
return &file_netflix_titus_titus_job_api_proto_enumTypes[2]
}
func (x TaskStatus_TaskState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TaskStatus_TaskState.Descriptor instead.
func (TaskStatus_TaskState) EnumDescriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{17, 0}
}
type TaskStatus_ContainerState_ContainerHealth int32
const (
// Unset means we haven't gotten any signal yet about healthiness
TaskStatus_ContainerState_Unset TaskStatus_ContainerState_ContainerHealth = 0
// Unhealthy means the container is no longer passing its healthcheck
TaskStatus_ContainerState_Unhealthy TaskStatus_ContainerState_ContainerHealth = 1
// Healthy means the container is passing its healthcheck
TaskStatus_ContainerState_Healthy TaskStatus_ContainerState_ContainerHealth = 2
)
// Enum value maps for TaskStatus_ContainerState_ContainerHealth.
var (
TaskStatus_ContainerState_ContainerHealth_name = map[int32]string{
0: "Unset",
1: "Unhealthy",
2: "Healthy",
}
TaskStatus_ContainerState_ContainerHealth_value = map[string]int32{
"Unset": 0,
"Unhealthy": 1,
"Healthy": 2,
}
)
func (x TaskStatus_ContainerState_ContainerHealth) Enum() *TaskStatus_ContainerState_ContainerHealth {
p := new(TaskStatus_ContainerState_ContainerHealth)
*p = x
return p
}
func (x TaskStatus_ContainerState_ContainerHealth) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TaskStatus_ContainerState_ContainerHealth) Descriptor() protoreflect.EnumDescriptor {
return file_netflix_titus_titus_job_api_proto_enumTypes[3].Descriptor()
}
func (TaskStatus_ContainerState_ContainerHealth) Type() protoreflect.EnumType {
return &file_netflix_titus_titus_job_api_proto_enumTypes[3]
}
func (x TaskStatus_ContainerState_ContainerHealth) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TaskStatus_ContainerState_ContainerHealth.Descriptor instead.
func (TaskStatus_ContainerState_ContainerHealth) EnumDescriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{17, 0, 0}
}
// An owner of a job.
type Owner struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) An owner's email address.
TeamEmail string `protobuf:"bytes,1,opt,name=teamEmail,proto3" json:"teamEmail,omitempty"`
}
func (x *Owner) Reset() {
*x = Owner{}
if protoimpl.UnsafeEnabled {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Owner) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Owner) ProtoMessage() {}
func (x *Owner) ProtoReflect() protoreflect.Message {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Owner.ProtoReflect.Descriptor instead.
func (*Owner) Descriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{0}
}
func (x *Owner) GetTeamEmail() string {
if x != nil {
return x.TeamEmail
}
return ""
}
// Additional information for building a supplementary job identifier, as the
// 'applicationName' can be shared by
// many jobs running at the same time in Titus. By setting 'JobGroupInfo', a
// user may create a job id that is guaranteed to be unique accross all
// currently running Titus jobs. The uniquness is checked if any of the
// attributes in this record is a non empty string. The full name is built as:
// '<application_name>-<stack>-<detail>-<sequence>.
type JobGroupInfo struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Optional) Any text. It is recommended (but not required), that the value
// does not include the '-' character.
Stack string `protobuf:"bytes,1,opt,name=stack,proto3" json:"stack,omitempty"`
// (Optional) Any text. It is recommended (but not required), that the value
// does not include the '-' character.
Detail string `protobuf:"bytes,2,opt,name=detail,proto3" json:"detail,omitempty"`
// (Optional) Any text. It is recommended (but not required), that the value
// does not include the '-' character.
Sequence string `protobuf:"bytes,3,opt,name=sequence,proto3" json:"sequence,omitempty"`
}
func (x *JobGroupInfo) Reset() {
*x = JobGroupInfo{}
if protoimpl.UnsafeEnabled {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *JobGroupInfo) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*JobGroupInfo) ProtoMessage() {}
func (x *JobGroupInfo) ProtoReflect() protoreflect.Message {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use JobGroupInfo.ProtoReflect.Descriptor instead.
func (*JobGroupInfo) Descriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{1}
}
func (x *JobGroupInfo) GetStack() string {
if x != nil {
return x.Stack
}
return ""
}
func (x *JobGroupInfo) GetDetail() string {
if x != nil {
return x.Detail
}
return ""
}
func (x *JobGroupInfo) GetSequence() string {
if x != nil {
return x.Sequence
}
return ""
}
// Task placement constraints. Currently supported constraint types are:
// * zoneBalance - distributes tasks of a job evenly among the availability
// zones
// * uniqueHost - runs each task of a job on a different agent
// * exclusiveHost - ensures that an agent is exclusively assigned to a given
// job
type Constraints struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Optional) A map of constraint name/values. If multiple constraints are
// given, all must be met (logical 'and').
Constraints map[string]string `protobuf:"bytes,1,rep,name=constraints,proto3" json:"constraints,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Not supported yet.
// (Optional) An expression combining multiple constraints. For example
// 'zoneBalance AND serverGroup == "mySG"'. Avalilable operators: <, <=, ==,
// >, >=, in, like, AND, OR
Expression string `protobuf:"bytes,2,opt,name=expression,proto3" json:"expression,omitempty"`
}
func (x *Constraints) Reset() {
*x = Constraints{}
if protoimpl.UnsafeEnabled {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Constraints) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Constraints) ProtoMessage() {}
func (x *Constraints) ProtoReflect() protoreflect.Message {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Constraints.ProtoReflect.Descriptor instead.
func (*Constraints) Descriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{2}
}
func (x *Constraints) GetConstraints() map[string]string {
if x != nil {
return x.Constraints
}
return nil
}
func (x *Constraints) GetExpression() string {
if x != nil {
return x.Expression
}
return ""
}
// To reference an image, a user has to provide an image name and a version. A
// user may specify a version either with
// a tag value (for example 'latest') or a digest. When submitting a job, a user
// should provide either a tag or a digest value only (not both of them).
//
// For example, docker images can be referenced by {name=titus-examples,
// tag=latest}. A user could also choose to provide only the digest without a
// tag. In this case, the tag value would be empty.
type Image struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) Image name.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// (Required if digest not set) Image tag.
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
// (Required if tag not set) Image digest.
Digest string `protobuf:"bytes,3,opt,name=digest,proto3" json:"digest,omitempty"`
}
func (x *Image) Reset() {
*x = Image{}
if protoimpl.UnsafeEnabled {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Image) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Image) ProtoMessage() {}
func (x *Image) ProtoReflect() protoreflect.Message {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Image.ProtoReflect.Descriptor instead.
func (*Image) Descriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{3}
}
func (x *Image) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Image) GetTag() string {
if x != nil {
return x.Tag
}
return ""
}
func (x *Image) GetDigest() string {
if x != nil {
return x.Digest
}
return ""
}
// Network settings for tasks launched by this job
type NetworkConfiguration struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Sets the overall network mode for all containers for a Task launched by
// this job
NetworkMode NetworkConfiguration_NetworkMode `protobuf:"varint,1,opt,name=networkMode,proto3,enum=com.netflix.titus.NetworkConfiguration_NetworkMode" json:"networkMode,omitempty"`
}
func (x *NetworkConfiguration) Reset() {
*x = NetworkConfiguration{}
if protoimpl.UnsafeEnabled {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *NetworkConfiguration) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*NetworkConfiguration) ProtoMessage() {}
func (x *NetworkConfiguration) ProtoReflect() protoreflect.Message {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use NetworkConfiguration.ProtoReflect.Descriptor instead.
func (*NetworkConfiguration) Descriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{4}
}
func (x *NetworkConfiguration) GetNetworkMode() NetworkConfiguration_NetworkMode {
if x != nil {
return x.NetworkMode
}
return NetworkConfiguration_UnknownNetworkMode
}
type ContainerResources struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) Number of CPUs to allocate to a task
// (must be always > 0, but the actual limit is configurable).
Cpu float64 `protobuf:"fixed64,1,opt,name=cpu,proto3" json:"cpu,omitempty"`
// (Optional) Number of GPUs to allocate to a task.
Gpu uint32 `protobuf:"varint,2,opt,name=gpu,proto3" json:"gpu,omitempty"`
// (Required) Amount of memory to allocate to a task
// (must be always > 0, but the actual limit is configurable).
MemoryMB uint32 `protobuf:"varint,3,opt,name=memoryMB,proto3" json:"memoryMB,omitempty"`
// (Required) Amount of ephemeral disk space to allocate to a task
// (must be always > 0, but the actual limit is configurable).
DiskMB uint32 `protobuf:"varint,4,opt,name=diskMB,proto3" json:"diskMB,omitempty"`
// (Required) Amount of network bandwidth to allocate to an individual task
// (must be always > 0, but the actual limit is configurable).
NetworkMbps uint32 `protobuf:"varint,5,opt,name=networkMbps,proto3" json:"networkMbps,omitempty"`
// (Deprecated) IP always allocated.
AllocateIP bool `protobuf:"varint,6,opt,name=allocateIP,proto3" json:"allocateIP,omitempty"`
// (Optional) EFS mounts.
EfsMounts []*ContainerResources_EfsMount `protobuf:"bytes,7,rep,name=efsMounts,proto3" json:"efsMounts,omitempty"`
// (Optional) Size of shared memory /dev/shm. If not set, a default value
// will be provided. A provided value
// must be less than or equal to amount of memory allocated.
ShmSizeMB uint32 `protobuf:"varint,8,opt,name=shmSizeMB,proto3" json:"shmSizeMB,omitempty"`
// (Optional) IP addresses allocated from Titus VPC IP service to be assigned
// to tasks.
SignedAddressAllocations []*SignedAddressAllocation `protobuf:"bytes,9,rep,name=signedAddressAllocations,proto3" json:"signedAddressAllocations,omitempty"`
// (Optional) IP addresses allocated from Titus VPC IP service to be assigned
// to tasks via AllocateAddressRequestV2. Mutually exclusive with
// signedAddressAllocations
//
// Types that are assignable to StaticIPAddresses:
// *ContainerResources_Pool
// *ContainerResources_StaticIPAddressIDs
StaticIPAddresses isContainerResources_StaticIPAddresses `protobuf_oneof:"staticIPAddresses"`
}
func (x *ContainerResources) Reset() {
*x = ContainerResources{}
if protoimpl.UnsafeEnabled {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ContainerResources) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ContainerResources) ProtoMessage() {}
func (x *ContainerResources) ProtoReflect() protoreflect.Message {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ContainerResources.ProtoReflect.Descriptor instead.
func (*ContainerResources) Descriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{5}
}
func (x *ContainerResources) GetCpu() float64 {
if x != nil {
return x.Cpu
}
return 0
}
func (x *ContainerResources) GetGpu() uint32 {
if x != nil {
return x.Gpu
}
return 0
}
func (x *ContainerResources) GetMemoryMB() uint32 {
if x != nil {
return x.MemoryMB
}
return 0
}
func (x *ContainerResources) GetDiskMB() uint32 {
if x != nil {
return x.DiskMB
}
return 0
}
func (x *ContainerResources) GetNetworkMbps() uint32 {
if x != nil {
return x.NetworkMbps
}
return 0
}
func (x *ContainerResources) GetAllocateIP() bool {
if x != nil {
return x.AllocateIP
}
return false
}
func (x *ContainerResources) GetEfsMounts() []*ContainerResources_EfsMount {
if x != nil {
return x.EfsMounts
}
return nil
}
func (x *ContainerResources) GetShmSizeMB() uint32 {
if x != nil {
return x.ShmSizeMB
}
return 0
}
func (x *ContainerResources) GetSignedAddressAllocations() []*SignedAddressAllocation {
if x != nil {
return x.SignedAddressAllocations
}
return nil
}
func (m *ContainerResources) GetStaticIPAddresses() isContainerResources_StaticIPAddresses {
if m != nil {
return m.StaticIPAddresses
}
return nil
}
func (x *ContainerResources) GetPool() string {
if x, ok := x.GetStaticIPAddresses().(*ContainerResources_Pool); ok {
return x.Pool
}
return ""
}
func (x *ContainerResources) GetStaticIPAddressIDs() *StaticIPAddressIDs {
if x, ok := x.GetStaticIPAddresses().(*ContainerResources_StaticIPAddressIDs); ok {
return x.StaticIPAddressIDs
}
return nil
}
type isContainerResources_StaticIPAddresses interface {
isContainerResources_StaticIPAddresses()
}
type ContainerResources_Pool struct {
// The name of the pool of static IPs to select from
Pool string `protobuf:"bytes,10,opt,name=pool,proto3,oneof"`
}
type ContainerResources_StaticIPAddressIDs struct {
// The list of addresses to use for this job
StaticIPAddressIDs *StaticIPAddressIDs `protobuf:"bytes,11,opt,name=staticIPAddressIDs,proto3,oneof"`
}
func (*ContainerResources_Pool) isContainerResources_StaticIPAddresses() {}
func (*ContainerResources_StaticIPAddressIDs) isContainerResources_StaticIPAddresses() {}
// Container security profile.
type SecurityProfile struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) Security groups associated with a container. The expected
// number of security groups is between 1 and 6.
SecurityGroups []string `protobuf:"bytes,1,rep,name=securityGroups,proto3" json:"securityGroups,omitempty"`
// (Required) IAM role.
IamRole string `protobuf:"bytes,2,opt,name=iamRole,proto3" json:"iamRole,omitempty"`
// (Optional) Additional security attributes. Key names starting with
// 'titus.' are reserved by Titus.
Attributes map[string]string `protobuf:"bytes,3,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *SecurityProfile) Reset() {
*x = SecurityProfile{}
if protoimpl.UnsafeEnabled {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SecurityProfile) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SecurityProfile) ProtoMessage() {}
func (x *SecurityProfile) ProtoReflect() protoreflect.Message {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SecurityProfile.ProtoReflect.Descriptor instead.
func (*SecurityProfile) Descriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{6}
}
func (x *SecurityProfile) GetSecurityGroups() []string {
if x != nil {
return x.SecurityGroups
}
return nil
}
func (x *SecurityProfile) GetIamRole() string {
if x != nil {
return x.IamRole
}
return ""
}
func (x *SecurityProfile) GetAttributes() map[string]string {
if x != nil {
return x.Attributes
}
return nil
}
// Container descriptor.
type Container struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// (Required) Resources for the whole task.
Resources *ContainerResources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"`
// (Required) Container security profile: IAM role, security groups,
// container roles.
SecurityProfile *SecurityProfile `protobuf:"bytes,2,opt,name=securityProfile,proto3" json:"securityProfile,omitempty"`
// (Required) Image reference.
Image *Image `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
// (Optional) Arbitrary set of key/value pairs. Key names starting with
// 'titus.' are reserved by Titus.
Attributes map[string]string `protobuf:"bytes,4,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// (Optional) Override the entrypoint of the image.
// If set, the command baked into the image (if any) is always ignored.
// Interactions between the entrypoint and command are the same as specified
// by Docker:
// https://docs.docker.com/engine/reference/builder/#understand-how-cmd-and-entrypoint-interact
//
// To clear (unset) the entrypoint of the image, pass a single empty string
// value: [""]
EntryPoint []string `protobuf:"bytes,5,rep,name=entryPoint,proto3" json:"entryPoint,omitempty"`
// (Optional) Additional parameters for the entrypoint defined either here
// or provided in the container image.
// To clear (unset) the command of the image, pass a single empty string
// value: [""]
Command []string `protobuf:"bytes,6,rep,name=command,proto3" json:"command,omitempty"`
// (Optional) A collection of system environment variables passed to the
// container.
Env map[string]string `protobuf:"bytes,7,rep,name=env,proto3" json:"env,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// (Optional) Constraints that Titus will prefer to fulfill but are not
// required. These constraints apply to the whole task.
SoftConstraints *Constraints `protobuf:"bytes,8,opt,name=softConstraints,proto3" json:"softConstraints,omitempty"`
// (Optional) Constraints that have to be met for a task to be scheduled on
// an agent. These constraints apply to the whole task.
HardConstraints *Constraints `protobuf:"bytes,9,opt,name=hardConstraints,proto3" json:"hardConstraints,omitempty"`
// (Optional) Experimental features
Experimental *anypb.Any `protobuf:"bytes,10,opt,name=experimental,proto3" json:"experimental,omitempty"`
// (Optional) An array of VolumeMounts. These VolumeMounts will be mounted in
// the container, and must reference one of the volumes declared for the Job.
// See the k8s docs
// https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.19/#volumemount-v1-core
// for more technical details.
VolumeMounts []*VolumeMount `protobuf:"bytes,11,rep,name=volumeMounts,proto3" json:"volumeMounts,omitempty"`
// (Optional) additional capabilities for the container to have to enable
// certain advanced features. Note that arbitrary combinations of `ContainerCapability`s
// are not supported.
ContainerCapabilities []ContainerCapability `protobuf:"varint,12,rep,packed,name=containerCapabilities,proto3,enum=com.netflix.titus.ContainerCapability" json:"containerCapabilities,omitempty"`
}
func (x *Container) Reset() {
*x = Container{}
if protoimpl.UnsafeEnabled {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Container) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Container) ProtoMessage() {}
func (x *Container) ProtoReflect() protoreflect.Message {
mi := &file_netflix_titus_titus_job_api_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Container.ProtoReflect.Descriptor instead.
func (*Container) Descriptor() ([]byte, []int) {
return file_netflix_titus_titus_job_api_proto_rawDescGZIP(), []int{7}
}
func (x *Container) GetResources() *ContainerResources {
if x != nil {
return x.Resources
}
return nil
}
func (x *Container) GetSecurityProfile() *SecurityProfile {
if x != nil {
return x.SecurityProfile
}
return nil
}
func (x *Container) GetImage() *Image {
if x != nil {
return x.Image
}
return nil
}
func (x *Container) GetAttributes() map[string]string {
if x != nil {
return x.Attributes
}
return nil
}
func (x *Container) GetEntryPoint() []string {
if x != nil {
return x.EntryPoint
}
return nil
}
func (x *Container) GetCommand() []string {
if x != nil {
return x.Command
}
return nil
}
func (x *Container) GetEnv() map[string]string {
if x != nil {
return x.Env
}
return nil
}
func (x *Container) GetSoftConstraints() *Constraints {
if x != nil {
return x.SoftConstraints
}
return nil
}
func (x *Container) GetHardConstraints() *Constraints {
if x != nil {
return x.HardConstraints
}
return nil
}
func (x *Container) GetExperimental() *anypb.Any {
if x != nil {
return x.Experimental
}
return nil
}
func (x *Container) GetVolumeMounts() []*VolumeMount {
if x != nil {