-
Notifications
You must be signed in to change notification settings - Fork 2k
/
driver.pb.go
4451 lines (3959 loc) · 170 KB
/
driver.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.
// source: plugins/drivers/proto/driver.proto
package proto
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
duration "github.com/golang/protobuf/ptypes/duration"
timestamp "github.com/golang/protobuf/ptypes/timestamp"
hclspec "github.com/hashicorp/nomad/plugins/shared/hclspec"
proto1 "github.com/hashicorp/nomad/plugins/shared/structs/proto"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
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
type TaskState int32
const (
TaskState_UNKNOWN TaskState = 0
TaskState_RUNNING TaskState = 1
TaskState_EXITED TaskState = 2
)
var TaskState_name = map[int32]string{
0: "UNKNOWN",
1: "RUNNING",
2: "EXITED",
}
var TaskState_value = map[string]int32{
"UNKNOWN": 0,
"RUNNING": 1,
"EXITED": 2,
}
func (x TaskState) String() string {
return proto.EnumName(TaskState_name, int32(x))
}
func (TaskState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{0}
}
type FingerprintResponse_HealthState int32
const (
FingerprintResponse_UNDETECTED FingerprintResponse_HealthState = 0
FingerprintResponse_UNHEALTHY FingerprintResponse_HealthState = 1
FingerprintResponse_HEALTHY FingerprintResponse_HealthState = 2
)
var FingerprintResponse_HealthState_name = map[int32]string{
0: "UNDETECTED",
1: "UNHEALTHY",
2: "HEALTHY",
}
var FingerprintResponse_HealthState_value = map[string]int32{
"UNDETECTED": 0,
"UNHEALTHY": 1,
"HEALTHY": 2,
}
func (x FingerprintResponse_HealthState) String() string {
return proto.EnumName(FingerprintResponse_HealthState_name, int32(x))
}
func (FingerprintResponse_HealthState) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{5, 0}
}
type StartTaskResponse_Result int32
const (
StartTaskResponse_SUCCESS StartTaskResponse_Result = 0
StartTaskResponse_RETRY StartTaskResponse_Result = 1
StartTaskResponse_FATAL StartTaskResponse_Result = 2
)
var StartTaskResponse_Result_name = map[int32]string{
0: "SUCCESS",
1: "RETRY",
2: "FATAL",
}
var StartTaskResponse_Result_value = map[string]int32{
"SUCCESS": 0,
"RETRY": 1,
"FATAL": 2,
}
func (x StartTaskResponse_Result) String() string {
return proto.EnumName(StartTaskResponse_Result_name, int32(x))
}
func (StartTaskResponse_Result) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{9, 0}
}
type DriverCapabilities_FSIsolation int32
const (
DriverCapabilities_NONE DriverCapabilities_FSIsolation = 0
DriverCapabilities_CHROOT DriverCapabilities_FSIsolation = 1
DriverCapabilities_IMAGE DriverCapabilities_FSIsolation = 2
)
var DriverCapabilities_FSIsolation_name = map[int32]string{
0: "NONE",
1: "CHROOT",
2: "IMAGE",
}
var DriverCapabilities_FSIsolation_value = map[string]int32{
"NONE": 0,
"CHROOT": 1,
"IMAGE": 2,
}
func (x DriverCapabilities_FSIsolation) String() string {
return proto.EnumName(DriverCapabilities_FSIsolation_name, int32(x))
}
func (DriverCapabilities_FSIsolation) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{32, 0}
}
type NetworkIsolationSpec_NetworkIsolationMode int32
const (
NetworkIsolationSpec_HOST NetworkIsolationSpec_NetworkIsolationMode = 0
NetworkIsolationSpec_GROUP NetworkIsolationSpec_NetworkIsolationMode = 1
NetworkIsolationSpec_TASK NetworkIsolationSpec_NetworkIsolationMode = 2
NetworkIsolationSpec_NONE NetworkIsolationSpec_NetworkIsolationMode = 3
)
var NetworkIsolationSpec_NetworkIsolationMode_name = map[int32]string{
0: "HOST",
1: "GROUP",
2: "TASK",
3: "NONE",
}
var NetworkIsolationSpec_NetworkIsolationMode_value = map[string]int32{
"HOST": 0,
"GROUP": 1,
"TASK": 2,
"NONE": 3,
}
func (x NetworkIsolationSpec_NetworkIsolationMode) String() string {
return proto.EnumName(NetworkIsolationSpec_NetworkIsolationMode_name, int32(x))
}
func (NetworkIsolationSpec_NetworkIsolationMode) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{33, 0}
}
type CPUUsage_Fields int32
const (
CPUUsage_SYSTEM_MODE CPUUsage_Fields = 0
CPUUsage_USER_MODE CPUUsage_Fields = 1
CPUUsage_TOTAL_TICKS CPUUsage_Fields = 2
CPUUsage_THROTTLED_PERIODS CPUUsage_Fields = 3
CPUUsage_THROTTLED_TIME CPUUsage_Fields = 4
CPUUsage_PERCENT CPUUsage_Fields = 5
)
var CPUUsage_Fields_name = map[int32]string{
0: "SYSTEM_MODE",
1: "USER_MODE",
2: "TOTAL_TICKS",
3: "THROTTLED_PERIODS",
4: "THROTTLED_TIME",
5: "PERCENT",
}
var CPUUsage_Fields_value = map[string]int32{
"SYSTEM_MODE": 0,
"USER_MODE": 1,
"TOTAL_TICKS": 2,
"THROTTLED_PERIODS": 3,
"THROTTLED_TIME": 4,
"PERCENT": 5,
}
func (x CPUUsage_Fields) String() string {
return proto.EnumName(CPUUsage_Fields_name, int32(x))
}
func (CPUUsage_Fields) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{51, 0}
}
type MemoryUsage_Fields int32
const (
MemoryUsage_RSS MemoryUsage_Fields = 0
MemoryUsage_CACHE MemoryUsage_Fields = 1
MemoryUsage_MAX_USAGE MemoryUsage_Fields = 2
MemoryUsage_KERNEL_USAGE MemoryUsage_Fields = 3
MemoryUsage_KERNEL_MAX_USAGE MemoryUsage_Fields = 4
MemoryUsage_USAGE MemoryUsage_Fields = 5
MemoryUsage_SWAP MemoryUsage_Fields = 6
)
var MemoryUsage_Fields_name = map[int32]string{
0: "RSS",
1: "CACHE",
2: "MAX_USAGE",
3: "KERNEL_USAGE",
4: "KERNEL_MAX_USAGE",
5: "USAGE",
6: "SWAP",
}
var MemoryUsage_Fields_value = map[string]int32{
"RSS": 0,
"CACHE": 1,
"MAX_USAGE": 2,
"KERNEL_USAGE": 3,
"KERNEL_MAX_USAGE": 4,
"USAGE": 5,
"SWAP": 6,
}
func (x MemoryUsage_Fields) String() string {
return proto.EnumName(MemoryUsage_Fields_name, int32(x))
}
func (MemoryUsage_Fields) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{52, 0}
}
type TaskConfigSchemaRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskConfigSchemaRequest) Reset() { *m = TaskConfigSchemaRequest{} }
func (m *TaskConfigSchemaRequest) String() string { return proto.CompactTextString(m) }
func (*TaskConfigSchemaRequest) ProtoMessage() {}
func (*TaskConfigSchemaRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{0}
}
func (m *TaskConfigSchemaRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskConfigSchemaRequest.Unmarshal(m, b)
}
func (m *TaskConfigSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskConfigSchemaRequest.Marshal(b, m, deterministic)
}
func (m *TaskConfigSchemaRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskConfigSchemaRequest.Merge(m, src)
}
func (m *TaskConfigSchemaRequest) XXX_Size() int {
return xxx_messageInfo_TaskConfigSchemaRequest.Size(m)
}
func (m *TaskConfigSchemaRequest) XXX_DiscardUnknown() {
xxx_messageInfo_TaskConfigSchemaRequest.DiscardUnknown(m)
}
var xxx_messageInfo_TaskConfigSchemaRequest proto.InternalMessageInfo
type TaskConfigSchemaResponse struct {
// Spec is the configuration schema for the job driver config stanza
Spec *hclspec.Spec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TaskConfigSchemaResponse) Reset() { *m = TaskConfigSchemaResponse{} }
func (m *TaskConfigSchemaResponse) String() string { return proto.CompactTextString(m) }
func (*TaskConfigSchemaResponse) ProtoMessage() {}
func (*TaskConfigSchemaResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{1}
}
func (m *TaskConfigSchemaResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TaskConfigSchemaResponse.Unmarshal(m, b)
}
func (m *TaskConfigSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TaskConfigSchemaResponse.Marshal(b, m, deterministic)
}
func (m *TaskConfigSchemaResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_TaskConfigSchemaResponse.Merge(m, src)
}
func (m *TaskConfigSchemaResponse) XXX_Size() int {
return xxx_messageInfo_TaskConfigSchemaResponse.Size(m)
}
func (m *TaskConfigSchemaResponse) XXX_DiscardUnknown() {
xxx_messageInfo_TaskConfigSchemaResponse.DiscardUnknown(m)
}
var xxx_messageInfo_TaskConfigSchemaResponse proto.InternalMessageInfo
func (m *TaskConfigSchemaResponse) GetSpec() *hclspec.Spec {
if m != nil {
return m.Spec
}
return nil
}
type CapabilitiesRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CapabilitiesRequest) Reset() { *m = CapabilitiesRequest{} }
func (m *CapabilitiesRequest) String() string { return proto.CompactTextString(m) }
func (*CapabilitiesRequest) ProtoMessage() {}
func (*CapabilitiesRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{2}
}
func (m *CapabilitiesRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CapabilitiesRequest.Unmarshal(m, b)
}
func (m *CapabilitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CapabilitiesRequest.Marshal(b, m, deterministic)
}
func (m *CapabilitiesRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_CapabilitiesRequest.Merge(m, src)
}
func (m *CapabilitiesRequest) XXX_Size() int {
return xxx_messageInfo_CapabilitiesRequest.Size(m)
}
func (m *CapabilitiesRequest) XXX_DiscardUnknown() {
xxx_messageInfo_CapabilitiesRequest.DiscardUnknown(m)
}
var xxx_messageInfo_CapabilitiesRequest proto.InternalMessageInfo
type CapabilitiesResponse struct {
// Capabilities provides a way for the driver to denote if it implements
// non-core RPCs. Some Driver service RPCs expose additional information
// or functionality outside of the core task management functions. These
// RPCs are only implemented if the driver sets the corresponding capability.
Capabilities *DriverCapabilities `protobuf:"bytes,1,opt,name=capabilities,proto3" json:"capabilities,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CapabilitiesResponse) Reset() { *m = CapabilitiesResponse{} }
func (m *CapabilitiesResponse) String() string { return proto.CompactTextString(m) }
func (*CapabilitiesResponse) ProtoMessage() {}
func (*CapabilitiesResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{3}
}
func (m *CapabilitiesResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CapabilitiesResponse.Unmarshal(m, b)
}
func (m *CapabilitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CapabilitiesResponse.Marshal(b, m, deterministic)
}
func (m *CapabilitiesResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_CapabilitiesResponse.Merge(m, src)
}
func (m *CapabilitiesResponse) XXX_Size() int {
return xxx_messageInfo_CapabilitiesResponse.Size(m)
}
func (m *CapabilitiesResponse) XXX_DiscardUnknown() {
xxx_messageInfo_CapabilitiesResponse.DiscardUnknown(m)
}
var xxx_messageInfo_CapabilitiesResponse proto.InternalMessageInfo
func (m *CapabilitiesResponse) GetCapabilities() *DriverCapabilities {
if m != nil {
return m.Capabilities
}
return nil
}
type FingerprintRequest struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FingerprintRequest) Reset() { *m = FingerprintRequest{} }
func (m *FingerprintRequest) String() string { return proto.CompactTextString(m) }
func (*FingerprintRequest) ProtoMessage() {}
func (*FingerprintRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{4}
}
func (m *FingerprintRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FingerprintRequest.Unmarshal(m, b)
}
func (m *FingerprintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FingerprintRequest.Marshal(b, m, deterministic)
}
func (m *FingerprintRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_FingerprintRequest.Merge(m, src)
}
func (m *FingerprintRequest) XXX_Size() int {
return xxx_messageInfo_FingerprintRequest.Size(m)
}
func (m *FingerprintRequest) XXX_DiscardUnknown() {
xxx_messageInfo_FingerprintRequest.DiscardUnknown(m)
}
var xxx_messageInfo_FingerprintRequest proto.InternalMessageInfo
type FingerprintResponse struct {
// Attributes are key/value pairs that annotate the nomad client and can be
// used in scheduling contraints and affinities.
Attributes map[string]*proto1.Attribute `protobuf:"bytes,1,rep,name=attributes,proto3" json:"attributes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Health is used to determine the state of the health the driver is in.
// Health can be one of the following states:
// * UNDETECTED: driver dependencies are not met and the driver can not start
// * UNHEALTHY: driver dependencies are met but the driver is unable to
// perform operations due to some other problem
// * HEALTHY: driver is able to perform all operations
Health FingerprintResponse_HealthState `protobuf:"varint,2,opt,name=health,proto3,enum=hashicorp.nomad.plugins.drivers.proto.FingerprintResponse_HealthState" json:"health,omitempty"`
// HealthDescription is a human readable message describing the current
// state of driver health
HealthDescription string `protobuf:"bytes,3,opt,name=health_description,json=healthDescription,proto3" json:"health_description,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FingerprintResponse) Reset() { *m = FingerprintResponse{} }
func (m *FingerprintResponse) String() string { return proto.CompactTextString(m) }
func (*FingerprintResponse) ProtoMessage() {}
func (*FingerprintResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{5}
}
func (m *FingerprintResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FingerprintResponse.Unmarshal(m, b)
}
func (m *FingerprintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FingerprintResponse.Marshal(b, m, deterministic)
}
func (m *FingerprintResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_FingerprintResponse.Merge(m, src)
}
func (m *FingerprintResponse) XXX_Size() int {
return xxx_messageInfo_FingerprintResponse.Size(m)
}
func (m *FingerprintResponse) XXX_DiscardUnknown() {
xxx_messageInfo_FingerprintResponse.DiscardUnknown(m)
}
var xxx_messageInfo_FingerprintResponse proto.InternalMessageInfo
func (m *FingerprintResponse) GetAttributes() map[string]*proto1.Attribute {
if m != nil {
return m.Attributes
}
return nil
}
func (m *FingerprintResponse) GetHealth() FingerprintResponse_HealthState {
if m != nil {
return m.Health
}
return FingerprintResponse_UNDETECTED
}
func (m *FingerprintResponse) GetHealthDescription() string {
if m != nil {
return m.HealthDescription
}
return ""
}
type RecoverTaskRequest struct {
// TaskId is the ID of the target task
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// Handle is the TaskHandle returned from StartTask
Handle *TaskHandle `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RecoverTaskRequest) Reset() { *m = RecoverTaskRequest{} }
func (m *RecoverTaskRequest) String() string { return proto.CompactTextString(m) }
func (*RecoverTaskRequest) ProtoMessage() {}
func (*RecoverTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{6}
}
func (m *RecoverTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RecoverTaskRequest.Unmarshal(m, b)
}
func (m *RecoverTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RecoverTaskRequest.Marshal(b, m, deterministic)
}
func (m *RecoverTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_RecoverTaskRequest.Merge(m, src)
}
func (m *RecoverTaskRequest) XXX_Size() int {
return xxx_messageInfo_RecoverTaskRequest.Size(m)
}
func (m *RecoverTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_RecoverTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_RecoverTaskRequest proto.InternalMessageInfo
func (m *RecoverTaskRequest) GetTaskId() string {
if m != nil {
return m.TaskId
}
return ""
}
func (m *RecoverTaskRequest) GetHandle() *TaskHandle {
if m != nil {
return m.Handle
}
return nil
}
type RecoverTaskResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RecoverTaskResponse) Reset() { *m = RecoverTaskResponse{} }
func (m *RecoverTaskResponse) String() string { return proto.CompactTextString(m) }
func (*RecoverTaskResponse) ProtoMessage() {}
func (*RecoverTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{7}
}
func (m *RecoverTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RecoverTaskResponse.Unmarshal(m, b)
}
func (m *RecoverTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RecoverTaskResponse.Marshal(b, m, deterministic)
}
func (m *RecoverTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_RecoverTaskResponse.Merge(m, src)
}
func (m *RecoverTaskResponse) XXX_Size() int {
return xxx_messageInfo_RecoverTaskResponse.Size(m)
}
func (m *RecoverTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_RecoverTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_RecoverTaskResponse proto.InternalMessageInfo
type StartTaskRequest struct {
// Task configuration to launch
Task *TaskConfig `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StartTaskRequest) Reset() { *m = StartTaskRequest{} }
func (m *StartTaskRequest) String() string { return proto.CompactTextString(m) }
func (*StartTaskRequest) ProtoMessage() {}
func (*StartTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{8}
}
func (m *StartTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StartTaskRequest.Unmarshal(m, b)
}
func (m *StartTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StartTaskRequest.Marshal(b, m, deterministic)
}
func (m *StartTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StartTaskRequest.Merge(m, src)
}
func (m *StartTaskRequest) XXX_Size() int {
return xxx_messageInfo_StartTaskRequest.Size(m)
}
func (m *StartTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_StartTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_StartTaskRequest proto.InternalMessageInfo
func (m *StartTaskRequest) GetTask() *TaskConfig {
if m != nil {
return m.Task
}
return nil
}
type StartTaskResponse struct {
// Result is set depending on the type of error that occurred while starting
// a task:
//
// * SUCCESS: No error occurred, handle is set
// * RETRY: An error occurred, but is recoverable and the RPC should be retried
// * FATAL: A fatal error occurred and is not likely to succeed if retried
//
// If Result is not successful, the DriverErrorMsg will be set.
Result StartTaskResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=hashicorp.nomad.plugins.drivers.proto.StartTaskResponse_Result" json:"result,omitempty"`
// DriverErrorMsg is set if an error occurred
DriverErrorMsg string `protobuf:"bytes,2,opt,name=driver_error_msg,json=driverErrorMsg,proto3" json:"driver_error_msg,omitempty"`
// Handle is opaque to the client, but must be stored in order to recover
// the task.
Handle *TaskHandle `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"`
// NetworkOverride is set if the driver sets network settings and the service ip/port
// needs to be set differently.
NetworkOverride *NetworkOverride `protobuf:"bytes,4,opt,name=network_override,json=networkOverride,proto3" json:"network_override,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StartTaskResponse) Reset() { *m = StartTaskResponse{} }
func (m *StartTaskResponse) String() string { return proto.CompactTextString(m) }
func (*StartTaskResponse) ProtoMessage() {}
func (*StartTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{9}
}
func (m *StartTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StartTaskResponse.Unmarshal(m, b)
}
func (m *StartTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StartTaskResponse.Marshal(b, m, deterministic)
}
func (m *StartTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_StartTaskResponse.Merge(m, src)
}
func (m *StartTaskResponse) XXX_Size() int {
return xxx_messageInfo_StartTaskResponse.Size(m)
}
func (m *StartTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_StartTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_StartTaskResponse proto.InternalMessageInfo
func (m *StartTaskResponse) GetResult() StartTaskResponse_Result {
if m != nil {
return m.Result
}
return StartTaskResponse_SUCCESS
}
func (m *StartTaskResponse) GetDriverErrorMsg() string {
if m != nil {
return m.DriverErrorMsg
}
return ""
}
func (m *StartTaskResponse) GetHandle() *TaskHandle {
if m != nil {
return m.Handle
}
return nil
}
func (m *StartTaskResponse) GetNetworkOverride() *NetworkOverride {
if m != nil {
return m.NetworkOverride
}
return nil
}
type WaitTaskRequest struct {
// TaskId is the ID of the target task
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WaitTaskRequest) Reset() { *m = WaitTaskRequest{} }
func (m *WaitTaskRequest) String() string { return proto.CompactTextString(m) }
func (*WaitTaskRequest) ProtoMessage() {}
func (*WaitTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{10}
}
func (m *WaitTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WaitTaskRequest.Unmarshal(m, b)
}
func (m *WaitTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WaitTaskRequest.Marshal(b, m, deterministic)
}
func (m *WaitTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_WaitTaskRequest.Merge(m, src)
}
func (m *WaitTaskRequest) XXX_Size() int {
return xxx_messageInfo_WaitTaskRequest.Size(m)
}
func (m *WaitTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_WaitTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_WaitTaskRequest proto.InternalMessageInfo
func (m *WaitTaskRequest) GetTaskId() string {
if m != nil {
return m.TaskId
}
return ""
}
type WaitTaskResponse struct {
// Result is the exit status of the task
Result *ExitResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// Err is set if any driver error occurred while waiting for the task
Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *WaitTaskResponse) Reset() { *m = WaitTaskResponse{} }
func (m *WaitTaskResponse) String() string { return proto.CompactTextString(m) }
func (*WaitTaskResponse) ProtoMessage() {}
func (*WaitTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{11}
}
func (m *WaitTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_WaitTaskResponse.Unmarshal(m, b)
}
func (m *WaitTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_WaitTaskResponse.Marshal(b, m, deterministic)
}
func (m *WaitTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_WaitTaskResponse.Merge(m, src)
}
func (m *WaitTaskResponse) XXX_Size() int {
return xxx_messageInfo_WaitTaskResponse.Size(m)
}
func (m *WaitTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_WaitTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_WaitTaskResponse proto.InternalMessageInfo
func (m *WaitTaskResponse) GetResult() *ExitResult {
if m != nil {
return m.Result
}
return nil
}
func (m *WaitTaskResponse) GetErr() string {
if m != nil {
return m.Err
}
return ""
}
type StopTaskRequest struct {
// TaskId is the ID of the target task
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// Timeout defines the amount of time to wait before forcefully killing
// the task. For example, on Unix clients, this means sending a SIGKILL to
// the process.
Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"`
// Signal can be set to override the Task's configured shutdown signal
Signal string `protobuf:"bytes,3,opt,name=signal,proto3" json:"signal,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StopTaskRequest) Reset() { *m = StopTaskRequest{} }
func (m *StopTaskRequest) String() string { return proto.CompactTextString(m) }
func (*StopTaskRequest) ProtoMessage() {}
func (*StopTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{12}
}
func (m *StopTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StopTaskRequest.Unmarshal(m, b)
}
func (m *StopTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StopTaskRequest.Marshal(b, m, deterministic)
}
func (m *StopTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_StopTaskRequest.Merge(m, src)
}
func (m *StopTaskRequest) XXX_Size() int {
return xxx_messageInfo_StopTaskRequest.Size(m)
}
func (m *StopTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_StopTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_StopTaskRequest proto.InternalMessageInfo
func (m *StopTaskRequest) GetTaskId() string {
if m != nil {
return m.TaskId
}
return ""
}
func (m *StopTaskRequest) GetTimeout() *duration.Duration {
if m != nil {
return m.Timeout
}
return nil
}
func (m *StopTaskRequest) GetSignal() string {
if m != nil {
return m.Signal
}
return ""
}
type StopTaskResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *StopTaskResponse) Reset() { *m = StopTaskResponse{} }
func (m *StopTaskResponse) String() string { return proto.CompactTextString(m) }
func (*StopTaskResponse) ProtoMessage() {}
func (*StopTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{13}
}
func (m *StopTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_StopTaskResponse.Unmarshal(m, b)
}
func (m *StopTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_StopTaskResponse.Marshal(b, m, deterministic)
}
func (m *StopTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_StopTaskResponse.Merge(m, src)
}
func (m *StopTaskResponse) XXX_Size() int {
return xxx_messageInfo_StopTaskResponse.Size(m)
}
func (m *StopTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_StopTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_StopTaskResponse proto.InternalMessageInfo
type DestroyTaskRequest struct {
// TaskId is the ID of the target task
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
// Force destroys the task even if it is still in a running state
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DestroyTaskRequest) Reset() { *m = DestroyTaskRequest{} }
func (m *DestroyTaskRequest) String() string { return proto.CompactTextString(m) }
func (*DestroyTaskRequest) ProtoMessage() {}
func (*DestroyTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{14}
}
func (m *DestroyTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DestroyTaskRequest.Unmarshal(m, b)
}
func (m *DestroyTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DestroyTaskRequest.Marshal(b, m, deterministic)
}
func (m *DestroyTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_DestroyTaskRequest.Merge(m, src)
}
func (m *DestroyTaskRequest) XXX_Size() int {
return xxx_messageInfo_DestroyTaskRequest.Size(m)
}
func (m *DestroyTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_DestroyTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_DestroyTaskRequest proto.InternalMessageInfo
func (m *DestroyTaskRequest) GetTaskId() string {
if m != nil {
return m.TaskId
}
return ""
}
func (m *DestroyTaskRequest) GetForce() bool {
if m != nil {
return m.Force
}
return false
}
type DestroyTaskResponse struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DestroyTaskResponse) Reset() { *m = DestroyTaskResponse{} }
func (m *DestroyTaskResponse) String() string { return proto.CompactTextString(m) }
func (*DestroyTaskResponse) ProtoMessage() {}
func (*DestroyTaskResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{15}
}
func (m *DestroyTaskResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DestroyTaskResponse.Unmarshal(m, b)
}
func (m *DestroyTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DestroyTaskResponse.Marshal(b, m, deterministic)
}
func (m *DestroyTaskResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_DestroyTaskResponse.Merge(m, src)
}
func (m *DestroyTaskResponse) XXX_Size() int {
return xxx_messageInfo_DestroyTaskResponse.Size(m)
}
func (m *DestroyTaskResponse) XXX_DiscardUnknown() {
xxx_messageInfo_DestroyTaskResponse.DiscardUnknown(m)
}
var xxx_messageInfo_DestroyTaskResponse proto.InternalMessageInfo
type InspectTaskRequest struct {
// TaskId is the ID of the target task
TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InspectTaskRequest) Reset() { *m = InspectTaskRequest{} }
func (m *InspectTaskRequest) String() string { return proto.CompactTextString(m) }
func (*InspectTaskRequest) ProtoMessage() {}
func (*InspectTaskRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_4a8f45747846a74d, []int{16}
}
func (m *InspectTaskRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_InspectTaskRequest.Unmarshal(m, b)
}
func (m *InspectTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_InspectTaskRequest.Marshal(b, m, deterministic)
}
func (m *InspectTaskRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_InspectTaskRequest.Merge(m, src)
}
func (m *InspectTaskRequest) XXX_Size() int {
return xxx_messageInfo_InspectTaskRequest.Size(m)
}
func (m *InspectTaskRequest) XXX_DiscardUnknown() {
xxx_messageInfo_InspectTaskRequest.DiscardUnknown(m)
}
var xxx_messageInfo_InspectTaskRequest proto.InternalMessageInfo
func (m *InspectTaskRequest) GetTaskId() string {
if m != nil {
return m.TaskId
}
return ""
}
type InspectTaskResponse struct {
// Task details
Task *TaskStatus `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"`
// Driver details for task
Driver *TaskDriverStatus `protobuf:"bytes,2,opt,name=driver,proto3" json:"driver,omitempty"`
// NetworkOverride info if set
NetworkOverride *NetworkOverride `protobuf:"bytes,3,opt,name=network_override,json=networkOverride,proto3" json:"network_override,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *InspectTaskResponse) Reset() { *m = InspectTaskResponse{} }