github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/plugins/drivers/proto/driver.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: plugins/drivers/proto/driver.proto 3 4 package proto 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 duration "github.com/golang/protobuf/ptypes/duration" 11 timestamp "github.com/golang/protobuf/ptypes/timestamp" 12 hclspec "github.com/hashicorp/nomad/plugins/shared/hclspec" 13 proto1 "github.com/hashicorp/nomad/plugins/shared/structs/proto" 14 grpc "google.golang.org/grpc" 15 codes "google.golang.org/grpc/codes" 16 status "google.golang.org/grpc/status" 17 math "math" 18 ) 19 20 // Reference imports to suppress errors if they are not otherwise used. 21 var _ = proto.Marshal 22 var _ = fmt.Errorf 23 var _ = math.Inf 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 30 31 type TaskState int32 32 33 const ( 34 TaskState_UNKNOWN TaskState = 0 35 TaskState_RUNNING TaskState = 1 36 TaskState_EXITED TaskState = 2 37 ) 38 39 var TaskState_name = map[int32]string{ 40 0: "UNKNOWN", 41 1: "RUNNING", 42 2: "EXITED", 43 } 44 45 var TaskState_value = map[string]int32{ 46 "UNKNOWN": 0, 47 "RUNNING": 1, 48 "EXITED": 2, 49 } 50 51 func (x TaskState) String() string { 52 return proto.EnumName(TaskState_name, int32(x)) 53 } 54 55 func (TaskState) EnumDescriptor() ([]byte, []int) { 56 return fileDescriptor_4a8f45747846a74d, []int{0} 57 } 58 59 type FingerprintResponse_HealthState int32 60 61 const ( 62 FingerprintResponse_UNDETECTED FingerprintResponse_HealthState = 0 63 FingerprintResponse_UNHEALTHY FingerprintResponse_HealthState = 1 64 FingerprintResponse_HEALTHY FingerprintResponse_HealthState = 2 65 ) 66 67 var FingerprintResponse_HealthState_name = map[int32]string{ 68 0: "UNDETECTED", 69 1: "UNHEALTHY", 70 2: "HEALTHY", 71 } 72 73 var FingerprintResponse_HealthState_value = map[string]int32{ 74 "UNDETECTED": 0, 75 "UNHEALTHY": 1, 76 "HEALTHY": 2, 77 } 78 79 func (x FingerprintResponse_HealthState) String() string { 80 return proto.EnumName(FingerprintResponse_HealthState_name, int32(x)) 81 } 82 83 func (FingerprintResponse_HealthState) EnumDescriptor() ([]byte, []int) { 84 return fileDescriptor_4a8f45747846a74d, []int{5, 0} 85 } 86 87 type StartTaskResponse_Result int32 88 89 const ( 90 StartTaskResponse_SUCCESS StartTaskResponse_Result = 0 91 StartTaskResponse_RETRY StartTaskResponse_Result = 1 92 StartTaskResponse_FATAL StartTaskResponse_Result = 2 93 ) 94 95 var StartTaskResponse_Result_name = map[int32]string{ 96 0: "SUCCESS", 97 1: "RETRY", 98 2: "FATAL", 99 } 100 101 var StartTaskResponse_Result_value = map[string]int32{ 102 "SUCCESS": 0, 103 "RETRY": 1, 104 "FATAL": 2, 105 } 106 107 func (x StartTaskResponse_Result) String() string { 108 return proto.EnumName(StartTaskResponse_Result_name, int32(x)) 109 } 110 111 func (StartTaskResponse_Result) EnumDescriptor() ([]byte, []int) { 112 return fileDescriptor_4a8f45747846a74d, []int{9, 0} 113 } 114 115 type DriverCapabilities_FSIsolation int32 116 117 const ( 118 DriverCapabilities_NONE DriverCapabilities_FSIsolation = 0 119 DriverCapabilities_CHROOT DriverCapabilities_FSIsolation = 1 120 DriverCapabilities_IMAGE DriverCapabilities_FSIsolation = 2 121 ) 122 123 var DriverCapabilities_FSIsolation_name = map[int32]string{ 124 0: "NONE", 125 1: "CHROOT", 126 2: "IMAGE", 127 } 128 129 var DriverCapabilities_FSIsolation_value = map[string]int32{ 130 "NONE": 0, 131 "CHROOT": 1, 132 "IMAGE": 2, 133 } 134 135 func (x DriverCapabilities_FSIsolation) String() string { 136 return proto.EnumName(DriverCapabilities_FSIsolation_name, int32(x)) 137 } 138 139 func (DriverCapabilities_FSIsolation) EnumDescriptor() ([]byte, []int) { 140 return fileDescriptor_4a8f45747846a74d, []int{32, 0} 141 } 142 143 type NetworkIsolationSpec_NetworkIsolationMode int32 144 145 const ( 146 NetworkIsolationSpec_HOST NetworkIsolationSpec_NetworkIsolationMode = 0 147 NetworkIsolationSpec_GROUP NetworkIsolationSpec_NetworkIsolationMode = 1 148 NetworkIsolationSpec_TASK NetworkIsolationSpec_NetworkIsolationMode = 2 149 NetworkIsolationSpec_NONE NetworkIsolationSpec_NetworkIsolationMode = 3 150 ) 151 152 var NetworkIsolationSpec_NetworkIsolationMode_name = map[int32]string{ 153 0: "HOST", 154 1: "GROUP", 155 2: "TASK", 156 3: "NONE", 157 } 158 159 var NetworkIsolationSpec_NetworkIsolationMode_value = map[string]int32{ 160 "HOST": 0, 161 "GROUP": 1, 162 "TASK": 2, 163 "NONE": 3, 164 } 165 166 func (x NetworkIsolationSpec_NetworkIsolationMode) String() string { 167 return proto.EnumName(NetworkIsolationSpec_NetworkIsolationMode_name, int32(x)) 168 } 169 170 func (NetworkIsolationSpec_NetworkIsolationMode) EnumDescriptor() ([]byte, []int) { 171 return fileDescriptor_4a8f45747846a74d, []int{33, 0} 172 } 173 174 type CPUUsage_Fields int32 175 176 const ( 177 CPUUsage_SYSTEM_MODE CPUUsage_Fields = 0 178 CPUUsage_USER_MODE CPUUsage_Fields = 1 179 CPUUsage_TOTAL_TICKS CPUUsage_Fields = 2 180 CPUUsage_THROTTLED_PERIODS CPUUsage_Fields = 3 181 CPUUsage_THROTTLED_TIME CPUUsage_Fields = 4 182 CPUUsage_PERCENT CPUUsage_Fields = 5 183 ) 184 185 var CPUUsage_Fields_name = map[int32]string{ 186 0: "SYSTEM_MODE", 187 1: "USER_MODE", 188 2: "TOTAL_TICKS", 189 3: "THROTTLED_PERIODS", 190 4: "THROTTLED_TIME", 191 5: "PERCENT", 192 } 193 194 var CPUUsage_Fields_value = map[string]int32{ 195 "SYSTEM_MODE": 0, 196 "USER_MODE": 1, 197 "TOTAL_TICKS": 2, 198 "THROTTLED_PERIODS": 3, 199 "THROTTLED_TIME": 4, 200 "PERCENT": 5, 201 } 202 203 func (x CPUUsage_Fields) String() string { 204 return proto.EnumName(CPUUsage_Fields_name, int32(x)) 205 } 206 207 func (CPUUsage_Fields) EnumDescriptor() ([]byte, []int) { 208 return fileDescriptor_4a8f45747846a74d, []int{51, 0} 209 } 210 211 type MemoryUsage_Fields int32 212 213 const ( 214 MemoryUsage_RSS MemoryUsage_Fields = 0 215 MemoryUsage_CACHE MemoryUsage_Fields = 1 216 MemoryUsage_MAX_USAGE MemoryUsage_Fields = 2 217 MemoryUsage_KERNEL_USAGE MemoryUsage_Fields = 3 218 MemoryUsage_KERNEL_MAX_USAGE MemoryUsage_Fields = 4 219 MemoryUsage_USAGE MemoryUsage_Fields = 5 220 MemoryUsage_SWAP MemoryUsage_Fields = 6 221 ) 222 223 var MemoryUsage_Fields_name = map[int32]string{ 224 0: "RSS", 225 1: "CACHE", 226 2: "MAX_USAGE", 227 3: "KERNEL_USAGE", 228 4: "KERNEL_MAX_USAGE", 229 5: "USAGE", 230 6: "SWAP", 231 } 232 233 var MemoryUsage_Fields_value = map[string]int32{ 234 "RSS": 0, 235 "CACHE": 1, 236 "MAX_USAGE": 2, 237 "KERNEL_USAGE": 3, 238 "KERNEL_MAX_USAGE": 4, 239 "USAGE": 5, 240 "SWAP": 6, 241 } 242 243 func (x MemoryUsage_Fields) String() string { 244 return proto.EnumName(MemoryUsage_Fields_name, int32(x)) 245 } 246 247 func (MemoryUsage_Fields) EnumDescriptor() ([]byte, []int) { 248 return fileDescriptor_4a8f45747846a74d, []int{52, 0} 249 } 250 251 type TaskConfigSchemaRequest struct { 252 XXX_NoUnkeyedLiteral struct{} `json:"-"` 253 XXX_unrecognized []byte `json:"-"` 254 XXX_sizecache int32 `json:"-"` 255 } 256 257 func (m *TaskConfigSchemaRequest) Reset() { *m = TaskConfigSchemaRequest{} } 258 func (m *TaskConfigSchemaRequest) String() string { return proto.CompactTextString(m) } 259 func (*TaskConfigSchemaRequest) ProtoMessage() {} 260 func (*TaskConfigSchemaRequest) Descriptor() ([]byte, []int) { 261 return fileDescriptor_4a8f45747846a74d, []int{0} 262 } 263 264 func (m *TaskConfigSchemaRequest) XXX_Unmarshal(b []byte) error { 265 return xxx_messageInfo_TaskConfigSchemaRequest.Unmarshal(m, b) 266 } 267 func (m *TaskConfigSchemaRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 268 return xxx_messageInfo_TaskConfigSchemaRequest.Marshal(b, m, deterministic) 269 } 270 func (m *TaskConfigSchemaRequest) XXX_Merge(src proto.Message) { 271 xxx_messageInfo_TaskConfigSchemaRequest.Merge(m, src) 272 } 273 func (m *TaskConfigSchemaRequest) XXX_Size() int { 274 return xxx_messageInfo_TaskConfigSchemaRequest.Size(m) 275 } 276 func (m *TaskConfigSchemaRequest) XXX_DiscardUnknown() { 277 xxx_messageInfo_TaskConfigSchemaRequest.DiscardUnknown(m) 278 } 279 280 var xxx_messageInfo_TaskConfigSchemaRequest proto.InternalMessageInfo 281 282 type TaskConfigSchemaResponse struct { 283 // Spec is the configuration schema for the job driver config stanza 284 Spec *hclspec.Spec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"` 285 XXX_NoUnkeyedLiteral struct{} `json:"-"` 286 XXX_unrecognized []byte `json:"-"` 287 XXX_sizecache int32 `json:"-"` 288 } 289 290 func (m *TaskConfigSchemaResponse) Reset() { *m = TaskConfigSchemaResponse{} } 291 func (m *TaskConfigSchemaResponse) String() string { return proto.CompactTextString(m) } 292 func (*TaskConfigSchemaResponse) ProtoMessage() {} 293 func (*TaskConfigSchemaResponse) Descriptor() ([]byte, []int) { 294 return fileDescriptor_4a8f45747846a74d, []int{1} 295 } 296 297 func (m *TaskConfigSchemaResponse) XXX_Unmarshal(b []byte) error { 298 return xxx_messageInfo_TaskConfigSchemaResponse.Unmarshal(m, b) 299 } 300 func (m *TaskConfigSchemaResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 301 return xxx_messageInfo_TaskConfigSchemaResponse.Marshal(b, m, deterministic) 302 } 303 func (m *TaskConfigSchemaResponse) XXX_Merge(src proto.Message) { 304 xxx_messageInfo_TaskConfigSchemaResponse.Merge(m, src) 305 } 306 func (m *TaskConfigSchemaResponse) XXX_Size() int { 307 return xxx_messageInfo_TaskConfigSchemaResponse.Size(m) 308 } 309 func (m *TaskConfigSchemaResponse) XXX_DiscardUnknown() { 310 xxx_messageInfo_TaskConfigSchemaResponse.DiscardUnknown(m) 311 } 312 313 var xxx_messageInfo_TaskConfigSchemaResponse proto.InternalMessageInfo 314 315 func (m *TaskConfigSchemaResponse) GetSpec() *hclspec.Spec { 316 if m != nil { 317 return m.Spec 318 } 319 return nil 320 } 321 322 type CapabilitiesRequest struct { 323 XXX_NoUnkeyedLiteral struct{} `json:"-"` 324 XXX_unrecognized []byte `json:"-"` 325 XXX_sizecache int32 `json:"-"` 326 } 327 328 func (m *CapabilitiesRequest) Reset() { *m = CapabilitiesRequest{} } 329 func (m *CapabilitiesRequest) String() string { return proto.CompactTextString(m) } 330 func (*CapabilitiesRequest) ProtoMessage() {} 331 func (*CapabilitiesRequest) Descriptor() ([]byte, []int) { 332 return fileDescriptor_4a8f45747846a74d, []int{2} 333 } 334 335 func (m *CapabilitiesRequest) XXX_Unmarshal(b []byte) error { 336 return xxx_messageInfo_CapabilitiesRequest.Unmarshal(m, b) 337 } 338 func (m *CapabilitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 339 return xxx_messageInfo_CapabilitiesRequest.Marshal(b, m, deterministic) 340 } 341 func (m *CapabilitiesRequest) XXX_Merge(src proto.Message) { 342 xxx_messageInfo_CapabilitiesRequest.Merge(m, src) 343 } 344 func (m *CapabilitiesRequest) XXX_Size() int { 345 return xxx_messageInfo_CapabilitiesRequest.Size(m) 346 } 347 func (m *CapabilitiesRequest) XXX_DiscardUnknown() { 348 xxx_messageInfo_CapabilitiesRequest.DiscardUnknown(m) 349 } 350 351 var xxx_messageInfo_CapabilitiesRequest proto.InternalMessageInfo 352 353 type CapabilitiesResponse struct { 354 // Capabilities provides a way for the driver to denote if it implements 355 // non-core RPCs. Some Driver service RPCs expose additional information 356 // or functionality outside of the core task management functions. These 357 // RPCs are only implemented if the driver sets the corresponding capability. 358 Capabilities *DriverCapabilities `protobuf:"bytes,1,opt,name=capabilities,proto3" json:"capabilities,omitempty"` 359 XXX_NoUnkeyedLiteral struct{} `json:"-"` 360 XXX_unrecognized []byte `json:"-"` 361 XXX_sizecache int32 `json:"-"` 362 } 363 364 func (m *CapabilitiesResponse) Reset() { *m = CapabilitiesResponse{} } 365 func (m *CapabilitiesResponse) String() string { return proto.CompactTextString(m) } 366 func (*CapabilitiesResponse) ProtoMessage() {} 367 func (*CapabilitiesResponse) Descriptor() ([]byte, []int) { 368 return fileDescriptor_4a8f45747846a74d, []int{3} 369 } 370 371 func (m *CapabilitiesResponse) XXX_Unmarshal(b []byte) error { 372 return xxx_messageInfo_CapabilitiesResponse.Unmarshal(m, b) 373 } 374 func (m *CapabilitiesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 375 return xxx_messageInfo_CapabilitiesResponse.Marshal(b, m, deterministic) 376 } 377 func (m *CapabilitiesResponse) XXX_Merge(src proto.Message) { 378 xxx_messageInfo_CapabilitiesResponse.Merge(m, src) 379 } 380 func (m *CapabilitiesResponse) XXX_Size() int { 381 return xxx_messageInfo_CapabilitiesResponse.Size(m) 382 } 383 func (m *CapabilitiesResponse) XXX_DiscardUnknown() { 384 xxx_messageInfo_CapabilitiesResponse.DiscardUnknown(m) 385 } 386 387 var xxx_messageInfo_CapabilitiesResponse proto.InternalMessageInfo 388 389 func (m *CapabilitiesResponse) GetCapabilities() *DriverCapabilities { 390 if m != nil { 391 return m.Capabilities 392 } 393 return nil 394 } 395 396 type FingerprintRequest struct { 397 XXX_NoUnkeyedLiteral struct{} `json:"-"` 398 XXX_unrecognized []byte `json:"-"` 399 XXX_sizecache int32 `json:"-"` 400 } 401 402 func (m *FingerprintRequest) Reset() { *m = FingerprintRequest{} } 403 func (m *FingerprintRequest) String() string { return proto.CompactTextString(m) } 404 func (*FingerprintRequest) ProtoMessage() {} 405 func (*FingerprintRequest) Descriptor() ([]byte, []int) { 406 return fileDescriptor_4a8f45747846a74d, []int{4} 407 } 408 409 func (m *FingerprintRequest) XXX_Unmarshal(b []byte) error { 410 return xxx_messageInfo_FingerprintRequest.Unmarshal(m, b) 411 } 412 func (m *FingerprintRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 413 return xxx_messageInfo_FingerprintRequest.Marshal(b, m, deterministic) 414 } 415 func (m *FingerprintRequest) XXX_Merge(src proto.Message) { 416 xxx_messageInfo_FingerprintRequest.Merge(m, src) 417 } 418 func (m *FingerprintRequest) XXX_Size() int { 419 return xxx_messageInfo_FingerprintRequest.Size(m) 420 } 421 func (m *FingerprintRequest) XXX_DiscardUnknown() { 422 xxx_messageInfo_FingerprintRequest.DiscardUnknown(m) 423 } 424 425 var xxx_messageInfo_FingerprintRequest proto.InternalMessageInfo 426 427 type FingerprintResponse struct { 428 // Attributes are key/value pairs that annotate the nomad client and can be 429 // used in scheduling constraints and affinities. 430 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"` 431 // Health is used to determine the state of the health the driver is in. 432 // Health can be one of the following states: 433 // * UNDETECTED: driver dependencies are not met and the driver can not start 434 // * UNHEALTHY: driver dependencies are met but the driver is unable to 435 // perform operations due to some other problem 436 // * HEALTHY: driver is able to perform all operations 437 Health FingerprintResponse_HealthState `protobuf:"varint,2,opt,name=health,proto3,enum=hashicorp.nomad.plugins.drivers.proto.FingerprintResponse_HealthState" json:"health,omitempty"` 438 // HealthDescription is a human readable message describing the current 439 // state of driver health 440 HealthDescription string `protobuf:"bytes,3,opt,name=health_description,json=healthDescription,proto3" json:"health_description,omitempty"` 441 XXX_NoUnkeyedLiteral struct{} `json:"-"` 442 XXX_unrecognized []byte `json:"-"` 443 XXX_sizecache int32 `json:"-"` 444 } 445 446 func (m *FingerprintResponse) Reset() { *m = FingerprintResponse{} } 447 func (m *FingerprintResponse) String() string { return proto.CompactTextString(m) } 448 func (*FingerprintResponse) ProtoMessage() {} 449 func (*FingerprintResponse) Descriptor() ([]byte, []int) { 450 return fileDescriptor_4a8f45747846a74d, []int{5} 451 } 452 453 func (m *FingerprintResponse) XXX_Unmarshal(b []byte) error { 454 return xxx_messageInfo_FingerprintResponse.Unmarshal(m, b) 455 } 456 func (m *FingerprintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 457 return xxx_messageInfo_FingerprintResponse.Marshal(b, m, deterministic) 458 } 459 func (m *FingerprintResponse) XXX_Merge(src proto.Message) { 460 xxx_messageInfo_FingerprintResponse.Merge(m, src) 461 } 462 func (m *FingerprintResponse) XXX_Size() int { 463 return xxx_messageInfo_FingerprintResponse.Size(m) 464 } 465 func (m *FingerprintResponse) XXX_DiscardUnknown() { 466 xxx_messageInfo_FingerprintResponse.DiscardUnknown(m) 467 } 468 469 var xxx_messageInfo_FingerprintResponse proto.InternalMessageInfo 470 471 func (m *FingerprintResponse) GetAttributes() map[string]*proto1.Attribute { 472 if m != nil { 473 return m.Attributes 474 } 475 return nil 476 } 477 478 func (m *FingerprintResponse) GetHealth() FingerprintResponse_HealthState { 479 if m != nil { 480 return m.Health 481 } 482 return FingerprintResponse_UNDETECTED 483 } 484 485 func (m *FingerprintResponse) GetHealthDescription() string { 486 if m != nil { 487 return m.HealthDescription 488 } 489 return "" 490 } 491 492 type RecoverTaskRequest struct { 493 // TaskId is the ID of the target task 494 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 495 // Handle is the TaskHandle returned from StartTask 496 Handle *TaskHandle `protobuf:"bytes,2,opt,name=handle,proto3" json:"handle,omitempty"` 497 XXX_NoUnkeyedLiteral struct{} `json:"-"` 498 XXX_unrecognized []byte `json:"-"` 499 XXX_sizecache int32 `json:"-"` 500 } 501 502 func (m *RecoverTaskRequest) Reset() { *m = RecoverTaskRequest{} } 503 func (m *RecoverTaskRequest) String() string { return proto.CompactTextString(m) } 504 func (*RecoverTaskRequest) ProtoMessage() {} 505 func (*RecoverTaskRequest) Descriptor() ([]byte, []int) { 506 return fileDescriptor_4a8f45747846a74d, []int{6} 507 } 508 509 func (m *RecoverTaskRequest) XXX_Unmarshal(b []byte) error { 510 return xxx_messageInfo_RecoverTaskRequest.Unmarshal(m, b) 511 } 512 func (m *RecoverTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 513 return xxx_messageInfo_RecoverTaskRequest.Marshal(b, m, deterministic) 514 } 515 func (m *RecoverTaskRequest) XXX_Merge(src proto.Message) { 516 xxx_messageInfo_RecoverTaskRequest.Merge(m, src) 517 } 518 func (m *RecoverTaskRequest) XXX_Size() int { 519 return xxx_messageInfo_RecoverTaskRequest.Size(m) 520 } 521 func (m *RecoverTaskRequest) XXX_DiscardUnknown() { 522 xxx_messageInfo_RecoverTaskRequest.DiscardUnknown(m) 523 } 524 525 var xxx_messageInfo_RecoverTaskRequest proto.InternalMessageInfo 526 527 func (m *RecoverTaskRequest) GetTaskId() string { 528 if m != nil { 529 return m.TaskId 530 } 531 return "" 532 } 533 534 func (m *RecoverTaskRequest) GetHandle() *TaskHandle { 535 if m != nil { 536 return m.Handle 537 } 538 return nil 539 } 540 541 type RecoverTaskResponse struct { 542 XXX_NoUnkeyedLiteral struct{} `json:"-"` 543 XXX_unrecognized []byte `json:"-"` 544 XXX_sizecache int32 `json:"-"` 545 } 546 547 func (m *RecoverTaskResponse) Reset() { *m = RecoverTaskResponse{} } 548 func (m *RecoverTaskResponse) String() string { return proto.CompactTextString(m) } 549 func (*RecoverTaskResponse) ProtoMessage() {} 550 func (*RecoverTaskResponse) Descriptor() ([]byte, []int) { 551 return fileDescriptor_4a8f45747846a74d, []int{7} 552 } 553 554 func (m *RecoverTaskResponse) XXX_Unmarshal(b []byte) error { 555 return xxx_messageInfo_RecoverTaskResponse.Unmarshal(m, b) 556 } 557 func (m *RecoverTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 558 return xxx_messageInfo_RecoverTaskResponse.Marshal(b, m, deterministic) 559 } 560 func (m *RecoverTaskResponse) XXX_Merge(src proto.Message) { 561 xxx_messageInfo_RecoverTaskResponse.Merge(m, src) 562 } 563 func (m *RecoverTaskResponse) XXX_Size() int { 564 return xxx_messageInfo_RecoverTaskResponse.Size(m) 565 } 566 func (m *RecoverTaskResponse) XXX_DiscardUnknown() { 567 xxx_messageInfo_RecoverTaskResponse.DiscardUnknown(m) 568 } 569 570 var xxx_messageInfo_RecoverTaskResponse proto.InternalMessageInfo 571 572 type StartTaskRequest struct { 573 // Task configuration to launch 574 Task *TaskConfig `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` 575 XXX_NoUnkeyedLiteral struct{} `json:"-"` 576 XXX_unrecognized []byte `json:"-"` 577 XXX_sizecache int32 `json:"-"` 578 } 579 580 func (m *StartTaskRequest) Reset() { *m = StartTaskRequest{} } 581 func (m *StartTaskRequest) String() string { return proto.CompactTextString(m) } 582 func (*StartTaskRequest) ProtoMessage() {} 583 func (*StartTaskRequest) Descriptor() ([]byte, []int) { 584 return fileDescriptor_4a8f45747846a74d, []int{8} 585 } 586 587 func (m *StartTaskRequest) XXX_Unmarshal(b []byte) error { 588 return xxx_messageInfo_StartTaskRequest.Unmarshal(m, b) 589 } 590 func (m *StartTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 591 return xxx_messageInfo_StartTaskRequest.Marshal(b, m, deterministic) 592 } 593 func (m *StartTaskRequest) XXX_Merge(src proto.Message) { 594 xxx_messageInfo_StartTaskRequest.Merge(m, src) 595 } 596 func (m *StartTaskRequest) XXX_Size() int { 597 return xxx_messageInfo_StartTaskRequest.Size(m) 598 } 599 func (m *StartTaskRequest) XXX_DiscardUnknown() { 600 xxx_messageInfo_StartTaskRequest.DiscardUnknown(m) 601 } 602 603 var xxx_messageInfo_StartTaskRequest proto.InternalMessageInfo 604 605 func (m *StartTaskRequest) GetTask() *TaskConfig { 606 if m != nil { 607 return m.Task 608 } 609 return nil 610 } 611 612 type StartTaskResponse struct { 613 // Result is set depending on the type of error that occurred while starting 614 // a task: 615 // 616 // * SUCCESS: No error occurred, handle is set 617 // * RETRY: An error occurred, but is recoverable and the RPC should be retried 618 // * FATAL: A fatal error occurred and is not likely to succeed if retried 619 // 620 // If Result is not successful, the DriverErrorMsg will be set. 621 Result StartTaskResponse_Result `protobuf:"varint,1,opt,name=result,proto3,enum=hashicorp.nomad.plugins.drivers.proto.StartTaskResponse_Result" json:"result,omitempty"` 622 // DriverErrorMsg is set if an error occurred 623 DriverErrorMsg string `protobuf:"bytes,2,opt,name=driver_error_msg,json=driverErrorMsg,proto3" json:"driver_error_msg,omitempty"` 624 // Handle is opaque to the client, but must be stored in order to recover 625 // the task. 626 Handle *TaskHandle `protobuf:"bytes,3,opt,name=handle,proto3" json:"handle,omitempty"` 627 // NetworkOverride is set if the driver sets network settings and the service ip/port 628 // needs to be set differently. 629 NetworkOverride *NetworkOverride `protobuf:"bytes,4,opt,name=network_override,json=networkOverride,proto3" json:"network_override,omitempty"` 630 XXX_NoUnkeyedLiteral struct{} `json:"-"` 631 XXX_unrecognized []byte `json:"-"` 632 XXX_sizecache int32 `json:"-"` 633 } 634 635 func (m *StartTaskResponse) Reset() { *m = StartTaskResponse{} } 636 func (m *StartTaskResponse) String() string { return proto.CompactTextString(m) } 637 func (*StartTaskResponse) ProtoMessage() {} 638 func (*StartTaskResponse) Descriptor() ([]byte, []int) { 639 return fileDescriptor_4a8f45747846a74d, []int{9} 640 } 641 642 func (m *StartTaskResponse) XXX_Unmarshal(b []byte) error { 643 return xxx_messageInfo_StartTaskResponse.Unmarshal(m, b) 644 } 645 func (m *StartTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 646 return xxx_messageInfo_StartTaskResponse.Marshal(b, m, deterministic) 647 } 648 func (m *StartTaskResponse) XXX_Merge(src proto.Message) { 649 xxx_messageInfo_StartTaskResponse.Merge(m, src) 650 } 651 func (m *StartTaskResponse) XXX_Size() int { 652 return xxx_messageInfo_StartTaskResponse.Size(m) 653 } 654 func (m *StartTaskResponse) XXX_DiscardUnknown() { 655 xxx_messageInfo_StartTaskResponse.DiscardUnknown(m) 656 } 657 658 var xxx_messageInfo_StartTaskResponse proto.InternalMessageInfo 659 660 func (m *StartTaskResponse) GetResult() StartTaskResponse_Result { 661 if m != nil { 662 return m.Result 663 } 664 return StartTaskResponse_SUCCESS 665 } 666 667 func (m *StartTaskResponse) GetDriverErrorMsg() string { 668 if m != nil { 669 return m.DriverErrorMsg 670 } 671 return "" 672 } 673 674 func (m *StartTaskResponse) GetHandle() *TaskHandle { 675 if m != nil { 676 return m.Handle 677 } 678 return nil 679 } 680 681 func (m *StartTaskResponse) GetNetworkOverride() *NetworkOverride { 682 if m != nil { 683 return m.NetworkOverride 684 } 685 return nil 686 } 687 688 type WaitTaskRequest struct { 689 // TaskId is the ID of the target task 690 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 691 XXX_NoUnkeyedLiteral struct{} `json:"-"` 692 XXX_unrecognized []byte `json:"-"` 693 XXX_sizecache int32 `json:"-"` 694 } 695 696 func (m *WaitTaskRequest) Reset() { *m = WaitTaskRequest{} } 697 func (m *WaitTaskRequest) String() string { return proto.CompactTextString(m) } 698 func (*WaitTaskRequest) ProtoMessage() {} 699 func (*WaitTaskRequest) Descriptor() ([]byte, []int) { 700 return fileDescriptor_4a8f45747846a74d, []int{10} 701 } 702 703 func (m *WaitTaskRequest) XXX_Unmarshal(b []byte) error { 704 return xxx_messageInfo_WaitTaskRequest.Unmarshal(m, b) 705 } 706 func (m *WaitTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 707 return xxx_messageInfo_WaitTaskRequest.Marshal(b, m, deterministic) 708 } 709 func (m *WaitTaskRequest) XXX_Merge(src proto.Message) { 710 xxx_messageInfo_WaitTaskRequest.Merge(m, src) 711 } 712 func (m *WaitTaskRequest) XXX_Size() int { 713 return xxx_messageInfo_WaitTaskRequest.Size(m) 714 } 715 func (m *WaitTaskRequest) XXX_DiscardUnknown() { 716 xxx_messageInfo_WaitTaskRequest.DiscardUnknown(m) 717 } 718 719 var xxx_messageInfo_WaitTaskRequest proto.InternalMessageInfo 720 721 func (m *WaitTaskRequest) GetTaskId() string { 722 if m != nil { 723 return m.TaskId 724 } 725 return "" 726 } 727 728 type WaitTaskResponse struct { 729 // Result is the exit status of the task 730 Result *ExitResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` 731 // Err is set if any driver error occurred while waiting for the task 732 Err string `protobuf:"bytes,2,opt,name=err,proto3" json:"err,omitempty"` 733 XXX_NoUnkeyedLiteral struct{} `json:"-"` 734 XXX_unrecognized []byte `json:"-"` 735 XXX_sizecache int32 `json:"-"` 736 } 737 738 func (m *WaitTaskResponse) Reset() { *m = WaitTaskResponse{} } 739 func (m *WaitTaskResponse) String() string { return proto.CompactTextString(m) } 740 func (*WaitTaskResponse) ProtoMessage() {} 741 func (*WaitTaskResponse) Descriptor() ([]byte, []int) { 742 return fileDescriptor_4a8f45747846a74d, []int{11} 743 } 744 745 func (m *WaitTaskResponse) XXX_Unmarshal(b []byte) error { 746 return xxx_messageInfo_WaitTaskResponse.Unmarshal(m, b) 747 } 748 func (m *WaitTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 749 return xxx_messageInfo_WaitTaskResponse.Marshal(b, m, deterministic) 750 } 751 func (m *WaitTaskResponse) XXX_Merge(src proto.Message) { 752 xxx_messageInfo_WaitTaskResponse.Merge(m, src) 753 } 754 func (m *WaitTaskResponse) XXX_Size() int { 755 return xxx_messageInfo_WaitTaskResponse.Size(m) 756 } 757 func (m *WaitTaskResponse) XXX_DiscardUnknown() { 758 xxx_messageInfo_WaitTaskResponse.DiscardUnknown(m) 759 } 760 761 var xxx_messageInfo_WaitTaskResponse proto.InternalMessageInfo 762 763 func (m *WaitTaskResponse) GetResult() *ExitResult { 764 if m != nil { 765 return m.Result 766 } 767 return nil 768 } 769 770 func (m *WaitTaskResponse) GetErr() string { 771 if m != nil { 772 return m.Err 773 } 774 return "" 775 } 776 777 type StopTaskRequest struct { 778 // TaskId is the ID of the target task 779 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 780 // Timeout defines the amount of time to wait before forcefully killing 781 // the task. For example, on Unix clients, this means sending a SIGKILL to 782 // the process. 783 Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` 784 // Signal can be set to override the Task's configured shutdown signal 785 Signal string `protobuf:"bytes,3,opt,name=signal,proto3" json:"signal,omitempty"` 786 XXX_NoUnkeyedLiteral struct{} `json:"-"` 787 XXX_unrecognized []byte `json:"-"` 788 XXX_sizecache int32 `json:"-"` 789 } 790 791 func (m *StopTaskRequest) Reset() { *m = StopTaskRequest{} } 792 func (m *StopTaskRequest) String() string { return proto.CompactTextString(m) } 793 func (*StopTaskRequest) ProtoMessage() {} 794 func (*StopTaskRequest) Descriptor() ([]byte, []int) { 795 return fileDescriptor_4a8f45747846a74d, []int{12} 796 } 797 798 func (m *StopTaskRequest) XXX_Unmarshal(b []byte) error { 799 return xxx_messageInfo_StopTaskRequest.Unmarshal(m, b) 800 } 801 func (m *StopTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 802 return xxx_messageInfo_StopTaskRequest.Marshal(b, m, deterministic) 803 } 804 func (m *StopTaskRequest) XXX_Merge(src proto.Message) { 805 xxx_messageInfo_StopTaskRequest.Merge(m, src) 806 } 807 func (m *StopTaskRequest) XXX_Size() int { 808 return xxx_messageInfo_StopTaskRequest.Size(m) 809 } 810 func (m *StopTaskRequest) XXX_DiscardUnknown() { 811 xxx_messageInfo_StopTaskRequest.DiscardUnknown(m) 812 } 813 814 var xxx_messageInfo_StopTaskRequest proto.InternalMessageInfo 815 816 func (m *StopTaskRequest) GetTaskId() string { 817 if m != nil { 818 return m.TaskId 819 } 820 return "" 821 } 822 823 func (m *StopTaskRequest) GetTimeout() *duration.Duration { 824 if m != nil { 825 return m.Timeout 826 } 827 return nil 828 } 829 830 func (m *StopTaskRequest) GetSignal() string { 831 if m != nil { 832 return m.Signal 833 } 834 return "" 835 } 836 837 type StopTaskResponse struct { 838 XXX_NoUnkeyedLiteral struct{} `json:"-"` 839 XXX_unrecognized []byte `json:"-"` 840 XXX_sizecache int32 `json:"-"` 841 } 842 843 func (m *StopTaskResponse) Reset() { *m = StopTaskResponse{} } 844 func (m *StopTaskResponse) String() string { return proto.CompactTextString(m) } 845 func (*StopTaskResponse) ProtoMessage() {} 846 func (*StopTaskResponse) Descriptor() ([]byte, []int) { 847 return fileDescriptor_4a8f45747846a74d, []int{13} 848 } 849 850 func (m *StopTaskResponse) XXX_Unmarshal(b []byte) error { 851 return xxx_messageInfo_StopTaskResponse.Unmarshal(m, b) 852 } 853 func (m *StopTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 854 return xxx_messageInfo_StopTaskResponse.Marshal(b, m, deterministic) 855 } 856 func (m *StopTaskResponse) XXX_Merge(src proto.Message) { 857 xxx_messageInfo_StopTaskResponse.Merge(m, src) 858 } 859 func (m *StopTaskResponse) XXX_Size() int { 860 return xxx_messageInfo_StopTaskResponse.Size(m) 861 } 862 func (m *StopTaskResponse) XXX_DiscardUnknown() { 863 xxx_messageInfo_StopTaskResponse.DiscardUnknown(m) 864 } 865 866 var xxx_messageInfo_StopTaskResponse proto.InternalMessageInfo 867 868 type DestroyTaskRequest struct { 869 // TaskId is the ID of the target task 870 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 871 // Force destroys the task even if it is still in a running state 872 Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"` 873 XXX_NoUnkeyedLiteral struct{} `json:"-"` 874 XXX_unrecognized []byte `json:"-"` 875 XXX_sizecache int32 `json:"-"` 876 } 877 878 func (m *DestroyTaskRequest) Reset() { *m = DestroyTaskRequest{} } 879 func (m *DestroyTaskRequest) String() string { return proto.CompactTextString(m) } 880 func (*DestroyTaskRequest) ProtoMessage() {} 881 func (*DestroyTaskRequest) Descriptor() ([]byte, []int) { 882 return fileDescriptor_4a8f45747846a74d, []int{14} 883 } 884 885 func (m *DestroyTaskRequest) XXX_Unmarshal(b []byte) error { 886 return xxx_messageInfo_DestroyTaskRequest.Unmarshal(m, b) 887 } 888 func (m *DestroyTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 889 return xxx_messageInfo_DestroyTaskRequest.Marshal(b, m, deterministic) 890 } 891 func (m *DestroyTaskRequest) XXX_Merge(src proto.Message) { 892 xxx_messageInfo_DestroyTaskRequest.Merge(m, src) 893 } 894 func (m *DestroyTaskRequest) XXX_Size() int { 895 return xxx_messageInfo_DestroyTaskRequest.Size(m) 896 } 897 func (m *DestroyTaskRequest) XXX_DiscardUnknown() { 898 xxx_messageInfo_DestroyTaskRequest.DiscardUnknown(m) 899 } 900 901 var xxx_messageInfo_DestroyTaskRequest proto.InternalMessageInfo 902 903 func (m *DestroyTaskRequest) GetTaskId() string { 904 if m != nil { 905 return m.TaskId 906 } 907 return "" 908 } 909 910 func (m *DestroyTaskRequest) GetForce() bool { 911 if m != nil { 912 return m.Force 913 } 914 return false 915 } 916 917 type DestroyTaskResponse struct { 918 XXX_NoUnkeyedLiteral struct{} `json:"-"` 919 XXX_unrecognized []byte `json:"-"` 920 XXX_sizecache int32 `json:"-"` 921 } 922 923 func (m *DestroyTaskResponse) Reset() { *m = DestroyTaskResponse{} } 924 func (m *DestroyTaskResponse) String() string { return proto.CompactTextString(m) } 925 func (*DestroyTaskResponse) ProtoMessage() {} 926 func (*DestroyTaskResponse) Descriptor() ([]byte, []int) { 927 return fileDescriptor_4a8f45747846a74d, []int{15} 928 } 929 930 func (m *DestroyTaskResponse) XXX_Unmarshal(b []byte) error { 931 return xxx_messageInfo_DestroyTaskResponse.Unmarshal(m, b) 932 } 933 func (m *DestroyTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 934 return xxx_messageInfo_DestroyTaskResponse.Marshal(b, m, deterministic) 935 } 936 func (m *DestroyTaskResponse) XXX_Merge(src proto.Message) { 937 xxx_messageInfo_DestroyTaskResponse.Merge(m, src) 938 } 939 func (m *DestroyTaskResponse) XXX_Size() int { 940 return xxx_messageInfo_DestroyTaskResponse.Size(m) 941 } 942 func (m *DestroyTaskResponse) XXX_DiscardUnknown() { 943 xxx_messageInfo_DestroyTaskResponse.DiscardUnknown(m) 944 } 945 946 var xxx_messageInfo_DestroyTaskResponse proto.InternalMessageInfo 947 948 type InspectTaskRequest struct { 949 // TaskId is the ID of the target task 950 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 951 XXX_NoUnkeyedLiteral struct{} `json:"-"` 952 XXX_unrecognized []byte `json:"-"` 953 XXX_sizecache int32 `json:"-"` 954 } 955 956 func (m *InspectTaskRequest) Reset() { *m = InspectTaskRequest{} } 957 func (m *InspectTaskRequest) String() string { return proto.CompactTextString(m) } 958 func (*InspectTaskRequest) ProtoMessage() {} 959 func (*InspectTaskRequest) Descriptor() ([]byte, []int) { 960 return fileDescriptor_4a8f45747846a74d, []int{16} 961 } 962 963 func (m *InspectTaskRequest) XXX_Unmarshal(b []byte) error { 964 return xxx_messageInfo_InspectTaskRequest.Unmarshal(m, b) 965 } 966 func (m *InspectTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 967 return xxx_messageInfo_InspectTaskRequest.Marshal(b, m, deterministic) 968 } 969 func (m *InspectTaskRequest) XXX_Merge(src proto.Message) { 970 xxx_messageInfo_InspectTaskRequest.Merge(m, src) 971 } 972 func (m *InspectTaskRequest) XXX_Size() int { 973 return xxx_messageInfo_InspectTaskRequest.Size(m) 974 } 975 func (m *InspectTaskRequest) XXX_DiscardUnknown() { 976 xxx_messageInfo_InspectTaskRequest.DiscardUnknown(m) 977 } 978 979 var xxx_messageInfo_InspectTaskRequest proto.InternalMessageInfo 980 981 func (m *InspectTaskRequest) GetTaskId() string { 982 if m != nil { 983 return m.TaskId 984 } 985 return "" 986 } 987 988 type InspectTaskResponse struct { 989 // Task details 990 Task *TaskStatus `protobuf:"bytes,1,opt,name=task,proto3" json:"task,omitempty"` 991 // Driver details for task 992 Driver *TaskDriverStatus `protobuf:"bytes,2,opt,name=driver,proto3" json:"driver,omitempty"` 993 // NetworkOverride info if set 994 NetworkOverride *NetworkOverride `protobuf:"bytes,3,opt,name=network_override,json=networkOverride,proto3" json:"network_override,omitempty"` 995 XXX_NoUnkeyedLiteral struct{} `json:"-"` 996 XXX_unrecognized []byte `json:"-"` 997 XXX_sizecache int32 `json:"-"` 998 } 999 1000 func (m *InspectTaskResponse) Reset() { *m = InspectTaskResponse{} } 1001 func (m *InspectTaskResponse) String() string { return proto.CompactTextString(m) } 1002 func (*InspectTaskResponse) ProtoMessage() {} 1003 func (*InspectTaskResponse) Descriptor() ([]byte, []int) { 1004 return fileDescriptor_4a8f45747846a74d, []int{17} 1005 } 1006 1007 func (m *InspectTaskResponse) XXX_Unmarshal(b []byte) error { 1008 return xxx_messageInfo_InspectTaskResponse.Unmarshal(m, b) 1009 } 1010 func (m *InspectTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1011 return xxx_messageInfo_InspectTaskResponse.Marshal(b, m, deterministic) 1012 } 1013 func (m *InspectTaskResponse) XXX_Merge(src proto.Message) { 1014 xxx_messageInfo_InspectTaskResponse.Merge(m, src) 1015 } 1016 func (m *InspectTaskResponse) XXX_Size() int { 1017 return xxx_messageInfo_InspectTaskResponse.Size(m) 1018 } 1019 func (m *InspectTaskResponse) XXX_DiscardUnknown() { 1020 xxx_messageInfo_InspectTaskResponse.DiscardUnknown(m) 1021 } 1022 1023 var xxx_messageInfo_InspectTaskResponse proto.InternalMessageInfo 1024 1025 func (m *InspectTaskResponse) GetTask() *TaskStatus { 1026 if m != nil { 1027 return m.Task 1028 } 1029 return nil 1030 } 1031 1032 func (m *InspectTaskResponse) GetDriver() *TaskDriverStatus { 1033 if m != nil { 1034 return m.Driver 1035 } 1036 return nil 1037 } 1038 1039 func (m *InspectTaskResponse) GetNetworkOverride() *NetworkOverride { 1040 if m != nil { 1041 return m.NetworkOverride 1042 } 1043 return nil 1044 } 1045 1046 type TaskStatsRequest struct { 1047 // TaskId is the ID of the target task 1048 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 1049 // CollectionInterval is the interval at which to stream stats to the caller 1050 CollectionInterval *duration.Duration `protobuf:"bytes,2,opt,name=collection_interval,json=collectionInterval,proto3" json:"collection_interval,omitempty"` 1051 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1052 XXX_unrecognized []byte `json:"-"` 1053 XXX_sizecache int32 `json:"-"` 1054 } 1055 1056 func (m *TaskStatsRequest) Reset() { *m = TaskStatsRequest{} } 1057 func (m *TaskStatsRequest) String() string { return proto.CompactTextString(m) } 1058 func (*TaskStatsRequest) ProtoMessage() {} 1059 func (*TaskStatsRequest) Descriptor() ([]byte, []int) { 1060 return fileDescriptor_4a8f45747846a74d, []int{18} 1061 } 1062 1063 func (m *TaskStatsRequest) XXX_Unmarshal(b []byte) error { 1064 return xxx_messageInfo_TaskStatsRequest.Unmarshal(m, b) 1065 } 1066 func (m *TaskStatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1067 return xxx_messageInfo_TaskStatsRequest.Marshal(b, m, deterministic) 1068 } 1069 func (m *TaskStatsRequest) XXX_Merge(src proto.Message) { 1070 xxx_messageInfo_TaskStatsRequest.Merge(m, src) 1071 } 1072 func (m *TaskStatsRequest) XXX_Size() int { 1073 return xxx_messageInfo_TaskStatsRequest.Size(m) 1074 } 1075 func (m *TaskStatsRequest) XXX_DiscardUnknown() { 1076 xxx_messageInfo_TaskStatsRequest.DiscardUnknown(m) 1077 } 1078 1079 var xxx_messageInfo_TaskStatsRequest proto.InternalMessageInfo 1080 1081 func (m *TaskStatsRequest) GetTaskId() string { 1082 if m != nil { 1083 return m.TaskId 1084 } 1085 return "" 1086 } 1087 1088 func (m *TaskStatsRequest) GetCollectionInterval() *duration.Duration { 1089 if m != nil { 1090 return m.CollectionInterval 1091 } 1092 return nil 1093 } 1094 1095 type TaskStatsResponse struct { 1096 // Stats for the task 1097 Stats *TaskStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` 1098 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1099 XXX_unrecognized []byte `json:"-"` 1100 XXX_sizecache int32 `json:"-"` 1101 } 1102 1103 func (m *TaskStatsResponse) Reset() { *m = TaskStatsResponse{} } 1104 func (m *TaskStatsResponse) String() string { return proto.CompactTextString(m) } 1105 func (*TaskStatsResponse) ProtoMessage() {} 1106 func (*TaskStatsResponse) Descriptor() ([]byte, []int) { 1107 return fileDescriptor_4a8f45747846a74d, []int{19} 1108 } 1109 1110 func (m *TaskStatsResponse) XXX_Unmarshal(b []byte) error { 1111 return xxx_messageInfo_TaskStatsResponse.Unmarshal(m, b) 1112 } 1113 func (m *TaskStatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1114 return xxx_messageInfo_TaskStatsResponse.Marshal(b, m, deterministic) 1115 } 1116 func (m *TaskStatsResponse) XXX_Merge(src proto.Message) { 1117 xxx_messageInfo_TaskStatsResponse.Merge(m, src) 1118 } 1119 func (m *TaskStatsResponse) XXX_Size() int { 1120 return xxx_messageInfo_TaskStatsResponse.Size(m) 1121 } 1122 func (m *TaskStatsResponse) XXX_DiscardUnknown() { 1123 xxx_messageInfo_TaskStatsResponse.DiscardUnknown(m) 1124 } 1125 1126 var xxx_messageInfo_TaskStatsResponse proto.InternalMessageInfo 1127 1128 func (m *TaskStatsResponse) GetStats() *TaskStats { 1129 if m != nil { 1130 return m.Stats 1131 } 1132 return nil 1133 } 1134 1135 type TaskEventsRequest struct { 1136 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1137 XXX_unrecognized []byte `json:"-"` 1138 XXX_sizecache int32 `json:"-"` 1139 } 1140 1141 func (m *TaskEventsRequest) Reset() { *m = TaskEventsRequest{} } 1142 func (m *TaskEventsRequest) String() string { return proto.CompactTextString(m) } 1143 func (*TaskEventsRequest) ProtoMessage() {} 1144 func (*TaskEventsRequest) Descriptor() ([]byte, []int) { 1145 return fileDescriptor_4a8f45747846a74d, []int{20} 1146 } 1147 1148 func (m *TaskEventsRequest) XXX_Unmarshal(b []byte) error { 1149 return xxx_messageInfo_TaskEventsRequest.Unmarshal(m, b) 1150 } 1151 func (m *TaskEventsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1152 return xxx_messageInfo_TaskEventsRequest.Marshal(b, m, deterministic) 1153 } 1154 func (m *TaskEventsRequest) XXX_Merge(src proto.Message) { 1155 xxx_messageInfo_TaskEventsRequest.Merge(m, src) 1156 } 1157 func (m *TaskEventsRequest) XXX_Size() int { 1158 return xxx_messageInfo_TaskEventsRequest.Size(m) 1159 } 1160 func (m *TaskEventsRequest) XXX_DiscardUnknown() { 1161 xxx_messageInfo_TaskEventsRequest.DiscardUnknown(m) 1162 } 1163 1164 var xxx_messageInfo_TaskEventsRequest proto.InternalMessageInfo 1165 1166 type SignalTaskRequest struct { 1167 // TaskId is the ID of the target task 1168 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 1169 // Signal is the operating system signal to send to the task. Ex: SIGHUP 1170 Signal string `protobuf:"bytes,2,opt,name=signal,proto3" json:"signal,omitempty"` 1171 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1172 XXX_unrecognized []byte `json:"-"` 1173 XXX_sizecache int32 `json:"-"` 1174 } 1175 1176 func (m *SignalTaskRequest) Reset() { *m = SignalTaskRequest{} } 1177 func (m *SignalTaskRequest) String() string { return proto.CompactTextString(m) } 1178 func (*SignalTaskRequest) ProtoMessage() {} 1179 func (*SignalTaskRequest) Descriptor() ([]byte, []int) { 1180 return fileDescriptor_4a8f45747846a74d, []int{21} 1181 } 1182 1183 func (m *SignalTaskRequest) XXX_Unmarshal(b []byte) error { 1184 return xxx_messageInfo_SignalTaskRequest.Unmarshal(m, b) 1185 } 1186 func (m *SignalTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1187 return xxx_messageInfo_SignalTaskRequest.Marshal(b, m, deterministic) 1188 } 1189 func (m *SignalTaskRequest) XXX_Merge(src proto.Message) { 1190 xxx_messageInfo_SignalTaskRequest.Merge(m, src) 1191 } 1192 func (m *SignalTaskRequest) XXX_Size() int { 1193 return xxx_messageInfo_SignalTaskRequest.Size(m) 1194 } 1195 func (m *SignalTaskRequest) XXX_DiscardUnknown() { 1196 xxx_messageInfo_SignalTaskRequest.DiscardUnknown(m) 1197 } 1198 1199 var xxx_messageInfo_SignalTaskRequest proto.InternalMessageInfo 1200 1201 func (m *SignalTaskRequest) GetTaskId() string { 1202 if m != nil { 1203 return m.TaskId 1204 } 1205 return "" 1206 } 1207 1208 func (m *SignalTaskRequest) GetSignal() string { 1209 if m != nil { 1210 return m.Signal 1211 } 1212 return "" 1213 } 1214 1215 type SignalTaskResponse struct { 1216 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1217 XXX_unrecognized []byte `json:"-"` 1218 XXX_sizecache int32 `json:"-"` 1219 } 1220 1221 func (m *SignalTaskResponse) Reset() { *m = SignalTaskResponse{} } 1222 func (m *SignalTaskResponse) String() string { return proto.CompactTextString(m) } 1223 func (*SignalTaskResponse) ProtoMessage() {} 1224 func (*SignalTaskResponse) Descriptor() ([]byte, []int) { 1225 return fileDescriptor_4a8f45747846a74d, []int{22} 1226 } 1227 1228 func (m *SignalTaskResponse) XXX_Unmarshal(b []byte) error { 1229 return xxx_messageInfo_SignalTaskResponse.Unmarshal(m, b) 1230 } 1231 func (m *SignalTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1232 return xxx_messageInfo_SignalTaskResponse.Marshal(b, m, deterministic) 1233 } 1234 func (m *SignalTaskResponse) XXX_Merge(src proto.Message) { 1235 xxx_messageInfo_SignalTaskResponse.Merge(m, src) 1236 } 1237 func (m *SignalTaskResponse) XXX_Size() int { 1238 return xxx_messageInfo_SignalTaskResponse.Size(m) 1239 } 1240 func (m *SignalTaskResponse) XXX_DiscardUnknown() { 1241 xxx_messageInfo_SignalTaskResponse.DiscardUnknown(m) 1242 } 1243 1244 var xxx_messageInfo_SignalTaskResponse proto.InternalMessageInfo 1245 1246 type ExecTaskRequest struct { 1247 // TaskId is the ID of the target task 1248 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 1249 // Command is the command to execute in the task environment 1250 Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` 1251 // Timeout is the amount of time to wait for the command to stop. 1252 // Defaults to 0 (run forever) 1253 Timeout *duration.Duration `protobuf:"bytes,3,opt,name=timeout,proto3" json:"timeout,omitempty"` 1254 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1255 XXX_unrecognized []byte `json:"-"` 1256 XXX_sizecache int32 `json:"-"` 1257 } 1258 1259 func (m *ExecTaskRequest) Reset() { *m = ExecTaskRequest{} } 1260 func (m *ExecTaskRequest) String() string { return proto.CompactTextString(m) } 1261 func (*ExecTaskRequest) ProtoMessage() {} 1262 func (*ExecTaskRequest) Descriptor() ([]byte, []int) { 1263 return fileDescriptor_4a8f45747846a74d, []int{23} 1264 } 1265 1266 func (m *ExecTaskRequest) XXX_Unmarshal(b []byte) error { 1267 return xxx_messageInfo_ExecTaskRequest.Unmarshal(m, b) 1268 } 1269 func (m *ExecTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1270 return xxx_messageInfo_ExecTaskRequest.Marshal(b, m, deterministic) 1271 } 1272 func (m *ExecTaskRequest) XXX_Merge(src proto.Message) { 1273 xxx_messageInfo_ExecTaskRequest.Merge(m, src) 1274 } 1275 func (m *ExecTaskRequest) XXX_Size() int { 1276 return xxx_messageInfo_ExecTaskRequest.Size(m) 1277 } 1278 func (m *ExecTaskRequest) XXX_DiscardUnknown() { 1279 xxx_messageInfo_ExecTaskRequest.DiscardUnknown(m) 1280 } 1281 1282 var xxx_messageInfo_ExecTaskRequest proto.InternalMessageInfo 1283 1284 func (m *ExecTaskRequest) GetTaskId() string { 1285 if m != nil { 1286 return m.TaskId 1287 } 1288 return "" 1289 } 1290 1291 func (m *ExecTaskRequest) GetCommand() []string { 1292 if m != nil { 1293 return m.Command 1294 } 1295 return nil 1296 } 1297 1298 func (m *ExecTaskRequest) GetTimeout() *duration.Duration { 1299 if m != nil { 1300 return m.Timeout 1301 } 1302 return nil 1303 } 1304 1305 type ExecTaskResponse struct { 1306 // Stdout from the exec 1307 Stdout []byte `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` 1308 // Stderr from the exec 1309 Stderr []byte `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` 1310 // Result from the exec 1311 Result *ExitResult `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` 1312 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1313 XXX_unrecognized []byte `json:"-"` 1314 XXX_sizecache int32 `json:"-"` 1315 } 1316 1317 func (m *ExecTaskResponse) Reset() { *m = ExecTaskResponse{} } 1318 func (m *ExecTaskResponse) String() string { return proto.CompactTextString(m) } 1319 func (*ExecTaskResponse) ProtoMessage() {} 1320 func (*ExecTaskResponse) Descriptor() ([]byte, []int) { 1321 return fileDescriptor_4a8f45747846a74d, []int{24} 1322 } 1323 1324 func (m *ExecTaskResponse) XXX_Unmarshal(b []byte) error { 1325 return xxx_messageInfo_ExecTaskResponse.Unmarshal(m, b) 1326 } 1327 func (m *ExecTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1328 return xxx_messageInfo_ExecTaskResponse.Marshal(b, m, deterministic) 1329 } 1330 func (m *ExecTaskResponse) XXX_Merge(src proto.Message) { 1331 xxx_messageInfo_ExecTaskResponse.Merge(m, src) 1332 } 1333 func (m *ExecTaskResponse) XXX_Size() int { 1334 return xxx_messageInfo_ExecTaskResponse.Size(m) 1335 } 1336 func (m *ExecTaskResponse) XXX_DiscardUnknown() { 1337 xxx_messageInfo_ExecTaskResponse.DiscardUnknown(m) 1338 } 1339 1340 var xxx_messageInfo_ExecTaskResponse proto.InternalMessageInfo 1341 1342 func (m *ExecTaskResponse) GetStdout() []byte { 1343 if m != nil { 1344 return m.Stdout 1345 } 1346 return nil 1347 } 1348 1349 func (m *ExecTaskResponse) GetStderr() []byte { 1350 if m != nil { 1351 return m.Stderr 1352 } 1353 return nil 1354 } 1355 1356 func (m *ExecTaskResponse) GetResult() *ExitResult { 1357 if m != nil { 1358 return m.Result 1359 } 1360 return nil 1361 } 1362 1363 type ExecTaskStreamingIOOperation struct { 1364 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` 1365 Close bool `protobuf:"varint,2,opt,name=close,proto3" json:"close,omitempty"` 1366 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1367 XXX_unrecognized []byte `json:"-"` 1368 XXX_sizecache int32 `json:"-"` 1369 } 1370 1371 func (m *ExecTaskStreamingIOOperation) Reset() { *m = ExecTaskStreamingIOOperation{} } 1372 func (m *ExecTaskStreamingIOOperation) String() string { return proto.CompactTextString(m) } 1373 func (*ExecTaskStreamingIOOperation) ProtoMessage() {} 1374 func (*ExecTaskStreamingIOOperation) Descriptor() ([]byte, []int) { 1375 return fileDescriptor_4a8f45747846a74d, []int{25} 1376 } 1377 1378 func (m *ExecTaskStreamingIOOperation) XXX_Unmarshal(b []byte) error { 1379 return xxx_messageInfo_ExecTaskStreamingIOOperation.Unmarshal(m, b) 1380 } 1381 func (m *ExecTaskStreamingIOOperation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1382 return xxx_messageInfo_ExecTaskStreamingIOOperation.Marshal(b, m, deterministic) 1383 } 1384 func (m *ExecTaskStreamingIOOperation) XXX_Merge(src proto.Message) { 1385 xxx_messageInfo_ExecTaskStreamingIOOperation.Merge(m, src) 1386 } 1387 func (m *ExecTaskStreamingIOOperation) XXX_Size() int { 1388 return xxx_messageInfo_ExecTaskStreamingIOOperation.Size(m) 1389 } 1390 func (m *ExecTaskStreamingIOOperation) XXX_DiscardUnknown() { 1391 xxx_messageInfo_ExecTaskStreamingIOOperation.DiscardUnknown(m) 1392 } 1393 1394 var xxx_messageInfo_ExecTaskStreamingIOOperation proto.InternalMessageInfo 1395 1396 func (m *ExecTaskStreamingIOOperation) GetData() []byte { 1397 if m != nil { 1398 return m.Data 1399 } 1400 return nil 1401 } 1402 1403 func (m *ExecTaskStreamingIOOperation) GetClose() bool { 1404 if m != nil { 1405 return m.Close 1406 } 1407 return false 1408 } 1409 1410 type ExecTaskStreamingRequest struct { 1411 Setup *ExecTaskStreamingRequest_Setup `protobuf:"bytes,1,opt,name=setup,proto3" json:"setup,omitempty"` 1412 TtySize *ExecTaskStreamingRequest_TerminalSize `protobuf:"bytes,2,opt,name=tty_size,json=ttySize,proto3" json:"tty_size,omitempty"` 1413 Stdin *ExecTaskStreamingIOOperation `protobuf:"bytes,3,opt,name=stdin,proto3" json:"stdin,omitempty"` 1414 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1415 XXX_unrecognized []byte `json:"-"` 1416 XXX_sizecache int32 `json:"-"` 1417 } 1418 1419 func (m *ExecTaskStreamingRequest) Reset() { *m = ExecTaskStreamingRequest{} } 1420 func (m *ExecTaskStreamingRequest) String() string { return proto.CompactTextString(m) } 1421 func (*ExecTaskStreamingRequest) ProtoMessage() {} 1422 func (*ExecTaskStreamingRequest) Descriptor() ([]byte, []int) { 1423 return fileDescriptor_4a8f45747846a74d, []int{26} 1424 } 1425 1426 func (m *ExecTaskStreamingRequest) XXX_Unmarshal(b []byte) error { 1427 return xxx_messageInfo_ExecTaskStreamingRequest.Unmarshal(m, b) 1428 } 1429 func (m *ExecTaskStreamingRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1430 return xxx_messageInfo_ExecTaskStreamingRequest.Marshal(b, m, deterministic) 1431 } 1432 func (m *ExecTaskStreamingRequest) XXX_Merge(src proto.Message) { 1433 xxx_messageInfo_ExecTaskStreamingRequest.Merge(m, src) 1434 } 1435 func (m *ExecTaskStreamingRequest) XXX_Size() int { 1436 return xxx_messageInfo_ExecTaskStreamingRequest.Size(m) 1437 } 1438 func (m *ExecTaskStreamingRequest) XXX_DiscardUnknown() { 1439 xxx_messageInfo_ExecTaskStreamingRequest.DiscardUnknown(m) 1440 } 1441 1442 var xxx_messageInfo_ExecTaskStreamingRequest proto.InternalMessageInfo 1443 1444 func (m *ExecTaskStreamingRequest) GetSetup() *ExecTaskStreamingRequest_Setup { 1445 if m != nil { 1446 return m.Setup 1447 } 1448 return nil 1449 } 1450 1451 func (m *ExecTaskStreamingRequest) GetTtySize() *ExecTaskStreamingRequest_TerminalSize { 1452 if m != nil { 1453 return m.TtySize 1454 } 1455 return nil 1456 } 1457 1458 func (m *ExecTaskStreamingRequest) GetStdin() *ExecTaskStreamingIOOperation { 1459 if m != nil { 1460 return m.Stdin 1461 } 1462 return nil 1463 } 1464 1465 type ExecTaskStreamingRequest_Setup struct { 1466 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 1467 Command []string `protobuf:"bytes,2,rep,name=command,proto3" json:"command,omitempty"` 1468 Tty bool `protobuf:"varint,3,opt,name=tty,proto3" json:"tty,omitempty"` 1469 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1470 XXX_unrecognized []byte `json:"-"` 1471 XXX_sizecache int32 `json:"-"` 1472 } 1473 1474 func (m *ExecTaskStreamingRequest_Setup) Reset() { *m = ExecTaskStreamingRequest_Setup{} } 1475 func (m *ExecTaskStreamingRequest_Setup) String() string { return proto.CompactTextString(m) } 1476 func (*ExecTaskStreamingRequest_Setup) ProtoMessage() {} 1477 func (*ExecTaskStreamingRequest_Setup) Descriptor() ([]byte, []int) { 1478 return fileDescriptor_4a8f45747846a74d, []int{26, 0} 1479 } 1480 1481 func (m *ExecTaskStreamingRequest_Setup) XXX_Unmarshal(b []byte) error { 1482 return xxx_messageInfo_ExecTaskStreamingRequest_Setup.Unmarshal(m, b) 1483 } 1484 func (m *ExecTaskStreamingRequest_Setup) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1485 return xxx_messageInfo_ExecTaskStreamingRequest_Setup.Marshal(b, m, deterministic) 1486 } 1487 func (m *ExecTaskStreamingRequest_Setup) XXX_Merge(src proto.Message) { 1488 xxx_messageInfo_ExecTaskStreamingRequest_Setup.Merge(m, src) 1489 } 1490 func (m *ExecTaskStreamingRequest_Setup) XXX_Size() int { 1491 return xxx_messageInfo_ExecTaskStreamingRequest_Setup.Size(m) 1492 } 1493 func (m *ExecTaskStreamingRequest_Setup) XXX_DiscardUnknown() { 1494 xxx_messageInfo_ExecTaskStreamingRequest_Setup.DiscardUnknown(m) 1495 } 1496 1497 var xxx_messageInfo_ExecTaskStreamingRequest_Setup proto.InternalMessageInfo 1498 1499 func (m *ExecTaskStreamingRequest_Setup) GetTaskId() string { 1500 if m != nil { 1501 return m.TaskId 1502 } 1503 return "" 1504 } 1505 1506 func (m *ExecTaskStreamingRequest_Setup) GetCommand() []string { 1507 if m != nil { 1508 return m.Command 1509 } 1510 return nil 1511 } 1512 1513 func (m *ExecTaskStreamingRequest_Setup) GetTty() bool { 1514 if m != nil { 1515 return m.Tty 1516 } 1517 return false 1518 } 1519 1520 type ExecTaskStreamingRequest_TerminalSize struct { 1521 Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` 1522 Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty"` 1523 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1524 XXX_unrecognized []byte `json:"-"` 1525 XXX_sizecache int32 `json:"-"` 1526 } 1527 1528 func (m *ExecTaskStreamingRequest_TerminalSize) Reset() { *m = ExecTaskStreamingRequest_TerminalSize{} } 1529 func (m *ExecTaskStreamingRequest_TerminalSize) String() string { return proto.CompactTextString(m) } 1530 func (*ExecTaskStreamingRequest_TerminalSize) ProtoMessage() {} 1531 func (*ExecTaskStreamingRequest_TerminalSize) Descriptor() ([]byte, []int) { 1532 return fileDescriptor_4a8f45747846a74d, []int{26, 1} 1533 } 1534 1535 func (m *ExecTaskStreamingRequest_TerminalSize) XXX_Unmarshal(b []byte) error { 1536 return xxx_messageInfo_ExecTaskStreamingRequest_TerminalSize.Unmarshal(m, b) 1537 } 1538 func (m *ExecTaskStreamingRequest_TerminalSize) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1539 return xxx_messageInfo_ExecTaskStreamingRequest_TerminalSize.Marshal(b, m, deterministic) 1540 } 1541 func (m *ExecTaskStreamingRequest_TerminalSize) XXX_Merge(src proto.Message) { 1542 xxx_messageInfo_ExecTaskStreamingRequest_TerminalSize.Merge(m, src) 1543 } 1544 func (m *ExecTaskStreamingRequest_TerminalSize) XXX_Size() int { 1545 return xxx_messageInfo_ExecTaskStreamingRequest_TerminalSize.Size(m) 1546 } 1547 func (m *ExecTaskStreamingRequest_TerminalSize) XXX_DiscardUnknown() { 1548 xxx_messageInfo_ExecTaskStreamingRequest_TerminalSize.DiscardUnknown(m) 1549 } 1550 1551 var xxx_messageInfo_ExecTaskStreamingRequest_TerminalSize proto.InternalMessageInfo 1552 1553 func (m *ExecTaskStreamingRequest_TerminalSize) GetHeight() int32 { 1554 if m != nil { 1555 return m.Height 1556 } 1557 return 0 1558 } 1559 1560 func (m *ExecTaskStreamingRequest_TerminalSize) GetWidth() int32 { 1561 if m != nil { 1562 return m.Width 1563 } 1564 return 0 1565 } 1566 1567 type ExecTaskStreamingResponse struct { 1568 Stdout *ExecTaskStreamingIOOperation `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"` 1569 Stderr *ExecTaskStreamingIOOperation `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"` 1570 Exited bool `protobuf:"varint,3,opt,name=exited,proto3" json:"exited,omitempty"` 1571 Result *ExitResult `protobuf:"bytes,4,opt,name=result,proto3" json:"result,omitempty"` 1572 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1573 XXX_unrecognized []byte `json:"-"` 1574 XXX_sizecache int32 `json:"-"` 1575 } 1576 1577 func (m *ExecTaskStreamingResponse) Reset() { *m = ExecTaskStreamingResponse{} } 1578 func (m *ExecTaskStreamingResponse) String() string { return proto.CompactTextString(m) } 1579 func (*ExecTaskStreamingResponse) ProtoMessage() {} 1580 func (*ExecTaskStreamingResponse) Descriptor() ([]byte, []int) { 1581 return fileDescriptor_4a8f45747846a74d, []int{27} 1582 } 1583 1584 func (m *ExecTaskStreamingResponse) XXX_Unmarshal(b []byte) error { 1585 return xxx_messageInfo_ExecTaskStreamingResponse.Unmarshal(m, b) 1586 } 1587 func (m *ExecTaskStreamingResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1588 return xxx_messageInfo_ExecTaskStreamingResponse.Marshal(b, m, deterministic) 1589 } 1590 func (m *ExecTaskStreamingResponse) XXX_Merge(src proto.Message) { 1591 xxx_messageInfo_ExecTaskStreamingResponse.Merge(m, src) 1592 } 1593 func (m *ExecTaskStreamingResponse) XXX_Size() int { 1594 return xxx_messageInfo_ExecTaskStreamingResponse.Size(m) 1595 } 1596 func (m *ExecTaskStreamingResponse) XXX_DiscardUnknown() { 1597 xxx_messageInfo_ExecTaskStreamingResponse.DiscardUnknown(m) 1598 } 1599 1600 var xxx_messageInfo_ExecTaskStreamingResponse proto.InternalMessageInfo 1601 1602 func (m *ExecTaskStreamingResponse) GetStdout() *ExecTaskStreamingIOOperation { 1603 if m != nil { 1604 return m.Stdout 1605 } 1606 return nil 1607 } 1608 1609 func (m *ExecTaskStreamingResponse) GetStderr() *ExecTaskStreamingIOOperation { 1610 if m != nil { 1611 return m.Stderr 1612 } 1613 return nil 1614 } 1615 1616 func (m *ExecTaskStreamingResponse) GetExited() bool { 1617 if m != nil { 1618 return m.Exited 1619 } 1620 return false 1621 } 1622 1623 func (m *ExecTaskStreamingResponse) GetResult() *ExitResult { 1624 if m != nil { 1625 return m.Result 1626 } 1627 return nil 1628 } 1629 1630 type CreateNetworkRequest struct { 1631 // AllocID of the allocation the network is associated with 1632 AllocId string `protobuf:"bytes,1,opt,name=alloc_id,json=allocId,proto3" json:"alloc_id,omitempty"` 1633 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1634 XXX_unrecognized []byte `json:"-"` 1635 XXX_sizecache int32 `json:"-"` 1636 } 1637 1638 func (m *CreateNetworkRequest) Reset() { *m = CreateNetworkRequest{} } 1639 func (m *CreateNetworkRequest) String() string { return proto.CompactTextString(m) } 1640 func (*CreateNetworkRequest) ProtoMessage() {} 1641 func (*CreateNetworkRequest) Descriptor() ([]byte, []int) { 1642 return fileDescriptor_4a8f45747846a74d, []int{28} 1643 } 1644 1645 func (m *CreateNetworkRequest) XXX_Unmarshal(b []byte) error { 1646 return xxx_messageInfo_CreateNetworkRequest.Unmarshal(m, b) 1647 } 1648 func (m *CreateNetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1649 return xxx_messageInfo_CreateNetworkRequest.Marshal(b, m, deterministic) 1650 } 1651 func (m *CreateNetworkRequest) XXX_Merge(src proto.Message) { 1652 xxx_messageInfo_CreateNetworkRequest.Merge(m, src) 1653 } 1654 func (m *CreateNetworkRequest) XXX_Size() int { 1655 return xxx_messageInfo_CreateNetworkRequest.Size(m) 1656 } 1657 func (m *CreateNetworkRequest) XXX_DiscardUnknown() { 1658 xxx_messageInfo_CreateNetworkRequest.DiscardUnknown(m) 1659 } 1660 1661 var xxx_messageInfo_CreateNetworkRequest proto.InternalMessageInfo 1662 1663 func (m *CreateNetworkRequest) GetAllocId() string { 1664 if m != nil { 1665 return m.AllocId 1666 } 1667 return "" 1668 } 1669 1670 type CreateNetworkResponse struct { 1671 IsolationSpec *NetworkIsolationSpec `protobuf:"bytes,1,opt,name=isolation_spec,json=isolationSpec,proto3" json:"isolation_spec,omitempty"` 1672 // created indicates that the network namespace is newly created 1673 // as a result of this request. if false, the NetworkIsolationSpec 1674 // value returned is an existing spec. 1675 Created bool `protobuf:"varint,2,opt,name=created,proto3" json:"created,omitempty"` 1676 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1677 XXX_unrecognized []byte `json:"-"` 1678 XXX_sizecache int32 `json:"-"` 1679 } 1680 1681 func (m *CreateNetworkResponse) Reset() { *m = CreateNetworkResponse{} } 1682 func (m *CreateNetworkResponse) String() string { return proto.CompactTextString(m) } 1683 func (*CreateNetworkResponse) ProtoMessage() {} 1684 func (*CreateNetworkResponse) Descriptor() ([]byte, []int) { 1685 return fileDescriptor_4a8f45747846a74d, []int{29} 1686 } 1687 1688 func (m *CreateNetworkResponse) XXX_Unmarshal(b []byte) error { 1689 return xxx_messageInfo_CreateNetworkResponse.Unmarshal(m, b) 1690 } 1691 func (m *CreateNetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1692 return xxx_messageInfo_CreateNetworkResponse.Marshal(b, m, deterministic) 1693 } 1694 func (m *CreateNetworkResponse) XXX_Merge(src proto.Message) { 1695 xxx_messageInfo_CreateNetworkResponse.Merge(m, src) 1696 } 1697 func (m *CreateNetworkResponse) XXX_Size() int { 1698 return xxx_messageInfo_CreateNetworkResponse.Size(m) 1699 } 1700 func (m *CreateNetworkResponse) XXX_DiscardUnknown() { 1701 xxx_messageInfo_CreateNetworkResponse.DiscardUnknown(m) 1702 } 1703 1704 var xxx_messageInfo_CreateNetworkResponse proto.InternalMessageInfo 1705 1706 func (m *CreateNetworkResponse) GetIsolationSpec() *NetworkIsolationSpec { 1707 if m != nil { 1708 return m.IsolationSpec 1709 } 1710 return nil 1711 } 1712 1713 func (m *CreateNetworkResponse) GetCreated() bool { 1714 if m != nil { 1715 return m.Created 1716 } 1717 return false 1718 } 1719 1720 type DestroyNetworkRequest struct { 1721 // AllocID of the allocation the network is associated with 1722 AllocId string `protobuf:"bytes,1,opt,name=alloc_id,json=allocId,proto3" json:"alloc_id,omitempty"` 1723 IsolationSpec *NetworkIsolationSpec `protobuf:"bytes,2,opt,name=isolation_spec,json=isolationSpec,proto3" json:"isolation_spec,omitempty"` 1724 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1725 XXX_unrecognized []byte `json:"-"` 1726 XXX_sizecache int32 `json:"-"` 1727 } 1728 1729 func (m *DestroyNetworkRequest) Reset() { *m = DestroyNetworkRequest{} } 1730 func (m *DestroyNetworkRequest) String() string { return proto.CompactTextString(m) } 1731 func (*DestroyNetworkRequest) ProtoMessage() {} 1732 func (*DestroyNetworkRequest) Descriptor() ([]byte, []int) { 1733 return fileDescriptor_4a8f45747846a74d, []int{30} 1734 } 1735 1736 func (m *DestroyNetworkRequest) XXX_Unmarshal(b []byte) error { 1737 return xxx_messageInfo_DestroyNetworkRequest.Unmarshal(m, b) 1738 } 1739 func (m *DestroyNetworkRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1740 return xxx_messageInfo_DestroyNetworkRequest.Marshal(b, m, deterministic) 1741 } 1742 func (m *DestroyNetworkRequest) XXX_Merge(src proto.Message) { 1743 xxx_messageInfo_DestroyNetworkRequest.Merge(m, src) 1744 } 1745 func (m *DestroyNetworkRequest) XXX_Size() int { 1746 return xxx_messageInfo_DestroyNetworkRequest.Size(m) 1747 } 1748 func (m *DestroyNetworkRequest) XXX_DiscardUnknown() { 1749 xxx_messageInfo_DestroyNetworkRequest.DiscardUnknown(m) 1750 } 1751 1752 var xxx_messageInfo_DestroyNetworkRequest proto.InternalMessageInfo 1753 1754 func (m *DestroyNetworkRequest) GetAllocId() string { 1755 if m != nil { 1756 return m.AllocId 1757 } 1758 return "" 1759 } 1760 1761 func (m *DestroyNetworkRequest) GetIsolationSpec() *NetworkIsolationSpec { 1762 if m != nil { 1763 return m.IsolationSpec 1764 } 1765 return nil 1766 } 1767 1768 type DestroyNetworkResponse struct { 1769 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1770 XXX_unrecognized []byte `json:"-"` 1771 XXX_sizecache int32 `json:"-"` 1772 } 1773 1774 func (m *DestroyNetworkResponse) Reset() { *m = DestroyNetworkResponse{} } 1775 func (m *DestroyNetworkResponse) String() string { return proto.CompactTextString(m) } 1776 func (*DestroyNetworkResponse) ProtoMessage() {} 1777 func (*DestroyNetworkResponse) Descriptor() ([]byte, []int) { 1778 return fileDescriptor_4a8f45747846a74d, []int{31} 1779 } 1780 1781 func (m *DestroyNetworkResponse) XXX_Unmarshal(b []byte) error { 1782 return xxx_messageInfo_DestroyNetworkResponse.Unmarshal(m, b) 1783 } 1784 func (m *DestroyNetworkResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1785 return xxx_messageInfo_DestroyNetworkResponse.Marshal(b, m, deterministic) 1786 } 1787 func (m *DestroyNetworkResponse) XXX_Merge(src proto.Message) { 1788 xxx_messageInfo_DestroyNetworkResponse.Merge(m, src) 1789 } 1790 func (m *DestroyNetworkResponse) XXX_Size() int { 1791 return xxx_messageInfo_DestroyNetworkResponse.Size(m) 1792 } 1793 func (m *DestroyNetworkResponse) XXX_DiscardUnknown() { 1794 xxx_messageInfo_DestroyNetworkResponse.DiscardUnknown(m) 1795 } 1796 1797 var xxx_messageInfo_DestroyNetworkResponse proto.InternalMessageInfo 1798 1799 type DriverCapabilities struct { 1800 // SendSignals indicates that the driver can send process signals (ex. SIGUSR1) 1801 // to the task. 1802 SendSignals bool `protobuf:"varint,1,opt,name=send_signals,json=sendSignals,proto3" json:"send_signals,omitempty"` 1803 // Exec indicates that the driver supports executing arbitrary commands 1804 // in the task's execution environment. 1805 Exec bool `protobuf:"varint,2,opt,name=exec,proto3" json:"exec,omitempty"` 1806 // FsIsolation indicates what kind of filesystem isolation a driver supports. 1807 FsIsolation DriverCapabilities_FSIsolation `protobuf:"varint,3,opt,name=fs_isolation,json=fsIsolation,proto3,enum=hashicorp.nomad.plugins.drivers.proto.DriverCapabilities_FSIsolation" json:"fs_isolation,omitempty"` 1808 NetworkIsolationModes []NetworkIsolationSpec_NetworkIsolationMode `protobuf:"varint,4,rep,packed,name=network_isolation_modes,json=networkIsolationModes,proto3,enum=hashicorp.nomad.plugins.drivers.proto.NetworkIsolationSpec_NetworkIsolationMode" json:"network_isolation_modes,omitempty"` 1809 MustCreateNetwork bool `protobuf:"varint,5,opt,name=must_create_network,json=mustCreateNetwork,proto3" json:"must_create_network,omitempty"` 1810 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1811 XXX_unrecognized []byte `json:"-"` 1812 XXX_sizecache int32 `json:"-"` 1813 } 1814 1815 func (m *DriverCapabilities) Reset() { *m = DriverCapabilities{} } 1816 func (m *DriverCapabilities) String() string { return proto.CompactTextString(m) } 1817 func (*DriverCapabilities) ProtoMessage() {} 1818 func (*DriverCapabilities) Descriptor() ([]byte, []int) { 1819 return fileDescriptor_4a8f45747846a74d, []int{32} 1820 } 1821 1822 func (m *DriverCapabilities) XXX_Unmarshal(b []byte) error { 1823 return xxx_messageInfo_DriverCapabilities.Unmarshal(m, b) 1824 } 1825 func (m *DriverCapabilities) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1826 return xxx_messageInfo_DriverCapabilities.Marshal(b, m, deterministic) 1827 } 1828 func (m *DriverCapabilities) XXX_Merge(src proto.Message) { 1829 xxx_messageInfo_DriverCapabilities.Merge(m, src) 1830 } 1831 func (m *DriverCapabilities) XXX_Size() int { 1832 return xxx_messageInfo_DriverCapabilities.Size(m) 1833 } 1834 func (m *DriverCapabilities) XXX_DiscardUnknown() { 1835 xxx_messageInfo_DriverCapabilities.DiscardUnknown(m) 1836 } 1837 1838 var xxx_messageInfo_DriverCapabilities proto.InternalMessageInfo 1839 1840 func (m *DriverCapabilities) GetSendSignals() bool { 1841 if m != nil { 1842 return m.SendSignals 1843 } 1844 return false 1845 } 1846 1847 func (m *DriverCapabilities) GetExec() bool { 1848 if m != nil { 1849 return m.Exec 1850 } 1851 return false 1852 } 1853 1854 func (m *DriverCapabilities) GetFsIsolation() DriverCapabilities_FSIsolation { 1855 if m != nil { 1856 return m.FsIsolation 1857 } 1858 return DriverCapabilities_NONE 1859 } 1860 1861 func (m *DriverCapabilities) GetNetworkIsolationModes() []NetworkIsolationSpec_NetworkIsolationMode { 1862 if m != nil { 1863 return m.NetworkIsolationModes 1864 } 1865 return nil 1866 } 1867 1868 func (m *DriverCapabilities) GetMustCreateNetwork() bool { 1869 if m != nil { 1870 return m.MustCreateNetwork 1871 } 1872 return false 1873 } 1874 1875 type NetworkIsolationSpec struct { 1876 Mode NetworkIsolationSpec_NetworkIsolationMode `protobuf:"varint,1,opt,name=mode,proto3,enum=hashicorp.nomad.plugins.drivers.proto.NetworkIsolationSpec_NetworkIsolationMode" json:"mode,omitempty"` 1877 Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` 1878 Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 1879 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1880 XXX_unrecognized []byte `json:"-"` 1881 XXX_sizecache int32 `json:"-"` 1882 } 1883 1884 func (m *NetworkIsolationSpec) Reset() { *m = NetworkIsolationSpec{} } 1885 func (m *NetworkIsolationSpec) String() string { return proto.CompactTextString(m) } 1886 func (*NetworkIsolationSpec) ProtoMessage() {} 1887 func (*NetworkIsolationSpec) Descriptor() ([]byte, []int) { 1888 return fileDescriptor_4a8f45747846a74d, []int{33} 1889 } 1890 1891 func (m *NetworkIsolationSpec) XXX_Unmarshal(b []byte) error { 1892 return xxx_messageInfo_NetworkIsolationSpec.Unmarshal(m, b) 1893 } 1894 func (m *NetworkIsolationSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1895 return xxx_messageInfo_NetworkIsolationSpec.Marshal(b, m, deterministic) 1896 } 1897 func (m *NetworkIsolationSpec) XXX_Merge(src proto.Message) { 1898 xxx_messageInfo_NetworkIsolationSpec.Merge(m, src) 1899 } 1900 func (m *NetworkIsolationSpec) XXX_Size() int { 1901 return xxx_messageInfo_NetworkIsolationSpec.Size(m) 1902 } 1903 func (m *NetworkIsolationSpec) XXX_DiscardUnknown() { 1904 xxx_messageInfo_NetworkIsolationSpec.DiscardUnknown(m) 1905 } 1906 1907 var xxx_messageInfo_NetworkIsolationSpec proto.InternalMessageInfo 1908 1909 func (m *NetworkIsolationSpec) GetMode() NetworkIsolationSpec_NetworkIsolationMode { 1910 if m != nil { 1911 return m.Mode 1912 } 1913 return NetworkIsolationSpec_HOST 1914 } 1915 1916 func (m *NetworkIsolationSpec) GetPath() string { 1917 if m != nil { 1918 return m.Path 1919 } 1920 return "" 1921 } 1922 1923 func (m *NetworkIsolationSpec) GetLabels() map[string]string { 1924 if m != nil { 1925 return m.Labels 1926 } 1927 return nil 1928 } 1929 1930 type TaskConfig struct { 1931 // Id of the task, recommended to the globally unique, must be unique to the driver. 1932 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 1933 // Name of the task 1934 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 1935 // MsgpackDriverConfig is the encoded driver configuation of the task 1936 MsgpackDriverConfig []byte `protobuf:"bytes,3,opt,name=msgpack_driver_config,json=msgpackDriverConfig,proto3" json:"msgpack_driver_config,omitempty"` 1937 // Env is the a set of key/value pairs to be set as environment variables 1938 Env map[string]string `protobuf:"bytes,4,rep,name=env,proto3" json:"env,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 1939 // DeviceEnv is the set of environment variables that are defined by device 1940 // plugins. This allows the driver to differentiate environment variables 1941 // set by the device plugins and those by the user. When populating the 1942 // task's environment env should be used. 1943 DeviceEnv map[string]string `protobuf:"bytes,5,rep,name=device_env,json=deviceEnv,proto3" json:"device_env,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 1944 // Resources defines the resources to isolate 1945 Resources *Resources `protobuf:"bytes,6,opt,name=resources,proto3" json:"resources,omitempty"` 1946 // Mounts is a list of targets to bind mount into the task directory 1947 Mounts []*Mount `protobuf:"bytes,7,rep,name=mounts,proto3" json:"mounts,omitempty"` 1948 // Devices is a list of system devices to mount into the task's execution 1949 // environment. 1950 Devices []*Device `protobuf:"bytes,8,rep,name=devices,proto3" json:"devices,omitempty"` 1951 // User defines the operating system user the tasks should run as 1952 User string `protobuf:"bytes,9,opt,name=user,proto3" json:"user,omitempty"` 1953 // AllocDir is the directory on the host where the allocation directory 1954 // exists. 1955 AllocDir string `protobuf:"bytes,10,opt,name=alloc_dir,json=allocDir,proto3" json:"alloc_dir,omitempty"` 1956 // StdoutPath is the path to the file to open and write task stdout to 1957 StdoutPath string `protobuf:"bytes,11,opt,name=stdout_path,json=stdoutPath,proto3" json:"stdout_path,omitempty"` 1958 // StderrPath is the path to the file to open and write task stderr to 1959 StderrPath string `protobuf:"bytes,12,opt,name=stderr_path,json=stderrPath,proto3" json:"stderr_path,omitempty"` 1960 // TaskGroupName is the name of the task group which this task is a member of 1961 TaskGroupName string `protobuf:"bytes,13,opt,name=task_group_name,json=taskGroupName,proto3" json:"task_group_name,omitempty"` 1962 // JobName is the name of the job of which this task is part of 1963 JobName string `protobuf:"bytes,14,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` 1964 // AllocId is the ID of the associated allocation 1965 AllocId string `protobuf:"bytes,15,opt,name=alloc_id,json=allocId,proto3" json:"alloc_id,omitempty"` 1966 // NetworkIsolationSpec specifies the configuration for the network namespace 1967 // to use for the task. *Only supported on Linux 1968 NetworkIsolationSpec *NetworkIsolationSpec `protobuf:"bytes,16,opt,name=network_isolation_spec,json=networkIsolationSpec,proto3" json:"network_isolation_spec,omitempty"` 1969 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1970 XXX_unrecognized []byte `json:"-"` 1971 XXX_sizecache int32 `json:"-"` 1972 } 1973 1974 func (m *TaskConfig) Reset() { *m = TaskConfig{} } 1975 func (m *TaskConfig) String() string { return proto.CompactTextString(m) } 1976 func (*TaskConfig) ProtoMessage() {} 1977 func (*TaskConfig) Descriptor() ([]byte, []int) { 1978 return fileDescriptor_4a8f45747846a74d, []int{34} 1979 } 1980 1981 func (m *TaskConfig) XXX_Unmarshal(b []byte) error { 1982 return xxx_messageInfo_TaskConfig.Unmarshal(m, b) 1983 } 1984 func (m *TaskConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1985 return xxx_messageInfo_TaskConfig.Marshal(b, m, deterministic) 1986 } 1987 func (m *TaskConfig) XXX_Merge(src proto.Message) { 1988 xxx_messageInfo_TaskConfig.Merge(m, src) 1989 } 1990 func (m *TaskConfig) XXX_Size() int { 1991 return xxx_messageInfo_TaskConfig.Size(m) 1992 } 1993 func (m *TaskConfig) XXX_DiscardUnknown() { 1994 xxx_messageInfo_TaskConfig.DiscardUnknown(m) 1995 } 1996 1997 var xxx_messageInfo_TaskConfig proto.InternalMessageInfo 1998 1999 func (m *TaskConfig) GetId() string { 2000 if m != nil { 2001 return m.Id 2002 } 2003 return "" 2004 } 2005 2006 func (m *TaskConfig) GetName() string { 2007 if m != nil { 2008 return m.Name 2009 } 2010 return "" 2011 } 2012 2013 func (m *TaskConfig) GetMsgpackDriverConfig() []byte { 2014 if m != nil { 2015 return m.MsgpackDriverConfig 2016 } 2017 return nil 2018 } 2019 2020 func (m *TaskConfig) GetEnv() map[string]string { 2021 if m != nil { 2022 return m.Env 2023 } 2024 return nil 2025 } 2026 2027 func (m *TaskConfig) GetDeviceEnv() map[string]string { 2028 if m != nil { 2029 return m.DeviceEnv 2030 } 2031 return nil 2032 } 2033 2034 func (m *TaskConfig) GetResources() *Resources { 2035 if m != nil { 2036 return m.Resources 2037 } 2038 return nil 2039 } 2040 2041 func (m *TaskConfig) GetMounts() []*Mount { 2042 if m != nil { 2043 return m.Mounts 2044 } 2045 return nil 2046 } 2047 2048 func (m *TaskConfig) GetDevices() []*Device { 2049 if m != nil { 2050 return m.Devices 2051 } 2052 return nil 2053 } 2054 2055 func (m *TaskConfig) GetUser() string { 2056 if m != nil { 2057 return m.User 2058 } 2059 return "" 2060 } 2061 2062 func (m *TaskConfig) GetAllocDir() string { 2063 if m != nil { 2064 return m.AllocDir 2065 } 2066 return "" 2067 } 2068 2069 func (m *TaskConfig) GetStdoutPath() string { 2070 if m != nil { 2071 return m.StdoutPath 2072 } 2073 return "" 2074 } 2075 2076 func (m *TaskConfig) GetStderrPath() string { 2077 if m != nil { 2078 return m.StderrPath 2079 } 2080 return "" 2081 } 2082 2083 func (m *TaskConfig) GetTaskGroupName() string { 2084 if m != nil { 2085 return m.TaskGroupName 2086 } 2087 return "" 2088 } 2089 2090 func (m *TaskConfig) GetJobName() string { 2091 if m != nil { 2092 return m.JobName 2093 } 2094 return "" 2095 } 2096 2097 func (m *TaskConfig) GetAllocId() string { 2098 if m != nil { 2099 return m.AllocId 2100 } 2101 return "" 2102 } 2103 2104 func (m *TaskConfig) GetNetworkIsolationSpec() *NetworkIsolationSpec { 2105 if m != nil { 2106 return m.NetworkIsolationSpec 2107 } 2108 return nil 2109 } 2110 2111 type Resources struct { 2112 // AllocatedResources are the resources set for the task 2113 AllocatedResources *AllocatedTaskResources `protobuf:"bytes,1,opt,name=allocated_resources,json=allocatedResources,proto3" json:"allocated_resources,omitempty"` 2114 // LinuxResources are the computed values to set for specific Linux features 2115 LinuxResources *LinuxResources `protobuf:"bytes,2,opt,name=linux_resources,json=linuxResources,proto3" json:"linux_resources,omitempty"` 2116 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2117 XXX_unrecognized []byte `json:"-"` 2118 XXX_sizecache int32 `json:"-"` 2119 } 2120 2121 func (m *Resources) Reset() { *m = Resources{} } 2122 func (m *Resources) String() string { return proto.CompactTextString(m) } 2123 func (*Resources) ProtoMessage() {} 2124 func (*Resources) Descriptor() ([]byte, []int) { 2125 return fileDescriptor_4a8f45747846a74d, []int{35} 2126 } 2127 2128 func (m *Resources) XXX_Unmarshal(b []byte) error { 2129 return xxx_messageInfo_Resources.Unmarshal(m, b) 2130 } 2131 func (m *Resources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2132 return xxx_messageInfo_Resources.Marshal(b, m, deterministic) 2133 } 2134 func (m *Resources) XXX_Merge(src proto.Message) { 2135 xxx_messageInfo_Resources.Merge(m, src) 2136 } 2137 func (m *Resources) XXX_Size() int { 2138 return xxx_messageInfo_Resources.Size(m) 2139 } 2140 func (m *Resources) XXX_DiscardUnknown() { 2141 xxx_messageInfo_Resources.DiscardUnknown(m) 2142 } 2143 2144 var xxx_messageInfo_Resources proto.InternalMessageInfo 2145 2146 func (m *Resources) GetAllocatedResources() *AllocatedTaskResources { 2147 if m != nil { 2148 return m.AllocatedResources 2149 } 2150 return nil 2151 } 2152 2153 func (m *Resources) GetLinuxResources() *LinuxResources { 2154 if m != nil { 2155 return m.LinuxResources 2156 } 2157 return nil 2158 } 2159 2160 type AllocatedTaskResources struct { 2161 Cpu *AllocatedCpuResources `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` 2162 Memory *AllocatedMemoryResources `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"` 2163 Networks []*NetworkResource `protobuf:"bytes,5,rep,name=networks,proto3" json:"networks,omitempty"` 2164 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2165 XXX_unrecognized []byte `json:"-"` 2166 XXX_sizecache int32 `json:"-"` 2167 } 2168 2169 func (m *AllocatedTaskResources) Reset() { *m = AllocatedTaskResources{} } 2170 func (m *AllocatedTaskResources) String() string { return proto.CompactTextString(m) } 2171 func (*AllocatedTaskResources) ProtoMessage() {} 2172 func (*AllocatedTaskResources) Descriptor() ([]byte, []int) { 2173 return fileDescriptor_4a8f45747846a74d, []int{36} 2174 } 2175 2176 func (m *AllocatedTaskResources) XXX_Unmarshal(b []byte) error { 2177 return xxx_messageInfo_AllocatedTaskResources.Unmarshal(m, b) 2178 } 2179 func (m *AllocatedTaskResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2180 return xxx_messageInfo_AllocatedTaskResources.Marshal(b, m, deterministic) 2181 } 2182 func (m *AllocatedTaskResources) XXX_Merge(src proto.Message) { 2183 xxx_messageInfo_AllocatedTaskResources.Merge(m, src) 2184 } 2185 func (m *AllocatedTaskResources) XXX_Size() int { 2186 return xxx_messageInfo_AllocatedTaskResources.Size(m) 2187 } 2188 func (m *AllocatedTaskResources) XXX_DiscardUnknown() { 2189 xxx_messageInfo_AllocatedTaskResources.DiscardUnknown(m) 2190 } 2191 2192 var xxx_messageInfo_AllocatedTaskResources proto.InternalMessageInfo 2193 2194 func (m *AllocatedTaskResources) GetCpu() *AllocatedCpuResources { 2195 if m != nil { 2196 return m.Cpu 2197 } 2198 return nil 2199 } 2200 2201 func (m *AllocatedTaskResources) GetMemory() *AllocatedMemoryResources { 2202 if m != nil { 2203 return m.Memory 2204 } 2205 return nil 2206 } 2207 2208 func (m *AllocatedTaskResources) GetNetworks() []*NetworkResource { 2209 if m != nil { 2210 return m.Networks 2211 } 2212 return nil 2213 } 2214 2215 type AllocatedCpuResources struct { 2216 CpuShares int64 `protobuf:"varint,1,opt,name=cpu_shares,json=cpuShares,proto3" json:"cpu_shares,omitempty"` 2217 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2218 XXX_unrecognized []byte `json:"-"` 2219 XXX_sizecache int32 `json:"-"` 2220 } 2221 2222 func (m *AllocatedCpuResources) Reset() { *m = AllocatedCpuResources{} } 2223 func (m *AllocatedCpuResources) String() string { return proto.CompactTextString(m) } 2224 func (*AllocatedCpuResources) ProtoMessage() {} 2225 func (*AllocatedCpuResources) Descriptor() ([]byte, []int) { 2226 return fileDescriptor_4a8f45747846a74d, []int{37} 2227 } 2228 2229 func (m *AllocatedCpuResources) XXX_Unmarshal(b []byte) error { 2230 return xxx_messageInfo_AllocatedCpuResources.Unmarshal(m, b) 2231 } 2232 func (m *AllocatedCpuResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2233 return xxx_messageInfo_AllocatedCpuResources.Marshal(b, m, deterministic) 2234 } 2235 func (m *AllocatedCpuResources) XXX_Merge(src proto.Message) { 2236 xxx_messageInfo_AllocatedCpuResources.Merge(m, src) 2237 } 2238 func (m *AllocatedCpuResources) XXX_Size() int { 2239 return xxx_messageInfo_AllocatedCpuResources.Size(m) 2240 } 2241 func (m *AllocatedCpuResources) XXX_DiscardUnknown() { 2242 xxx_messageInfo_AllocatedCpuResources.DiscardUnknown(m) 2243 } 2244 2245 var xxx_messageInfo_AllocatedCpuResources proto.InternalMessageInfo 2246 2247 func (m *AllocatedCpuResources) GetCpuShares() int64 { 2248 if m != nil { 2249 return m.CpuShares 2250 } 2251 return 0 2252 } 2253 2254 type AllocatedMemoryResources struct { 2255 MemoryMb int64 `protobuf:"varint,2,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"` 2256 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2257 XXX_unrecognized []byte `json:"-"` 2258 XXX_sizecache int32 `json:"-"` 2259 } 2260 2261 func (m *AllocatedMemoryResources) Reset() { *m = AllocatedMemoryResources{} } 2262 func (m *AllocatedMemoryResources) String() string { return proto.CompactTextString(m) } 2263 func (*AllocatedMemoryResources) ProtoMessage() {} 2264 func (*AllocatedMemoryResources) Descriptor() ([]byte, []int) { 2265 return fileDescriptor_4a8f45747846a74d, []int{38} 2266 } 2267 2268 func (m *AllocatedMemoryResources) XXX_Unmarshal(b []byte) error { 2269 return xxx_messageInfo_AllocatedMemoryResources.Unmarshal(m, b) 2270 } 2271 func (m *AllocatedMemoryResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2272 return xxx_messageInfo_AllocatedMemoryResources.Marshal(b, m, deterministic) 2273 } 2274 func (m *AllocatedMemoryResources) XXX_Merge(src proto.Message) { 2275 xxx_messageInfo_AllocatedMemoryResources.Merge(m, src) 2276 } 2277 func (m *AllocatedMemoryResources) XXX_Size() int { 2278 return xxx_messageInfo_AllocatedMemoryResources.Size(m) 2279 } 2280 func (m *AllocatedMemoryResources) XXX_DiscardUnknown() { 2281 xxx_messageInfo_AllocatedMemoryResources.DiscardUnknown(m) 2282 } 2283 2284 var xxx_messageInfo_AllocatedMemoryResources proto.InternalMessageInfo 2285 2286 func (m *AllocatedMemoryResources) GetMemoryMb() int64 { 2287 if m != nil { 2288 return m.MemoryMb 2289 } 2290 return 0 2291 } 2292 2293 type NetworkResource struct { 2294 Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` 2295 Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"` 2296 Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` 2297 Mbits int32 `protobuf:"varint,4,opt,name=mbits,proto3" json:"mbits,omitempty"` 2298 ReservedPorts []*NetworkPort `protobuf:"bytes,5,rep,name=reserved_ports,json=reservedPorts,proto3" json:"reserved_ports,omitempty"` 2299 DynamicPorts []*NetworkPort `protobuf:"bytes,6,rep,name=dynamic_ports,json=dynamicPorts,proto3" json:"dynamic_ports,omitempty"` 2300 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2301 XXX_unrecognized []byte `json:"-"` 2302 XXX_sizecache int32 `json:"-"` 2303 } 2304 2305 func (m *NetworkResource) Reset() { *m = NetworkResource{} } 2306 func (m *NetworkResource) String() string { return proto.CompactTextString(m) } 2307 func (*NetworkResource) ProtoMessage() {} 2308 func (*NetworkResource) Descriptor() ([]byte, []int) { 2309 return fileDescriptor_4a8f45747846a74d, []int{39} 2310 } 2311 2312 func (m *NetworkResource) XXX_Unmarshal(b []byte) error { 2313 return xxx_messageInfo_NetworkResource.Unmarshal(m, b) 2314 } 2315 func (m *NetworkResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2316 return xxx_messageInfo_NetworkResource.Marshal(b, m, deterministic) 2317 } 2318 func (m *NetworkResource) XXX_Merge(src proto.Message) { 2319 xxx_messageInfo_NetworkResource.Merge(m, src) 2320 } 2321 func (m *NetworkResource) XXX_Size() int { 2322 return xxx_messageInfo_NetworkResource.Size(m) 2323 } 2324 func (m *NetworkResource) XXX_DiscardUnknown() { 2325 xxx_messageInfo_NetworkResource.DiscardUnknown(m) 2326 } 2327 2328 var xxx_messageInfo_NetworkResource proto.InternalMessageInfo 2329 2330 func (m *NetworkResource) GetDevice() string { 2331 if m != nil { 2332 return m.Device 2333 } 2334 return "" 2335 } 2336 2337 func (m *NetworkResource) GetCidr() string { 2338 if m != nil { 2339 return m.Cidr 2340 } 2341 return "" 2342 } 2343 2344 func (m *NetworkResource) GetIp() string { 2345 if m != nil { 2346 return m.Ip 2347 } 2348 return "" 2349 } 2350 2351 func (m *NetworkResource) GetMbits() int32 { 2352 if m != nil { 2353 return m.Mbits 2354 } 2355 return 0 2356 } 2357 2358 func (m *NetworkResource) GetReservedPorts() []*NetworkPort { 2359 if m != nil { 2360 return m.ReservedPorts 2361 } 2362 return nil 2363 } 2364 2365 func (m *NetworkResource) GetDynamicPorts() []*NetworkPort { 2366 if m != nil { 2367 return m.DynamicPorts 2368 } 2369 return nil 2370 } 2371 2372 type NetworkPort struct { 2373 Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` 2374 Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` 2375 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2376 XXX_unrecognized []byte `json:"-"` 2377 XXX_sizecache int32 `json:"-"` 2378 } 2379 2380 func (m *NetworkPort) Reset() { *m = NetworkPort{} } 2381 func (m *NetworkPort) String() string { return proto.CompactTextString(m) } 2382 func (*NetworkPort) ProtoMessage() {} 2383 func (*NetworkPort) Descriptor() ([]byte, []int) { 2384 return fileDescriptor_4a8f45747846a74d, []int{40} 2385 } 2386 2387 func (m *NetworkPort) XXX_Unmarshal(b []byte) error { 2388 return xxx_messageInfo_NetworkPort.Unmarshal(m, b) 2389 } 2390 func (m *NetworkPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2391 return xxx_messageInfo_NetworkPort.Marshal(b, m, deterministic) 2392 } 2393 func (m *NetworkPort) XXX_Merge(src proto.Message) { 2394 xxx_messageInfo_NetworkPort.Merge(m, src) 2395 } 2396 func (m *NetworkPort) XXX_Size() int { 2397 return xxx_messageInfo_NetworkPort.Size(m) 2398 } 2399 func (m *NetworkPort) XXX_DiscardUnknown() { 2400 xxx_messageInfo_NetworkPort.DiscardUnknown(m) 2401 } 2402 2403 var xxx_messageInfo_NetworkPort proto.InternalMessageInfo 2404 2405 func (m *NetworkPort) GetLabel() string { 2406 if m != nil { 2407 return m.Label 2408 } 2409 return "" 2410 } 2411 2412 func (m *NetworkPort) GetValue() int32 { 2413 if m != nil { 2414 return m.Value 2415 } 2416 return 0 2417 } 2418 2419 type LinuxResources struct { 2420 // CPU CFS (Completely Fair Scheduler) period. Default: 0 (not specified) 2421 CpuPeriod int64 `protobuf:"varint,1,opt,name=cpu_period,json=cpuPeriod,proto3" json:"cpu_period,omitempty"` 2422 // CPU CFS (Completely Fair Scheduler) quota. Default: 0 (not specified) 2423 CpuQuota int64 `protobuf:"varint,2,opt,name=cpu_quota,json=cpuQuota,proto3" json:"cpu_quota,omitempty"` 2424 // CPU shares (relative weight vs. other containers). Default: 0 (not specified) 2425 CpuShares int64 `protobuf:"varint,3,opt,name=cpu_shares,json=cpuShares,proto3" json:"cpu_shares,omitempty"` 2426 // Memory limit in bytes. Default: 0 (not specified) 2427 MemoryLimitBytes int64 `protobuf:"varint,4,opt,name=memory_limit_bytes,json=memoryLimitBytes,proto3" json:"memory_limit_bytes,omitempty"` 2428 // OOMScoreAdj adjusts the oom-killer score. Default: 0 (not specified) 2429 OomScoreAdj int64 `protobuf:"varint,5,opt,name=oom_score_adj,json=oomScoreAdj,proto3" json:"oom_score_adj,omitempty"` 2430 // CpusetCpus constrains the allowed set of logical CPUs. Default: "" (not specified) 2431 CpusetCpus string `protobuf:"bytes,6,opt,name=cpuset_cpus,json=cpusetCpus,proto3" json:"cpuset_cpus,omitempty"` 2432 // CpusetMems constrains the allowed set of memory nodes. Default: "" (not specified) 2433 CpusetMems string `protobuf:"bytes,7,opt,name=cpuset_mems,json=cpusetMems,proto3" json:"cpuset_mems,omitempty"` 2434 // PercentTicks is a compatibility option for docker and should not be used 2435 PercentTicks float64 `protobuf:"fixed64,8,opt,name=PercentTicks,proto3" json:"PercentTicks,omitempty"` 2436 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2437 XXX_unrecognized []byte `json:"-"` 2438 XXX_sizecache int32 `json:"-"` 2439 } 2440 2441 func (m *LinuxResources) Reset() { *m = LinuxResources{} } 2442 func (m *LinuxResources) String() string { return proto.CompactTextString(m) } 2443 func (*LinuxResources) ProtoMessage() {} 2444 func (*LinuxResources) Descriptor() ([]byte, []int) { 2445 return fileDescriptor_4a8f45747846a74d, []int{41} 2446 } 2447 2448 func (m *LinuxResources) XXX_Unmarshal(b []byte) error { 2449 return xxx_messageInfo_LinuxResources.Unmarshal(m, b) 2450 } 2451 func (m *LinuxResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2452 return xxx_messageInfo_LinuxResources.Marshal(b, m, deterministic) 2453 } 2454 func (m *LinuxResources) XXX_Merge(src proto.Message) { 2455 xxx_messageInfo_LinuxResources.Merge(m, src) 2456 } 2457 func (m *LinuxResources) XXX_Size() int { 2458 return xxx_messageInfo_LinuxResources.Size(m) 2459 } 2460 func (m *LinuxResources) XXX_DiscardUnknown() { 2461 xxx_messageInfo_LinuxResources.DiscardUnknown(m) 2462 } 2463 2464 var xxx_messageInfo_LinuxResources proto.InternalMessageInfo 2465 2466 func (m *LinuxResources) GetCpuPeriod() int64 { 2467 if m != nil { 2468 return m.CpuPeriod 2469 } 2470 return 0 2471 } 2472 2473 func (m *LinuxResources) GetCpuQuota() int64 { 2474 if m != nil { 2475 return m.CpuQuota 2476 } 2477 return 0 2478 } 2479 2480 func (m *LinuxResources) GetCpuShares() int64 { 2481 if m != nil { 2482 return m.CpuShares 2483 } 2484 return 0 2485 } 2486 2487 func (m *LinuxResources) GetMemoryLimitBytes() int64 { 2488 if m != nil { 2489 return m.MemoryLimitBytes 2490 } 2491 return 0 2492 } 2493 2494 func (m *LinuxResources) GetOomScoreAdj() int64 { 2495 if m != nil { 2496 return m.OomScoreAdj 2497 } 2498 return 0 2499 } 2500 2501 func (m *LinuxResources) GetCpusetCpus() string { 2502 if m != nil { 2503 return m.CpusetCpus 2504 } 2505 return "" 2506 } 2507 2508 func (m *LinuxResources) GetCpusetMems() string { 2509 if m != nil { 2510 return m.CpusetMems 2511 } 2512 return "" 2513 } 2514 2515 func (m *LinuxResources) GetPercentTicks() float64 { 2516 if m != nil { 2517 return m.PercentTicks 2518 } 2519 return 0 2520 } 2521 2522 type Mount struct { 2523 // TaskPath is the file path within the task directory to mount to 2524 TaskPath string `protobuf:"bytes,1,opt,name=task_path,json=taskPath,proto3" json:"task_path,omitempty"` 2525 // HostPath is the file path on the host to mount from 2526 HostPath string `protobuf:"bytes,2,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` 2527 // Readonly if set true, mounts the path in readonly mode 2528 Readonly bool `protobuf:"varint,3,opt,name=readonly,proto3" json:"readonly,omitempty"` 2529 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2530 XXX_unrecognized []byte `json:"-"` 2531 XXX_sizecache int32 `json:"-"` 2532 } 2533 2534 func (m *Mount) Reset() { *m = Mount{} } 2535 func (m *Mount) String() string { return proto.CompactTextString(m) } 2536 func (*Mount) ProtoMessage() {} 2537 func (*Mount) Descriptor() ([]byte, []int) { 2538 return fileDescriptor_4a8f45747846a74d, []int{42} 2539 } 2540 2541 func (m *Mount) XXX_Unmarshal(b []byte) error { 2542 return xxx_messageInfo_Mount.Unmarshal(m, b) 2543 } 2544 func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2545 return xxx_messageInfo_Mount.Marshal(b, m, deterministic) 2546 } 2547 func (m *Mount) XXX_Merge(src proto.Message) { 2548 xxx_messageInfo_Mount.Merge(m, src) 2549 } 2550 func (m *Mount) XXX_Size() int { 2551 return xxx_messageInfo_Mount.Size(m) 2552 } 2553 func (m *Mount) XXX_DiscardUnknown() { 2554 xxx_messageInfo_Mount.DiscardUnknown(m) 2555 } 2556 2557 var xxx_messageInfo_Mount proto.InternalMessageInfo 2558 2559 func (m *Mount) GetTaskPath() string { 2560 if m != nil { 2561 return m.TaskPath 2562 } 2563 return "" 2564 } 2565 2566 func (m *Mount) GetHostPath() string { 2567 if m != nil { 2568 return m.HostPath 2569 } 2570 return "" 2571 } 2572 2573 func (m *Mount) GetReadonly() bool { 2574 if m != nil { 2575 return m.Readonly 2576 } 2577 return false 2578 } 2579 2580 type Device struct { 2581 // TaskPath is the file path within the task to mount the device to 2582 TaskPath string `protobuf:"bytes,1,opt,name=task_path,json=taskPath,proto3" json:"task_path,omitempty"` 2583 // HostPath is the path on the host to the source device 2584 HostPath string `protobuf:"bytes,2,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` 2585 // CgroupPermissions defines the Cgroup permissions of the device. 2586 // One or more of the following options can be set: 2587 // * r - allows the task to read from the specified device. 2588 // * w - allows the task to write to the specified device. 2589 // * m - allows the task to create device files that do not yet exist. 2590 // 2591 // Example: "rw" 2592 CgroupPermissions string `protobuf:"bytes,3,opt,name=cgroup_permissions,json=cgroupPermissions,proto3" json:"cgroup_permissions,omitempty"` 2593 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2594 XXX_unrecognized []byte `json:"-"` 2595 XXX_sizecache int32 `json:"-"` 2596 } 2597 2598 func (m *Device) Reset() { *m = Device{} } 2599 func (m *Device) String() string { return proto.CompactTextString(m) } 2600 func (*Device) ProtoMessage() {} 2601 func (*Device) Descriptor() ([]byte, []int) { 2602 return fileDescriptor_4a8f45747846a74d, []int{43} 2603 } 2604 2605 func (m *Device) XXX_Unmarshal(b []byte) error { 2606 return xxx_messageInfo_Device.Unmarshal(m, b) 2607 } 2608 func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2609 return xxx_messageInfo_Device.Marshal(b, m, deterministic) 2610 } 2611 func (m *Device) XXX_Merge(src proto.Message) { 2612 xxx_messageInfo_Device.Merge(m, src) 2613 } 2614 func (m *Device) XXX_Size() int { 2615 return xxx_messageInfo_Device.Size(m) 2616 } 2617 func (m *Device) XXX_DiscardUnknown() { 2618 xxx_messageInfo_Device.DiscardUnknown(m) 2619 } 2620 2621 var xxx_messageInfo_Device proto.InternalMessageInfo 2622 2623 func (m *Device) GetTaskPath() string { 2624 if m != nil { 2625 return m.TaskPath 2626 } 2627 return "" 2628 } 2629 2630 func (m *Device) GetHostPath() string { 2631 if m != nil { 2632 return m.HostPath 2633 } 2634 return "" 2635 } 2636 2637 func (m *Device) GetCgroupPermissions() string { 2638 if m != nil { 2639 return m.CgroupPermissions 2640 } 2641 return "" 2642 } 2643 2644 // TaskHandle is created when starting a task and is used to recover task 2645 type TaskHandle struct { 2646 // Version is used by the driver to version the DriverState schema. 2647 // Version 0 is reserved by Nomad and should not be used. 2648 Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 2649 // Config is the TaskConfig for the task 2650 Config *TaskConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` 2651 // State is the state of the task's execution 2652 State TaskState `protobuf:"varint,3,opt,name=state,proto3,enum=hashicorp.nomad.plugins.drivers.proto.TaskState" json:"state,omitempty"` 2653 // DriverState is the encoded state for the specific driver 2654 DriverState []byte `protobuf:"bytes,4,opt,name=driver_state,json=driverState,proto3" json:"driver_state,omitempty"` 2655 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2656 XXX_unrecognized []byte `json:"-"` 2657 XXX_sizecache int32 `json:"-"` 2658 } 2659 2660 func (m *TaskHandle) Reset() { *m = TaskHandle{} } 2661 func (m *TaskHandle) String() string { return proto.CompactTextString(m) } 2662 func (*TaskHandle) ProtoMessage() {} 2663 func (*TaskHandle) Descriptor() ([]byte, []int) { 2664 return fileDescriptor_4a8f45747846a74d, []int{44} 2665 } 2666 2667 func (m *TaskHandle) XXX_Unmarshal(b []byte) error { 2668 return xxx_messageInfo_TaskHandle.Unmarshal(m, b) 2669 } 2670 func (m *TaskHandle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2671 return xxx_messageInfo_TaskHandle.Marshal(b, m, deterministic) 2672 } 2673 func (m *TaskHandle) XXX_Merge(src proto.Message) { 2674 xxx_messageInfo_TaskHandle.Merge(m, src) 2675 } 2676 func (m *TaskHandle) XXX_Size() int { 2677 return xxx_messageInfo_TaskHandle.Size(m) 2678 } 2679 func (m *TaskHandle) XXX_DiscardUnknown() { 2680 xxx_messageInfo_TaskHandle.DiscardUnknown(m) 2681 } 2682 2683 var xxx_messageInfo_TaskHandle proto.InternalMessageInfo 2684 2685 func (m *TaskHandle) GetVersion() int32 { 2686 if m != nil { 2687 return m.Version 2688 } 2689 return 0 2690 } 2691 2692 func (m *TaskHandle) GetConfig() *TaskConfig { 2693 if m != nil { 2694 return m.Config 2695 } 2696 return nil 2697 } 2698 2699 func (m *TaskHandle) GetState() TaskState { 2700 if m != nil { 2701 return m.State 2702 } 2703 return TaskState_UNKNOWN 2704 } 2705 2706 func (m *TaskHandle) GetDriverState() []byte { 2707 if m != nil { 2708 return m.DriverState 2709 } 2710 return nil 2711 } 2712 2713 // NetworkOverride contains network settings which the driver may override 2714 // for the task, such as when the driver is setting up the task's network. 2715 type NetworkOverride struct { 2716 // PortMap can be set to replace ports with driver-specific mappings 2717 PortMap map[string]int32 `protobuf:"bytes,1,rep,name=port_map,json=portMap,proto3" json:"port_map,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"` 2718 // Addr is the IP address for the task created by the driver 2719 Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` 2720 // AutoAdvertise indicates whether the driver thinks services that choose 2721 // to auto_advertise_addresses should use this IP instead of the host's. 2722 AutoAdvertise bool `protobuf:"varint,3,opt,name=auto_advertise,json=autoAdvertise,proto3" json:"auto_advertise,omitempty"` 2723 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2724 XXX_unrecognized []byte `json:"-"` 2725 XXX_sizecache int32 `json:"-"` 2726 } 2727 2728 func (m *NetworkOverride) Reset() { *m = NetworkOverride{} } 2729 func (m *NetworkOverride) String() string { return proto.CompactTextString(m) } 2730 func (*NetworkOverride) ProtoMessage() {} 2731 func (*NetworkOverride) Descriptor() ([]byte, []int) { 2732 return fileDescriptor_4a8f45747846a74d, []int{45} 2733 } 2734 2735 func (m *NetworkOverride) XXX_Unmarshal(b []byte) error { 2736 return xxx_messageInfo_NetworkOverride.Unmarshal(m, b) 2737 } 2738 func (m *NetworkOverride) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2739 return xxx_messageInfo_NetworkOverride.Marshal(b, m, deterministic) 2740 } 2741 func (m *NetworkOverride) XXX_Merge(src proto.Message) { 2742 xxx_messageInfo_NetworkOverride.Merge(m, src) 2743 } 2744 func (m *NetworkOverride) XXX_Size() int { 2745 return xxx_messageInfo_NetworkOverride.Size(m) 2746 } 2747 func (m *NetworkOverride) XXX_DiscardUnknown() { 2748 xxx_messageInfo_NetworkOverride.DiscardUnknown(m) 2749 } 2750 2751 var xxx_messageInfo_NetworkOverride proto.InternalMessageInfo 2752 2753 func (m *NetworkOverride) GetPortMap() map[string]int32 { 2754 if m != nil { 2755 return m.PortMap 2756 } 2757 return nil 2758 } 2759 2760 func (m *NetworkOverride) GetAddr() string { 2761 if m != nil { 2762 return m.Addr 2763 } 2764 return "" 2765 } 2766 2767 func (m *NetworkOverride) GetAutoAdvertise() bool { 2768 if m != nil { 2769 return m.AutoAdvertise 2770 } 2771 return false 2772 } 2773 2774 // ExitResult contains information about the exit status of a task 2775 type ExitResult struct { 2776 // ExitCode returned from the task on exit 2777 ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` 2778 // Signal is set if a signal was sent to the task 2779 Signal int32 `protobuf:"varint,2,opt,name=signal,proto3" json:"signal,omitempty"` 2780 // OomKilled is true if the task exited as a result of the OOM Killer 2781 OomKilled bool `protobuf:"varint,3,opt,name=oom_killed,json=oomKilled,proto3" json:"oom_killed,omitempty"` 2782 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2783 XXX_unrecognized []byte `json:"-"` 2784 XXX_sizecache int32 `json:"-"` 2785 } 2786 2787 func (m *ExitResult) Reset() { *m = ExitResult{} } 2788 func (m *ExitResult) String() string { return proto.CompactTextString(m) } 2789 func (*ExitResult) ProtoMessage() {} 2790 func (*ExitResult) Descriptor() ([]byte, []int) { 2791 return fileDescriptor_4a8f45747846a74d, []int{46} 2792 } 2793 2794 func (m *ExitResult) XXX_Unmarshal(b []byte) error { 2795 return xxx_messageInfo_ExitResult.Unmarshal(m, b) 2796 } 2797 func (m *ExitResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2798 return xxx_messageInfo_ExitResult.Marshal(b, m, deterministic) 2799 } 2800 func (m *ExitResult) XXX_Merge(src proto.Message) { 2801 xxx_messageInfo_ExitResult.Merge(m, src) 2802 } 2803 func (m *ExitResult) XXX_Size() int { 2804 return xxx_messageInfo_ExitResult.Size(m) 2805 } 2806 func (m *ExitResult) XXX_DiscardUnknown() { 2807 xxx_messageInfo_ExitResult.DiscardUnknown(m) 2808 } 2809 2810 var xxx_messageInfo_ExitResult proto.InternalMessageInfo 2811 2812 func (m *ExitResult) GetExitCode() int32 { 2813 if m != nil { 2814 return m.ExitCode 2815 } 2816 return 0 2817 } 2818 2819 func (m *ExitResult) GetSignal() int32 { 2820 if m != nil { 2821 return m.Signal 2822 } 2823 return 0 2824 } 2825 2826 func (m *ExitResult) GetOomKilled() bool { 2827 if m != nil { 2828 return m.OomKilled 2829 } 2830 return false 2831 } 2832 2833 // TaskStatus includes information of a specific task 2834 type TaskStatus struct { 2835 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 2836 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 2837 // State is the state of the task's execution 2838 State TaskState `protobuf:"varint,3,opt,name=state,proto3,enum=hashicorp.nomad.plugins.drivers.proto.TaskState" json:"state,omitempty"` 2839 // StartedAt is the timestamp when the task was started 2840 StartedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` 2841 // CompletedAt is the timestamp when the task exited. 2842 // If the task is still running, CompletedAt will not be set 2843 CompletedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"` 2844 // Result is set when CompletedAt is set. 2845 Result *ExitResult `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` 2846 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2847 XXX_unrecognized []byte `json:"-"` 2848 XXX_sizecache int32 `json:"-"` 2849 } 2850 2851 func (m *TaskStatus) Reset() { *m = TaskStatus{} } 2852 func (m *TaskStatus) String() string { return proto.CompactTextString(m) } 2853 func (*TaskStatus) ProtoMessage() {} 2854 func (*TaskStatus) Descriptor() ([]byte, []int) { 2855 return fileDescriptor_4a8f45747846a74d, []int{47} 2856 } 2857 2858 func (m *TaskStatus) XXX_Unmarshal(b []byte) error { 2859 return xxx_messageInfo_TaskStatus.Unmarshal(m, b) 2860 } 2861 func (m *TaskStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2862 return xxx_messageInfo_TaskStatus.Marshal(b, m, deterministic) 2863 } 2864 func (m *TaskStatus) XXX_Merge(src proto.Message) { 2865 xxx_messageInfo_TaskStatus.Merge(m, src) 2866 } 2867 func (m *TaskStatus) XXX_Size() int { 2868 return xxx_messageInfo_TaskStatus.Size(m) 2869 } 2870 func (m *TaskStatus) XXX_DiscardUnknown() { 2871 xxx_messageInfo_TaskStatus.DiscardUnknown(m) 2872 } 2873 2874 var xxx_messageInfo_TaskStatus proto.InternalMessageInfo 2875 2876 func (m *TaskStatus) GetId() string { 2877 if m != nil { 2878 return m.Id 2879 } 2880 return "" 2881 } 2882 2883 func (m *TaskStatus) GetName() string { 2884 if m != nil { 2885 return m.Name 2886 } 2887 return "" 2888 } 2889 2890 func (m *TaskStatus) GetState() TaskState { 2891 if m != nil { 2892 return m.State 2893 } 2894 return TaskState_UNKNOWN 2895 } 2896 2897 func (m *TaskStatus) GetStartedAt() *timestamp.Timestamp { 2898 if m != nil { 2899 return m.StartedAt 2900 } 2901 return nil 2902 } 2903 2904 func (m *TaskStatus) GetCompletedAt() *timestamp.Timestamp { 2905 if m != nil { 2906 return m.CompletedAt 2907 } 2908 return nil 2909 } 2910 2911 func (m *TaskStatus) GetResult() *ExitResult { 2912 if m != nil { 2913 return m.Result 2914 } 2915 return nil 2916 } 2917 2918 type TaskDriverStatus struct { 2919 // Attributes is a set of string/string key value pairs specific to the 2920 // implementing driver 2921 Attributes map[string]string `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"` 2922 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2923 XXX_unrecognized []byte `json:"-"` 2924 XXX_sizecache int32 `json:"-"` 2925 } 2926 2927 func (m *TaskDriverStatus) Reset() { *m = TaskDriverStatus{} } 2928 func (m *TaskDriverStatus) String() string { return proto.CompactTextString(m) } 2929 func (*TaskDriverStatus) ProtoMessage() {} 2930 func (*TaskDriverStatus) Descriptor() ([]byte, []int) { 2931 return fileDescriptor_4a8f45747846a74d, []int{48} 2932 } 2933 2934 func (m *TaskDriverStatus) XXX_Unmarshal(b []byte) error { 2935 return xxx_messageInfo_TaskDriverStatus.Unmarshal(m, b) 2936 } 2937 func (m *TaskDriverStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2938 return xxx_messageInfo_TaskDriverStatus.Marshal(b, m, deterministic) 2939 } 2940 func (m *TaskDriverStatus) XXX_Merge(src proto.Message) { 2941 xxx_messageInfo_TaskDriverStatus.Merge(m, src) 2942 } 2943 func (m *TaskDriverStatus) XXX_Size() int { 2944 return xxx_messageInfo_TaskDriverStatus.Size(m) 2945 } 2946 func (m *TaskDriverStatus) XXX_DiscardUnknown() { 2947 xxx_messageInfo_TaskDriverStatus.DiscardUnknown(m) 2948 } 2949 2950 var xxx_messageInfo_TaskDriverStatus proto.InternalMessageInfo 2951 2952 func (m *TaskDriverStatus) GetAttributes() map[string]string { 2953 if m != nil { 2954 return m.Attributes 2955 } 2956 return nil 2957 } 2958 2959 type TaskStats struct { 2960 // Id of the task 2961 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 2962 // Timestamp for which the stats were collected 2963 Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 2964 // AggResourceUsage is the aggreate usage of all processes 2965 AggResourceUsage *TaskResourceUsage `protobuf:"bytes,3,opt,name=agg_resource_usage,json=aggResourceUsage,proto3" json:"agg_resource_usage,omitempty"` 2966 // ResourceUsageByPid breaks the usage stats by process 2967 ResourceUsageByPid map[string]*TaskResourceUsage `protobuf:"bytes,4,rep,name=resource_usage_by_pid,json=resourceUsageByPid,proto3" json:"resource_usage_by_pid,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 2968 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2969 XXX_unrecognized []byte `json:"-"` 2970 XXX_sizecache int32 `json:"-"` 2971 } 2972 2973 func (m *TaskStats) Reset() { *m = TaskStats{} } 2974 func (m *TaskStats) String() string { return proto.CompactTextString(m) } 2975 func (*TaskStats) ProtoMessage() {} 2976 func (*TaskStats) Descriptor() ([]byte, []int) { 2977 return fileDescriptor_4a8f45747846a74d, []int{49} 2978 } 2979 2980 func (m *TaskStats) XXX_Unmarshal(b []byte) error { 2981 return xxx_messageInfo_TaskStats.Unmarshal(m, b) 2982 } 2983 func (m *TaskStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2984 return xxx_messageInfo_TaskStats.Marshal(b, m, deterministic) 2985 } 2986 func (m *TaskStats) XXX_Merge(src proto.Message) { 2987 xxx_messageInfo_TaskStats.Merge(m, src) 2988 } 2989 func (m *TaskStats) XXX_Size() int { 2990 return xxx_messageInfo_TaskStats.Size(m) 2991 } 2992 func (m *TaskStats) XXX_DiscardUnknown() { 2993 xxx_messageInfo_TaskStats.DiscardUnknown(m) 2994 } 2995 2996 var xxx_messageInfo_TaskStats proto.InternalMessageInfo 2997 2998 func (m *TaskStats) GetId() string { 2999 if m != nil { 3000 return m.Id 3001 } 3002 return "" 3003 } 3004 3005 func (m *TaskStats) GetTimestamp() *timestamp.Timestamp { 3006 if m != nil { 3007 return m.Timestamp 3008 } 3009 return nil 3010 } 3011 3012 func (m *TaskStats) GetAggResourceUsage() *TaskResourceUsage { 3013 if m != nil { 3014 return m.AggResourceUsage 3015 } 3016 return nil 3017 } 3018 3019 func (m *TaskStats) GetResourceUsageByPid() map[string]*TaskResourceUsage { 3020 if m != nil { 3021 return m.ResourceUsageByPid 3022 } 3023 return nil 3024 } 3025 3026 type TaskResourceUsage struct { 3027 // CPU usage stats 3028 Cpu *CPUUsage `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` 3029 // Memory usage stats 3030 Memory *MemoryUsage `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"` 3031 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3032 XXX_unrecognized []byte `json:"-"` 3033 XXX_sizecache int32 `json:"-"` 3034 } 3035 3036 func (m *TaskResourceUsage) Reset() { *m = TaskResourceUsage{} } 3037 func (m *TaskResourceUsage) String() string { return proto.CompactTextString(m) } 3038 func (*TaskResourceUsage) ProtoMessage() {} 3039 func (*TaskResourceUsage) Descriptor() ([]byte, []int) { 3040 return fileDescriptor_4a8f45747846a74d, []int{50} 3041 } 3042 3043 func (m *TaskResourceUsage) XXX_Unmarshal(b []byte) error { 3044 return xxx_messageInfo_TaskResourceUsage.Unmarshal(m, b) 3045 } 3046 func (m *TaskResourceUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3047 return xxx_messageInfo_TaskResourceUsage.Marshal(b, m, deterministic) 3048 } 3049 func (m *TaskResourceUsage) XXX_Merge(src proto.Message) { 3050 xxx_messageInfo_TaskResourceUsage.Merge(m, src) 3051 } 3052 func (m *TaskResourceUsage) XXX_Size() int { 3053 return xxx_messageInfo_TaskResourceUsage.Size(m) 3054 } 3055 func (m *TaskResourceUsage) XXX_DiscardUnknown() { 3056 xxx_messageInfo_TaskResourceUsage.DiscardUnknown(m) 3057 } 3058 3059 var xxx_messageInfo_TaskResourceUsage proto.InternalMessageInfo 3060 3061 func (m *TaskResourceUsage) GetCpu() *CPUUsage { 3062 if m != nil { 3063 return m.Cpu 3064 } 3065 return nil 3066 } 3067 3068 func (m *TaskResourceUsage) GetMemory() *MemoryUsage { 3069 if m != nil { 3070 return m.Memory 3071 } 3072 return nil 3073 } 3074 3075 type CPUUsage struct { 3076 SystemMode float64 `protobuf:"fixed64,1,opt,name=system_mode,json=systemMode,proto3" json:"system_mode,omitempty"` 3077 UserMode float64 `protobuf:"fixed64,2,opt,name=user_mode,json=userMode,proto3" json:"user_mode,omitempty"` 3078 TotalTicks float64 `protobuf:"fixed64,3,opt,name=total_ticks,json=totalTicks,proto3" json:"total_ticks,omitempty"` 3079 ThrottledPeriods uint64 `protobuf:"varint,4,opt,name=throttled_periods,json=throttledPeriods,proto3" json:"throttled_periods,omitempty"` 3080 ThrottledTime uint64 `protobuf:"varint,5,opt,name=throttled_time,json=throttledTime,proto3" json:"throttled_time,omitempty"` 3081 Percent float64 `protobuf:"fixed64,6,opt,name=percent,proto3" json:"percent,omitempty"` 3082 // MeasuredFields indicates which fields were actually sampled 3083 MeasuredFields []CPUUsage_Fields `protobuf:"varint,7,rep,packed,name=measured_fields,json=measuredFields,proto3,enum=hashicorp.nomad.plugins.drivers.proto.CPUUsage_Fields" json:"measured_fields,omitempty"` 3084 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3085 XXX_unrecognized []byte `json:"-"` 3086 XXX_sizecache int32 `json:"-"` 3087 } 3088 3089 func (m *CPUUsage) Reset() { *m = CPUUsage{} } 3090 func (m *CPUUsage) String() string { return proto.CompactTextString(m) } 3091 func (*CPUUsage) ProtoMessage() {} 3092 func (*CPUUsage) Descriptor() ([]byte, []int) { 3093 return fileDescriptor_4a8f45747846a74d, []int{51} 3094 } 3095 3096 func (m *CPUUsage) XXX_Unmarshal(b []byte) error { 3097 return xxx_messageInfo_CPUUsage.Unmarshal(m, b) 3098 } 3099 func (m *CPUUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3100 return xxx_messageInfo_CPUUsage.Marshal(b, m, deterministic) 3101 } 3102 func (m *CPUUsage) XXX_Merge(src proto.Message) { 3103 xxx_messageInfo_CPUUsage.Merge(m, src) 3104 } 3105 func (m *CPUUsage) XXX_Size() int { 3106 return xxx_messageInfo_CPUUsage.Size(m) 3107 } 3108 func (m *CPUUsage) XXX_DiscardUnknown() { 3109 xxx_messageInfo_CPUUsage.DiscardUnknown(m) 3110 } 3111 3112 var xxx_messageInfo_CPUUsage proto.InternalMessageInfo 3113 3114 func (m *CPUUsage) GetSystemMode() float64 { 3115 if m != nil { 3116 return m.SystemMode 3117 } 3118 return 0 3119 } 3120 3121 func (m *CPUUsage) GetUserMode() float64 { 3122 if m != nil { 3123 return m.UserMode 3124 } 3125 return 0 3126 } 3127 3128 func (m *CPUUsage) GetTotalTicks() float64 { 3129 if m != nil { 3130 return m.TotalTicks 3131 } 3132 return 0 3133 } 3134 3135 func (m *CPUUsage) GetThrottledPeriods() uint64 { 3136 if m != nil { 3137 return m.ThrottledPeriods 3138 } 3139 return 0 3140 } 3141 3142 func (m *CPUUsage) GetThrottledTime() uint64 { 3143 if m != nil { 3144 return m.ThrottledTime 3145 } 3146 return 0 3147 } 3148 3149 func (m *CPUUsage) GetPercent() float64 { 3150 if m != nil { 3151 return m.Percent 3152 } 3153 return 0 3154 } 3155 3156 func (m *CPUUsage) GetMeasuredFields() []CPUUsage_Fields { 3157 if m != nil { 3158 return m.MeasuredFields 3159 } 3160 return nil 3161 } 3162 3163 type MemoryUsage struct { 3164 Rss uint64 `protobuf:"varint,1,opt,name=rss,proto3" json:"rss,omitempty"` 3165 Cache uint64 `protobuf:"varint,2,opt,name=cache,proto3" json:"cache,omitempty"` 3166 MaxUsage uint64 `protobuf:"varint,3,opt,name=max_usage,json=maxUsage,proto3" json:"max_usage,omitempty"` 3167 KernelUsage uint64 `protobuf:"varint,4,opt,name=kernel_usage,json=kernelUsage,proto3" json:"kernel_usage,omitempty"` 3168 KernelMaxUsage uint64 `protobuf:"varint,5,opt,name=kernel_max_usage,json=kernelMaxUsage,proto3" json:"kernel_max_usage,omitempty"` 3169 Usage uint64 `protobuf:"varint,7,opt,name=usage,proto3" json:"usage,omitempty"` 3170 Swap uint64 `protobuf:"varint,8,opt,name=swap,proto3" json:"swap,omitempty"` 3171 // MeasuredFields indicates which fields were actually sampled 3172 MeasuredFields []MemoryUsage_Fields `protobuf:"varint,6,rep,packed,name=measured_fields,json=measuredFields,proto3,enum=hashicorp.nomad.plugins.drivers.proto.MemoryUsage_Fields" json:"measured_fields,omitempty"` 3173 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3174 XXX_unrecognized []byte `json:"-"` 3175 XXX_sizecache int32 `json:"-"` 3176 } 3177 3178 func (m *MemoryUsage) Reset() { *m = MemoryUsage{} } 3179 func (m *MemoryUsage) String() string { return proto.CompactTextString(m) } 3180 func (*MemoryUsage) ProtoMessage() {} 3181 func (*MemoryUsage) Descriptor() ([]byte, []int) { 3182 return fileDescriptor_4a8f45747846a74d, []int{52} 3183 } 3184 3185 func (m *MemoryUsage) XXX_Unmarshal(b []byte) error { 3186 return xxx_messageInfo_MemoryUsage.Unmarshal(m, b) 3187 } 3188 func (m *MemoryUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3189 return xxx_messageInfo_MemoryUsage.Marshal(b, m, deterministic) 3190 } 3191 func (m *MemoryUsage) XXX_Merge(src proto.Message) { 3192 xxx_messageInfo_MemoryUsage.Merge(m, src) 3193 } 3194 func (m *MemoryUsage) XXX_Size() int { 3195 return xxx_messageInfo_MemoryUsage.Size(m) 3196 } 3197 func (m *MemoryUsage) XXX_DiscardUnknown() { 3198 xxx_messageInfo_MemoryUsage.DiscardUnknown(m) 3199 } 3200 3201 var xxx_messageInfo_MemoryUsage proto.InternalMessageInfo 3202 3203 func (m *MemoryUsage) GetRss() uint64 { 3204 if m != nil { 3205 return m.Rss 3206 } 3207 return 0 3208 } 3209 3210 func (m *MemoryUsage) GetCache() uint64 { 3211 if m != nil { 3212 return m.Cache 3213 } 3214 return 0 3215 } 3216 3217 func (m *MemoryUsage) GetMaxUsage() uint64 { 3218 if m != nil { 3219 return m.MaxUsage 3220 } 3221 return 0 3222 } 3223 3224 func (m *MemoryUsage) GetKernelUsage() uint64 { 3225 if m != nil { 3226 return m.KernelUsage 3227 } 3228 return 0 3229 } 3230 3231 func (m *MemoryUsage) GetKernelMaxUsage() uint64 { 3232 if m != nil { 3233 return m.KernelMaxUsage 3234 } 3235 return 0 3236 } 3237 3238 func (m *MemoryUsage) GetUsage() uint64 { 3239 if m != nil { 3240 return m.Usage 3241 } 3242 return 0 3243 } 3244 3245 func (m *MemoryUsage) GetSwap() uint64 { 3246 if m != nil { 3247 return m.Swap 3248 } 3249 return 0 3250 } 3251 3252 func (m *MemoryUsage) GetMeasuredFields() []MemoryUsage_Fields { 3253 if m != nil { 3254 return m.MeasuredFields 3255 } 3256 return nil 3257 } 3258 3259 type DriverTaskEvent struct { 3260 // TaskId is the id of the task for the event 3261 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 3262 // AllocId of the task for the event 3263 AllocId string `protobuf:"bytes,2,opt,name=alloc_id,json=allocId,proto3" json:"alloc_id,omitempty"` 3264 // TaskName is the name of the task for the event 3265 TaskName string `protobuf:"bytes,3,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` 3266 // Timestamp when the event occurred 3267 Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 3268 // Message is the body of the event 3269 Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` 3270 // Annotations allows for additional key/value data to be sent along with the event 3271 Annotations map[string]string `protobuf:"bytes,6,rep,name=annotations,proto3" json:"annotations,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 3272 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3273 XXX_unrecognized []byte `json:"-"` 3274 XXX_sizecache int32 `json:"-"` 3275 } 3276 3277 func (m *DriverTaskEvent) Reset() { *m = DriverTaskEvent{} } 3278 func (m *DriverTaskEvent) String() string { return proto.CompactTextString(m) } 3279 func (*DriverTaskEvent) ProtoMessage() {} 3280 func (*DriverTaskEvent) Descriptor() ([]byte, []int) { 3281 return fileDescriptor_4a8f45747846a74d, []int{53} 3282 } 3283 3284 func (m *DriverTaskEvent) XXX_Unmarshal(b []byte) error { 3285 return xxx_messageInfo_DriverTaskEvent.Unmarshal(m, b) 3286 } 3287 func (m *DriverTaskEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3288 return xxx_messageInfo_DriverTaskEvent.Marshal(b, m, deterministic) 3289 } 3290 func (m *DriverTaskEvent) XXX_Merge(src proto.Message) { 3291 xxx_messageInfo_DriverTaskEvent.Merge(m, src) 3292 } 3293 func (m *DriverTaskEvent) XXX_Size() int { 3294 return xxx_messageInfo_DriverTaskEvent.Size(m) 3295 } 3296 func (m *DriverTaskEvent) XXX_DiscardUnknown() { 3297 xxx_messageInfo_DriverTaskEvent.DiscardUnknown(m) 3298 } 3299 3300 var xxx_messageInfo_DriverTaskEvent proto.InternalMessageInfo 3301 3302 func (m *DriverTaskEvent) GetTaskId() string { 3303 if m != nil { 3304 return m.TaskId 3305 } 3306 return "" 3307 } 3308 3309 func (m *DriverTaskEvent) GetAllocId() string { 3310 if m != nil { 3311 return m.AllocId 3312 } 3313 return "" 3314 } 3315 3316 func (m *DriverTaskEvent) GetTaskName() string { 3317 if m != nil { 3318 return m.TaskName 3319 } 3320 return "" 3321 } 3322 3323 func (m *DriverTaskEvent) GetTimestamp() *timestamp.Timestamp { 3324 if m != nil { 3325 return m.Timestamp 3326 } 3327 return nil 3328 } 3329 3330 func (m *DriverTaskEvent) GetMessage() string { 3331 if m != nil { 3332 return m.Message 3333 } 3334 return "" 3335 } 3336 3337 func (m *DriverTaskEvent) GetAnnotations() map[string]string { 3338 if m != nil { 3339 return m.Annotations 3340 } 3341 return nil 3342 } 3343 3344 func init() { 3345 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.TaskState", TaskState_name, TaskState_value) 3346 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.FingerprintResponse_HealthState", FingerprintResponse_HealthState_name, FingerprintResponse_HealthState_value) 3347 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.StartTaskResponse_Result", StartTaskResponse_Result_name, StartTaskResponse_Result_value) 3348 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.DriverCapabilities_FSIsolation", DriverCapabilities_FSIsolation_name, DriverCapabilities_FSIsolation_value) 3349 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.NetworkIsolationSpec_NetworkIsolationMode", NetworkIsolationSpec_NetworkIsolationMode_name, NetworkIsolationSpec_NetworkIsolationMode_value) 3350 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.CPUUsage_Fields", CPUUsage_Fields_name, CPUUsage_Fields_value) 3351 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.MemoryUsage_Fields", MemoryUsage_Fields_name, MemoryUsage_Fields_value) 3352 proto.RegisterType((*TaskConfigSchemaRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfigSchemaRequest") 3353 proto.RegisterType((*TaskConfigSchemaResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfigSchemaResponse") 3354 proto.RegisterType((*CapabilitiesRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.CapabilitiesRequest") 3355 proto.RegisterType((*CapabilitiesResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.CapabilitiesResponse") 3356 proto.RegisterType((*FingerprintRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.FingerprintRequest") 3357 proto.RegisterType((*FingerprintResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.FingerprintResponse") 3358 proto.RegisterMapType((map[string]*proto1.Attribute)(nil), "hashicorp.nomad.plugins.drivers.proto.FingerprintResponse.AttributesEntry") 3359 proto.RegisterType((*RecoverTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.RecoverTaskRequest") 3360 proto.RegisterType((*RecoverTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.RecoverTaskResponse") 3361 proto.RegisterType((*StartTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.StartTaskRequest") 3362 proto.RegisterType((*StartTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.StartTaskResponse") 3363 proto.RegisterType((*WaitTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.WaitTaskRequest") 3364 proto.RegisterType((*WaitTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.WaitTaskResponse") 3365 proto.RegisterType((*StopTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.StopTaskRequest") 3366 proto.RegisterType((*StopTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.StopTaskResponse") 3367 proto.RegisterType((*DestroyTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.DestroyTaskRequest") 3368 proto.RegisterType((*DestroyTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.DestroyTaskResponse") 3369 proto.RegisterType((*InspectTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.InspectTaskRequest") 3370 proto.RegisterType((*InspectTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.InspectTaskResponse") 3371 proto.RegisterType((*TaskStatsRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStatsRequest") 3372 proto.RegisterType((*TaskStatsResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStatsResponse") 3373 proto.RegisterType((*TaskEventsRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskEventsRequest") 3374 proto.RegisterType((*SignalTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.SignalTaskRequest") 3375 proto.RegisterType((*SignalTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.SignalTaskResponse") 3376 proto.RegisterType((*ExecTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskRequest") 3377 proto.RegisterType((*ExecTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskResponse") 3378 proto.RegisterType((*ExecTaskStreamingIOOperation)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingIOOperation") 3379 proto.RegisterType((*ExecTaskStreamingRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingRequest") 3380 proto.RegisterType((*ExecTaskStreamingRequest_Setup)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingRequest.Setup") 3381 proto.RegisterType((*ExecTaskStreamingRequest_TerminalSize)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingRequest.TerminalSize") 3382 proto.RegisterType((*ExecTaskStreamingResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingResponse") 3383 proto.RegisterType((*CreateNetworkRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.CreateNetworkRequest") 3384 proto.RegisterType((*CreateNetworkResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.CreateNetworkResponse") 3385 proto.RegisterType((*DestroyNetworkRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.DestroyNetworkRequest") 3386 proto.RegisterType((*DestroyNetworkResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.DestroyNetworkResponse") 3387 proto.RegisterType((*DriverCapabilities)(nil), "hashicorp.nomad.plugins.drivers.proto.DriverCapabilities") 3388 proto.RegisterType((*NetworkIsolationSpec)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkIsolationSpec") 3389 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkIsolationSpec.LabelsEntry") 3390 proto.RegisterType((*TaskConfig)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfig") 3391 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfig.DeviceEnvEntry") 3392 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfig.EnvEntry") 3393 proto.RegisterType((*Resources)(nil), "hashicorp.nomad.plugins.drivers.proto.Resources") 3394 proto.RegisterType((*AllocatedTaskResources)(nil), "hashicorp.nomad.plugins.drivers.proto.AllocatedTaskResources") 3395 proto.RegisterType((*AllocatedCpuResources)(nil), "hashicorp.nomad.plugins.drivers.proto.AllocatedCpuResources") 3396 proto.RegisterType((*AllocatedMemoryResources)(nil), "hashicorp.nomad.plugins.drivers.proto.AllocatedMemoryResources") 3397 proto.RegisterType((*NetworkResource)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkResource") 3398 proto.RegisterType((*NetworkPort)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkPort") 3399 proto.RegisterType((*LinuxResources)(nil), "hashicorp.nomad.plugins.drivers.proto.LinuxResources") 3400 proto.RegisterType((*Mount)(nil), "hashicorp.nomad.plugins.drivers.proto.Mount") 3401 proto.RegisterType((*Device)(nil), "hashicorp.nomad.plugins.drivers.proto.Device") 3402 proto.RegisterType((*TaskHandle)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskHandle") 3403 proto.RegisterType((*NetworkOverride)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkOverride") 3404 proto.RegisterMapType((map[string]int32)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkOverride.PortMapEntry") 3405 proto.RegisterType((*ExitResult)(nil), "hashicorp.nomad.plugins.drivers.proto.ExitResult") 3406 proto.RegisterType((*TaskStatus)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStatus") 3407 proto.RegisterType((*TaskDriverStatus)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskDriverStatus") 3408 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskDriverStatus.AttributesEntry") 3409 proto.RegisterType((*TaskStats)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStats") 3410 proto.RegisterMapType((map[string]*TaskResourceUsage)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStats.ResourceUsageByPidEntry") 3411 proto.RegisterType((*TaskResourceUsage)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskResourceUsage") 3412 proto.RegisterType((*CPUUsage)(nil), "hashicorp.nomad.plugins.drivers.proto.CPUUsage") 3413 proto.RegisterType((*MemoryUsage)(nil), "hashicorp.nomad.plugins.drivers.proto.MemoryUsage") 3414 proto.RegisterType((*DriverTaskEvent)(nil), "hashicorp.nomad.plugins.drivers.proto.DriverTaskEvent") 3415 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.DriverTaskEvent.AnnotationsEntry") 3416 } 3417 3418 func init() { 3419 proto.RegisterFile("plugins/drivers/proto/driver.proto", fileDescriptor_4a8f45747846a74d) 3420 } 3421 3422 var fileDescriptor_4a8f45747846a74d = []byte{ 3423 // 3525 bytes of a gzipped FileDescriptorProto 3424 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x5a, 0x4f, 0x6f, 0x23, 0x47, 3425 0x76, 0x57, 0xf3, 0x9f, 0xc8, 0x47, 0x89, 0x6a, 0x95, 0xa4, 0x31, 0x87, 0x4e, 0xe2, 0xd9, 0x06, 3426 0x36, 0x10, 0x76, 0x6d, 0xca, 0xd6, 0x22, 0x1e, 0xcb, 0x3b, 0xde, 0x31, 0x4d, 0x71, 0x24, 0x79, 3427 0x24, 0x4a, 0x29, 0x52, 0x98, 0x9d, 0x38, 0xeb, 0x4e, 0xab, 0xbb, 0x86, 0xec, 0x11, 0xfb, 0x8f, 3428 0xbb, 0x8b, 0x1a, 0x69, 0x83, 0x20, 0xc1, 0x06, 0x08, 0x36, 0x40, 0x82, 0xe4, 0xe2, 0xec, 0x25, 3429 0x87, 0x60, 0x73, 0x4c, 0x3e, 0x40, 0x90, 0x60, 0xcf, 0xf9, 0x10, 0xc9, 0x25, 0xb7, 0x5c, 0x72, 3430 0xc8, 0x37, 0x58, 0xd4, 0x9f, 0x6e, 0x76, 0x8b, 0x1c, 0x4f, 0x93, 0x9a, 0x53, 0x77, 0xbd, 0xaa, 3431 0xfa, 0xd5, 0xab, 0xf7, 0x5e, 0xd5, 0x7b, 0x55, 0xf5, 0x40, 0xf3, 0x47, 0xe3, 0x81, 0xed, 0x86, 3432 0x3b, 0x56, 0x60, 0x5f, 0x91, 0x20, 0xdc, 0xf1, 0x03, 0x8f, 0x7a, 0xb2, 0xd4, 0xe4, 0x05, 0xf4, 3433 0xfd, 0xa1, 0x11, 0x0e, 0x6d, 0xd3, 0x0b, 0xfc, 0xa6, 0xeb, 0x39, 0x86, 0xd5, 0x94, 0x7d, 0x9a, 3434 0xb2, 0x8f, 0x68, 0xd6, 0xf8, 0xbd, 0x81, 0xe7, 0x0d, 0x46, 0x44, 0x20, 0x5c, 0x8c, 0x5f, 0xec, 3435 0x58, 0xe3, 0xc0, 0xa0, 0xb6, 0xe7, 0xca, 0xfa, 0xf7, 0x6e, 0xd7, 0x53, 0xdb, 0x21, 0x21, 0x35, 3436 0x1c, 0x5f, 0x36, 0xf8, 0x7c, 0x60, 0xd3, 0xe1, 0xf8, 0xa2, 0x69, 0x7a, 0xce, 0x4e, 0x3c, 0xe4, 3437 0x0e, 0x1f, 0x72, 0x27, 0x62, 0x33, 0x1c, 0x1a, 0x01, 0xb1, 0x76, 0x86, 0xe6, 0x28, 0xf4, 0x89, 3438 0xc9, 0xbe, 0x3a, 0xfb, 0x91, 0x08, 0x07, 0xd9, 0x11, 0x42, 0x1a, 0x8c, 0x4d, 0x1a, 0xcd, 0xd7, 3439 0xa0, 0x34, 0xb0, 0x2f, 0xc6, 0x94, 0x08, 0x20, 0xed, 0x3e, 0xbc, 0xd3, 0x37, 0xc2, 0xcb, 0xb6, 3440 0xe7, 0xbe, 0xb0, 0x07, 0x3d, 0x73, 0x48, 0x1c, 0x03, 0x93, 0x6f, 0xc6, 0x24, 0xa4, 0xda, 0x1f, 3441 0x43, 0x7d, 0xba, 0x2a, 0xf4, 0x3d, 0x37, 0x24, 0xe8, 0x73, 0x28, 0x30, 0x6e, 0xea, 0xca, 0x03, 3442 0x65, 0xbb, 0xba, 0xfb, 0x7e, 0xf3, 0x75, 0x82, 0x13, 0x3c, 0x34, 0xe5, 0x2c, 0x9a, 0x3d, 0x9f, 3443 0x98, 0x98, 0xf7, 0xd4, 0xb6, 0x60, 0xa3, 0x6d, 0xf8, 0xc6, 0x85, 0x3d, 0xb2, 0xa9, 0x4d, 0xc2, 3444 0x68, 0xd0, 0x31, 0x6c, 0xa6, 0xc9, 0x72, 0xc0, 0x9f, 0xc1, 0x8a, 0x99, 0xa0, 0xcb, 0x81, 0xf7, 3445 0x9a, 0x99, 0x34, 0xd6, 0xdc, 0xe7, 0xa5, 0x14, 0x70, 0x0a, 0x4e, 0xdb, 0x04, 0xf4, 0xc4, 0x76, 3446 0x07, 0x24, 0xf0, 0x03, 0xdb, 0xa5, 0x11, 0x33, 0xbf, 0xc9, 0xc3, 0x46, 0x8a, 0x2c, 0x99, 0x79, 3447 0x09, 0x10, 0xcb, 0x91, 0xb1, 0x92, 0xdf, 0xae, 0xee, 0x7e, 0x99, 0x91, 0x95, 0x19, 0x78, 0xcd, 3448 0x56, 0x0c, 0xd6, 0x71, 0x69, 0x70, 0x83, 0x13, 0xe8, 0xe8, 0x6b, 0x28, 0x0d, 0x89, 0x31, 0xa2, 3449 0xc3, 0x7a, 0xee, 0x81, 0xb2, 0x5d, 0xdb, 0x7d, 0x72, 0x87, 0x71, 0x0e, 0x39, 0x50, 0x8f, 0x1a, 3450 0x94, 0x60, 0x89, 0x8a, 0x3e, 0x00, 0x24, 0xfe, 0x74, 0x8b, 0x84, 0x66, 0x60, 0xfb, 0xcc, 0x90, 3451 0xeb, 0xf9, 0x07, 0xca, 0x76, 0x05, 0xaf, 0x8b, 0x9a, 0xfd, 0x49, 0x45, 0xc3, 0x87, 0xb5, 0x5b, 3452 0xdc, 0x22, 0x15, 0xf2, 0x97, 0xe4, 0x86, 0x6b, 0xa4, 0x82, 0xd9, 0x2f, 0x3a, 0x80, 0xe2, 0x95, 3453 0x31, 0x1a, 0x13, 0xce, 0x72, 0x75, 0xf7, 0xa3, 0x37, 0x99, 0x87, 0x34, 0xd1, 0x89, 0x1c, 0xb0, 3454 0xe8, 0xff, 0x69, 0xee, 0x13, 0x45, 0xdb, 0x83, 0x6a, 0x82, 0x6f, 0x54, 0x03, 0x38, 0xef, 0xee, 3455 0x77, 0xfa, 0x9d, 0x76, 0xbf, 0xb3, 0xaf, 0x2e, 0xa1, 0x55, 0xa8, 0x9c, 0x77, 0x0f, 0x3b, 0xad, 3456 0xe3, 0xfe, 0xe1, 0x73, 0x55, 0x41, 0x55, 0x58, 0x8e, 0x0a, 0x39, 0xed, 0x1a, 0x10, 0x26, 0xa6, 3457 0x77, 0x45, 0x02, 0x66, 0xc8, 0x52, 0xab, 0xe8, 0x1d, 0x58, 0xa6, 0x46, 0x78, 0xa9, 0xdb, 0x96, 3458 0xe4, 0xb9, 0xc4, 0x8a, 0x47, 0x16, 0x3a, 0x82, 0xd2, 0xd0, 0x70, 0xad, 0xd1, 0x9b, 0xf9, 0x4e, 3459 0x8b, 0x9a, 0x81, 0x1f, 0xf2, 0x8e, 0x58, 0x02, 0x30, 0xeb, 0x4e, 0x8d, 0x2c, 0x14, 0xa0, 0x3d, 3460 0x07, 0xb5, 0x47, 0x8d, 0x80, 0x26, 0xd9, 0xe9, 0x40, 0x81, 0x8d, 0x2f, 0x2d, 0x7a, 0x9e, 0x31, 3461 0xc5, 0xca, 0xc4, 0xbc, 0xbb, 0xf6, 0xff, 0x39, 0x58, 0x4f, 0x60, 0x4b, 0x4b, 0x7d, 0x06, 0xa5, 3462 0x80, 0x84, 0xe3, 0x11, 0xe5, 0xf0, 0xb5, 0xdd, 0xc7, 0x19, 0xe1, 0xa7, 0x90, 0x9a, 0x98, 0xc3, 3463 0x60, 0x09, 0x87, 0xb6, 0x41, 0x15, 0x3d, 0x74, 0x12, 0x04, 0x5e, 0xa0, 0x3b, 0xe1, 0x80, 0x4b, 3464 0xad, 0x82, 0x6b, 0x82, 0xde, 0x61, 0xe4, 0x93, 0x70, 0x90, 0x90, 0x6a, 0xfe, 0x8e, 0x52, 0x45, 3465 0x06, 0xa8, 0x2e, 0xa1, 0xaf, 0xbc, 0xe0, 0x52, 0x67, 0xa2, 0x0d, 0x6c, 0x8b, 0xd4, 0x0b, 0x1c, 3466 0xf4, 0xe3, 0x8c, 0xa0, 0x5d, 0xd1, 0xfd, 0x54, 0xf6, 0xc6, 0x6b, 0x6e, 0x9a, 0xa0, 0xfd, 0x10, 3467 0x4a, 0x62, 0xa6, 0xcc, 0x92, 0x7a, 0xe7, 0xed, 0x76, 0xa7, 0xd7, 0x53, 0x97, 0x50, 0x05, 0x8a, 3468 0xb8, 0xd3, 0xc7, 0xcc, 0xc2, 0x2a, 0x50, 0x7c, 0xd2, 0xea, 0xb7, 0x8e, 0xd5, 0x9c, 0xf6, 0x03, 3469 0x58, 0x7b, 0x66, 0xd8, 0x34, 0x8b, 0x71, 0x69, 0x1e, 0xa8, 0x93, 0xb6, 0x52, 0x3b, 0x47, 0x29, 3470 0xed, 0x64, 0x17, 0x4d, 0xe7, 0xda, 0xa6, 0xb7, 0xf4, 0xa1, 0x42, 0x9e, 0x04, 0x81, 0x54, 0x01, 3471 0xfb, 0xd5, 0x5e, 0xc1, 0x5a, 0x8f, 0x7a, 0x7e, 0x26, 0xcb, 0xff, 0x11, 0x2c, 0x33, 0x1f, 0xe5, 3472 0x8d, 0xa9, 0x34, 0xfd, 0xfb, 0x4d, 0xe1, 0xc3, 0x9a, 0x91, 0x0f, 0x6b, 0xee, 0x4b, 0x1f, 0x87, 3473 0xa3, 0x96, 0xe8, 0x1e, 0x94, 0x42, 0x7b, 0xe0, 0x1a, 0x23, 0xb9, 0x5b, 0xc8, 0x92, 0x86, 0x98, 3474 0x91, 0x47, 0x03, 0x4b, 0xc3, 0x6f, 0x03, 0xda, 0x27, 0x21, 0x0d, 0xbc, 0x9b, 0x4c, 0xfc, 0x6c, 3475 0x42, 0xf1, 0x85, 0x17, 0x98, 0x62, 0x21, 0x96, 0xb1, 0x28, 0xb0, 0x45, 0x95, 0x02, 0x91, 0xd8, 3476 0x1f, 0x00, 0x3a, 0x72, 0x99, 0x4f, 0xc9, 0xa6, 0x88, 0xbf, 0xcf, 0xc1, 0x46, 0xaa, 0xbd, 0x54, 3477 0xc6, 0xe2, 0xeb, 0x90, 0x6d, 0x4c, 0xe3, 0x50, 0xac, 0x43, 0x74, 0x0a, 0x25, 0xd1, 0x42, 0x4a, 3478 0xf2, 0xe1, 0x1c, 0x40, 0xc2, 0x4d, 0x49, 0x38, 0x09, 0x33, 0xd3, 0xe8, 0xf3, 0x6f, 0xd7, 0xe8, 3479 0x5f, 0x81, 0x1a, 0xcd, 0x23, 0x7c, 0xa3, 0x6e, 0xbe, 0x84, 0x0d, 0xd3, 0x1b, 0x8d, 0x88, 0xc9, 3480 0xac, 0x41, 0xb7, 0x5d, 0x4a, 0x82, 0x2b, 0x63, 0xf4, 0x66, 0xbb, 0x41, 0x93, 0x5e, 0x47, 0xb2, 3481 0x93, 0xf6, 0x15, 0xac, 0x27, 0x06, 0x96, 0x8a, 0x78, 0x02, 0xc5, 0x90, 0x11, 0xa4, 0x26, 0x3e, 3482 0x9c, 0x53, 0x13, 0x21, 0x16, 0xdd, 0xb5, 0x0d, 0x01, 0xde, 0xb9, 0x22, 0x6e, 0x3c, 0x2d, 0x6d, 3483 0x1f, 0xd6, 0x7b, 0xdc, 0x4c, 0x33, 0xd9, 0xe1, 0xc4, 0xc4, 0x73, 0x29, 0x13, 0xdf, 0x04, 0x94, 3484 0x44, 0x91, 0x86, 0x78, 0x03, 0x6b, 0x9d, 0x6b, 0x62, 0x66, 0x42, 0xae, 0xc3, 0xb2, 0xe9, 0x39, 3485 0x8e, 0xe1, 0x5a, 0xf5, 0xdc, 0x83, 0xfc, 0x76, 0x05, 0x47, 0xc5, 0xe4, 0x5a, 0xcc, 0x67, 0x5d, 3486 0x8b, 0xda, 0xdf, 0x2a, 0xa0, 0x4e, 0xc6, 0x96, 0x82, 0x64, 0xdc, 0x53, 0x8b, 0x01, 0xb1, 0xb1, 3487 0x57, 0xb0, 0x2c, 0x49, 0x7a, 0xb4, 0x5d, 0x08, 0x3a, 0x09, 0x82, 0xc4, 0x76, 0x94, 0xbf, 0xe3, 3488 0x76, 0xa4, 0x1d, 0xc2, 0xef, 0x44, 0xec, 0xf4, 0x68, 0x40, 0x0c, 0xc7, 0x76, 0x07, 0x47, 0xa7, 3489 0xa7, 0x3e, 0x11, 0x8c, 0x23, 0x04, 0x05, 0xcb, 0xa0, 0x86, 0x64, 0x8c, 0xff, 0xb3, 0x45, 0x6f, 3490 0x8e, 0xbc, 0x30, 0x5e, 0xf4, 0xbc, 0xa0, 0xfd, 0x67, 0x1e, 0xea, 0x53, 0x50, 0x91, 0x78, 0xbf, 3491 0x82, 0x62, 0x48, 0xe8, 0xd8, 0x97, 0xa6, 0xd2, 0xc9, 0xcc, 0xf0, 0x6c, 0xbc, 0x66, 0x8f, 0x81, 3492 0x61, 0x81, 0x89, 0x06, 0x50, 0xa6, 0xf4, 0x46, 0x0f, 0xed, 0x9f, 0x47, 0x01, 0xc1, 0xf1, 0x5d, 3493 0xf1, 0xfb, 0x24, 0x70, 0x6c, 0xd7, 0x18, 0xf5, 0xec, 0x9f, 0x13, 0xbc, 0x4c, 0xe9, 0x0d, 0xfb, 3494 0x41, 0xcf, 0x99, 0xc1, 0x5b, 0xb6, 0x2b, 0xc5, 0xde, 0x5e, 0x74, 0x94, 0x84, 0x80, 0xb1, 0x40, 3495 0x6c, 0x1c, 0x43, 0x91, 0xcf, 0x69, 0x11, 0x43, 0x54, 0x21, 0x4f, 0xe9, 0x0d, 0x67, 0xaa, 0x8c, 3496 0xd9, 0x6f, 0xe3, 0x11, 0xac, 0x24, 0x67, 0xc0, 0x0c, 0x69, 0x48, 0xec, 0xc1, 0x50, 0x18, 0x58, 3497 0x11, 0xcb, 0x12, 0xd3, 0xe4, 0x2b, 0xdb, 0x92, 0x21, 0x6b, 0x11, 0x8b, 0x82, 0xf6, 0x6f, 0x39, 3498 0xb8, 0x3f, 0x43, 0x32, 0xd2, 0x58, 0xbf, 0x4a, 0x19, 0xeb, 0x5b, 0x92, 0x42, 0x64, 0xf1, 0x5f, 3499 0xa5, 0x2c, 0xfe, 0x2d, 0x82, 0xb3, 0x65, 0x73, 0x0f, 0x4a, 0xe4, 0xda, 0xa6, 0xc4, 0x92, 0xa2, 3500 0x92, 0xa5, 0xc4, 0x72, 0x2a, 0xdc, 0x75, 0x39, 0x7d, 0x04, 0x9b, 0xed, 0x80, 0x18, 0x94, 0xc8, 3501 0xad, 0x3c, 0xb2, 0xff, 0xfb, 0x50, 0x36, 0x46, 0x23, 0xcf, 0x9c, 0xa8, 0x75, 0x99, 0x97, 0x8f, 3502 0x2c, 0xed, 0x5b, 0x05, 0xb6, 0x6e, 0xf5, 0x91, 0x92, 0xbe, 0x80, 0x9a, 0x1d, 0x7a, 0x23, 0x3e, 3503 0x09, 0x3d, 0x71, 0x8a, 0xfb, 0xf1, 0x7c, 0xee, 0xe4, 0x28, 0xc2, 0xe0, 0x87, 0xba, 0x55, 0x3b, 3504 0x59, 0xe4, 0x56, 0xc5, 0x07, 0xb7, 0xe4, 0x6a, 0x8e, 0x8a, 0xda, 0x3f, 0x28, 0xb0, 0x25, 0xbd, 3505 0x78, 0xe6, 0xc9, 0xcc, 0x60, 0x39, 0xf7, 0xb6, 0x59, 0xd6, 0xea, 0x70, 0xef, 0x36, 0x5f, 0x72, 3506 0x5f, 0xff, 0xa7, 0x3c, 0xa0, 0xe9, 0x13, 0x24, 0xfa, 0x1e, 0xac, 0x84, 0xc4, 0xb5, 0x74, 0xe1, 3507 0x13, 0x84, 0xbb, 0x2a, 0xe3, 0x2a, 0xa3, 0x09, 0xe7, 0x10, 0xb2, 0x6d, 0x8e, 0x5c, 0x4b, 0x6e, 3508 0xcb, 0x98, 0xff, 0xa3, 0x21, 0xac, 0xbc, 0x08, 0xf5, 0x78, 0x6c, 0x6e, 0x34, 0xb5, 0xcc, 0x5b, 3509 0xd7, 0x34, 0x1f, 0xcd, 0x27, 0xbd, 0x78, 0x5e, 0xb8, 0xfa, 0x22, 0x8c, 0x0b, 0xe8, 0x97, 0x0a, 3510 0xbc, 0x13, 0x85, 0x0e, 0x13, 0xf1, 0x39, 0x9e, 0x45, 0xc2, 0x7a, 0xe1, 0x41, 0x7e, 0xbb, 0xb6, 3511 0x7b, 0x76, 0x07, 0xf9, 0x4d, 0x11, 0x4f, 0x3c, 0x8b, 0xe0, 0x2d, 0x77, 0x06, 0x35, 0x44, 0x4d, 3512 0xd8, 0x70, 0xc6, 0x21, 0xd5, 0x85, 0x15, 0xe8, 0xb2, 0x51, 0xbd, 0xc8, 0xe5, 0xb2, 0xce, 0xaa, 3513 0x52, 0xb6, 0xaa, 0x35, 0xa1, 0x9a, 0x98, 0x16, 0x2a, 0x43, 0xa1, 0x7b, 0xda, 0xed, 0xa8, 0x4b, 3514 0x08, 0xa0, 0xd4, 0x3e, 0xc4, 0xa7, 0xa7, 0x7d, 0x11, 0x89, 0x1f, 0x9d, 0xb4, 0x0e, 0x3a, 0x6a, 3515 0x4e, 0xfb, 0xbf, 0x1c, 0x6c, 0xce, 0x62, 0x12, 0x59, 0x50, 0x60, 0x13, 0x96, 0xc7, 0x9f, 0xb7, 3516 0x3f, 0x5f, 0x8e, 0xce, 0xf4, 0xec, 0x1b, 0x72, 0xbf, 0xab, 0x60, 0xfe, 0x8f, 0x74, 0x28, 0x8d, 3517 0x8c, 0x0b, 0x32, 0x0a, 0xeb, 0x79, 0x7e, 0x41, 0x70, 0x70, 0x97, 0xb1, 0x8f, 0x39, 0x92, 0xb8, 3518 0x1d, 0x90, 0xb0, 0x8d, 0x3d, 0xa8, 0x26, 0xc8, 0x33, 0x8e, 0xe1, 0x9b, 0xc9, 0x63, 0x78, 0x25, 3519 0x79, 0xa6, 0x7e, 0x3c, 0x2d, 0x2d, 0x36, 0x1b, 0x26, 0xe7, 0xc3, 0xd3, 0x5e, 0x5f, 0x1c, 0x78, 3520 0x0e, 0xf0, 0xe9, 0xf9, 0x99, 0xaa, 0x30, 0x62, 0xbf, 0xd5, 0x7b, 0xaa, 0xe6, 0x62, 0x35, 0xe4, 3521 0xb5, 0x7f, 0x5d, 0x06, 0x98, 0x1c, 0x41, 0x51, 0x0d, 0x72, 0xf1, 0xa2, 0xcd, 0xd9, 0x16, 0x93, 3522 0x87, 0x6b, 0x38, 0xd1, 0xc0, 0xfc, 0x1f, 0xed, 0xc2, 0x96, 0x13, 0x0e, 0x7c, 0xc3, 0xbc, 0xd4, 3523 0xe5, 0xc9, 0xd1, 0xe4, 0x9d, 0xf9, 0x02, 0x58, 0xc1, 0x1b, 0xb2, 0x52, 0x1a, 0xb8, 0xc0, 0x3d, 3524 0x86, 0x3c, 0x71, 0xaf, 0xb8, 0xb1, 0x56, 0x77, 0x3f, 0x9d, 0xfb, 0x68, 0xdc, 0xec, 0xb8, 0x57, 3525 0x42, 0x66, 0x0c, 0x06, 0xe9, 0x00, 0x16, 0xb9, 0xb2, 0x4d, 0xa2, 0x33, 0xd0, 0x22, 0x07, 0xfd, 3526 0x7c, 0x7e, 0xd0, 0x7d, 0x8e, 0x11, 0x43, 0x57, 0xac, 0xa8, 0x8c, 0xba, 0x50, 0x09, 0x48, 0xe8, 3527 0x8d, 0x03, 0x93, 0x84, 0xf5, 0xd2, 0x5c, 0xd1, 0x2b, 0x8e, 0xfa, 0xe1, 0x09, 0x04, 0xda, 0x87, 3528 0x92, 0xe3, 0x8d, 0x5d, 0x1a, 0xd6, 0x97, 0x39, 0xb3, 0xef, 0x67, 0x04, 0x3b, 0x61, 0x9d, 0xb0, 3529 0xec, 0x8b, 0x0e, 0x60, 0x59, 0xb0, 0x18, 0xd6, 0xcb, 0x1c, 0xe6, 0x83, 0xac, 0x7b, 0x0d, 0xef, 3530 0x85, 0xa3, 0xde, 0x4c, 0xab, 0xe3, 0x90, 0x04, 0xf5, 0x8a, 0xd0, 0x2a, 0xfb, 0x47, 0xef, 0x42, 3531 0x45, 0x6c, 0xda, 0x96, 0x1d, 0xd4, 0x81, 0x57, 0x88, 0x5d, 0x7c, 0xdf, 0x0e, 0xd0, 0x7b, 0x50, 3532 0x15, 0x0e, 0x58, 0xe7, 0xab, 0xa3, 0xca, 0xab, 0x41, 0x90, 0xce, 0xd8, 0x1a, 0x11, 0x0d, 0x48, 3533 0x10, 0x88, 0x06, 0x2b, 0x71, 0x03, 0x12, 0x04, 0xbc, 0xc1, 0xef, 0xc3, 0x1a, 0x0f, 0x5b, 0x06, 3534 0x81, 0x37, 0xf6, 0x75, 0x6e, 0x53, 0xab, 0xbc, 0xd1, 0x2a, 0x23, 0x1f, 0x30, 0x6a, 0x97, 0x19, 3535 0xd7, 0x7d, 0x28, 0xbf, 0xf4, 0x2e, 0x44, 0x83, 0x9a, 0xf0, 0x1d, 0x2f, 0xbd, 0x8b, 0xa8, 0x2a, 3536 0x76, 0x2b, 0x6b, 0x69, 0xb7, 0xf2, 0x0d, 0xdc, 0x9b, 0xde, 0x1f, 0xb9, 0x7b, 0x51, 0xef, 0xee, 3537 0x5e, 0x36, 0xdd, 0x19, 0xd4, 0xc6, 0xc7, 0x50, 0x8e, 0x2c, 0x67, 0x9e, 0x15, 0xdb, 0x78, 0x04, 3538 0xb5, 0xb4, 0xdd, 0xcd, 0xb5, 0xde, 0xff, 0x4b, 0x81, 0x4a, 0x6c, 0x61, 0xc8, 0x85, 0x0d, 0x2e, 3539 0x01, 0xe6, 0x8f, 0xf5, 0x89, 0xc1, 0x8a, 0x28, 0xe0, 0xb3, 0x8c, 0x73, 0x6e, 0x45, 0x08, 0xf2, 3540 0xc8, 0x21, 0xad, 0x17, 0xc5, 0xc8, 0x93, 0xf1, 0xbe, 0x86, 0xb5, 0x91, 0xed, 0x8e, 0xaf, 0x13, 3541 0x63, 0x09, 0xf7, 0xfd, 0x07, 0x19, 0xc7, 0x3a, 0x66, 0xbd, 0x27, 0x63, 0xd4, 0x46, 0xa9, 0xb2, 3542 0xf6, 0x6d, 0x0e, 0xee, 0xcd, 0x66, 0x07, 0x75, 0x21, 0x6f, 0xfa, 0x63, 0x39, 0xb5, 0x47, 0xf3, 3543 0x4e, 0xad, 0xed, 0x8f, 0x27, 0xa3, 0x32, 0x20, 0xf4, 0x0c, 0x4a, 0x0e, 0x71, 0xbc, 0xe0, 0x46, 3544 0xce, 0xe0, 0xf1, 0xbc, 0x90, 0x27, 0xbc, 0xf7, 0x04, 0x55, 0xc2, 0x21, 0x0c, 0x65, 0x69, 0x2f, 3545 0xa1, 0xdc, 0x99, 0xe6, 0x3c, 0xdd, 0x47, 0x90, 0x38, 0xc6, 0xd1, 0x3e, 0x86, 0xad, 0x99, 0x53, 3546 0x41, 0xbf, 0x0b, 0x60, 0xfa, 0x63, 0x9d, 0xdf, 0xbe, 0x0a, 0xbd, 0xe7, 0x71, 0xc5, 0xf4, 0xc7, 3547 0x3d, 0x4e, 0xd0, 0x1e, 0x42, 0xfd, 0x75, 0xfc, 0xb2, 0xf5, 0x2e, 0x38, 0xd6, 0x9d, 0x0b, 0x2e, 3548 0x83, 0x3c, 0x2e, 0x0b, 0xc2, 0xc9, 0x85, 0xf6, 0xab, 0x1c, 0xac, 0xdd, 0x62, 0x87, 0x45, 0xc7, 3549 0x62, 0xff, 0x88, 0xce, 0x1d, 0xa2, 0xc4, 0x36, 0x13, 0xd3, 0xb6, 0xa2, 0x1b, 0x2b, 0xfe, 0xcf, 3550 0xdd, 0x88, 0x2f, 0x6f, 0x93, 0x72, 0xb6, 0xcf, 0x0c, 0xda, 0xb9, 0xb0, 0x69, 0xc8, 0x03, 0xe8, 3551 0x22, 0x16, 0x05, 0xf4, 0x1c, 0x6a, 0x01, 0x09, 0x49, 0x70, 0x45, 0x2c, 0xdd, 0xf7, 0x02, 0x1a, 3552 0x09, 0x6c, 0x77, 0x3e, 0x81, 0x9d, 0x79, 0x01, 0xc5, 0xab, 0x11, 0x12, 0x2b, 0x85, 0xe8, 0x19, 3553 0xac, 0x5a, 0x37, 0xae, 0xe1, 0xd8, 0xa6, 0x44, 0x2e, 0x2d, 0x8c, 0xbc, 0x22, 0x81, 0x38, 0xb0, 3554 0xb6, 0x07, 0xd5, 0x44, 0x25, 0x9b, 0x18, 0x77, 0xe2, 0x52, 0x26, 0xa2, 0x90, 0x5e, 0xbf, 0x45, 3555 0xb9, 0x7e, 0xb5, 0x7f, 0xce, 0x41, 0x2d, 0xbd, 0x00, 0x22, 0xfd, 0xf9, 0x24, 0xb0, 0x3d, 0x2b, 3556 0xa1, 0xbf, 0x33, 0x4e, 0x60, 0x3a, 0x62, 0xd5, 0xdf, 0x8c, 0x3d, 0x6a, 0x44, 0x3a, 0x32, 0xfd, 3557 0xf1, 0x1f, 0xb2, 0xf2, 0x2d, 0xdd, 0xe7, 0x6f, 0xe9, 0x1e, 0xbd, 0x0f, 0x48, 0xea, 0x77, 0x64, 3558 0x3b, 0x36, 0xd5, 0x2f, 0x6e, 0x28, 0x11, 0xf2, 0xcf, 0x63, 0x55, 0xd4, 0x1c, 0xb3, 0x8a, 0x2f, 3559 0x18, 0x1d, 0x69, 0xb0, 0xea, 0x79, 0x8e, 0x1e, 0x9a, 0x5e, 0x40, 0x74, 0xc3, 0x7a, 0xc9, 0x03, 3560 0xba, 0x3c, 0xae, 0x7a, 0x9e, 0xd3, 0x63, 0xb4, 0x96, 0xf5, 0x92, 0xed, 0xf1, 0xa6, 0x3f, 0x0e, 3561 0x09, 0xd5, 0xd9, 0x87, 0xbb, 0xc5, 0x0a, 0x06, 0x41, 0x6a, 0xfb, 0xe3, 0x30, 0xd1, 0xc0, 0x21, 3562 0x0e, 0x73, 0x75, 0x89, 0x06, 0x27, 0xc4, 0x61, 0xa3, 0xac, 0x9c, 0x91, 0xc0, 0x24, 0x2e, 0xed, 3563 0xdb, 0xe6, 0x25, 0xf3, 0x62, 0xca, 0xb6, 0x82, 0x53, 0x34, 0xed, 0x67, 0x50, 0xe4, 0x5e, 0x8f, 3564 0x4d, 0x9e, 0x7b, 0x0c, 0xee, 0x50, 0x84, 0x78, 0xcb, 0x8c, 0xc0, 0xdd, 0xc9, 0xbb, 0x50, 0x19, 3565 0x7a, 0xa1, 0x74, 0x47, 0xc2, 0xf2, 0xca, 0x8c, 0xc0, 0x2b, 0x1b, 0x50, 0x0e, 0x88, 0x61, 0x79, 3566 0xee, 0x28, 0x3a, 0xf4, 0xc6, 0x65, 0xed, 0x1b, 0x28, 0x89, 0xed, 0xf7, 0x0e, 0xf8, 0x1f, 0x00, 3567 0x32, 0x85, 0x1f, 0xf3, 0xd9, 0x21, 0x3a, 0x0c, 0x6d, 0xcf, 0x0d, 0xa3, 0x97, 0x16, 0x51, 0x73, 3568 0x36, 0xa9, 0xd0, 0xfe, 0x5b, 0x11, 0x21, 0x96, 0xb8, 0x03, 0x67, 0x27, 0x2a, 0x66, 0x69, 0xec, 3569 0xc4, 0x20, 0x0e, 0xdb, 0x51, 0x91, 0x9d, 0x33, 0x65, 0x24, 0x95, 0x5b, 0xf4, 0x09, 0x41, 0x02, 3570 0x44, 0x57, 0x6f, 0x44, 0x1e, 0x4a, 0xe6, 0xbd, 0x7a, 0x23, 0xe2, 0xea, 0x8d, 0xb0, 0xa3, 0x91, 3571 0x8c, 0xf1, 0x04, 0x5c, 0x81, 0x87, 0x78, 0x55, 0x2b, 0xbe, 0xdf, 0x24, 0xda, 0xff, 0x2a, 0xf1, 3572 0x5e, 0x11, 0xdd, 0x43, 0xa2, 0xaf, 0xa1, 0xcc, 0x96, 0x9d, 0xee, 0x18, 0xbe, 0x7c, 0x55, 0x6b, 3573 0x2f, 0x76, 0xc5, 0xd9, 0x64, 0xab, 0xec, 0xc4, 0xf0, 0x45, 0x84, 0xb6, 0xec, 0x8b, 0x12, 0xdb, 3574 0x73, 0x0c, 0x6b, 0xb2, 0xe7, 0xb0, 0x7f, 0xf4, 0x7d, 0xa8, 0x19, 0x63, 0xea, 0xe9, 0x86, 0x75, 3575 0x45, 0x02, 0x6a, 0x87, 0x44, 0xea, 0x7e, 0x95, 0x51, 0x5b, 0x11, 0xb1, 0xf1, 0x29, 0xac, 0x24, 3576 0x31, 0xdf, 0xe4, 0x7d, 0x8b, 0x49, 0xef, 0xfb, 0x27, 0x00, 0x93, 0x33, 0x3d, 0xb3, 0x11, 0x72, 3577 0x6d, 0x53, 0xdd, 0x8c, 0x8e, 0x25, 0x45, 0x5c, 0x66, 0x84, 0x36, 0x0b, 0xc0, 0xd3, 0x17, 0x8e, 3578 0xc5, 0xe8, 0xc2, 0x91, 0xad, 0x5a, 0xb6, 0xd0, 0x2e, 0xed, 0xd1, 0x28, 0xbe, 0x67, 0xa8, 0x78, 3579 0x9e, 0xf3, 0x94, 0x13, 0xb4, 0xdf, 0xe4, 0x84, 0xad, 0x88, 0xab, 0xe3, 0x4c, 0xe1, 0xf8, 0xdb, 3580 0x52, 0xf5, 0x1e, 0x40, 0x48, 0x8d, 0x80, 0x85, 0x12, 0x46, 0x74, 0xd3, 0xd1, 0x98, 0xba, 0xb1, 3581 0xec, 0x47, 0x2f, 0xe0, 0xb8, 0x22, 0x5b, 0xb7, 0x28, 0xfa, 0x0c, 0x56, 0x4c, 0xcf, 0xf1, 0x47, 3582 0x44, 0x76, 0x2e, 0xbe, 0xb1, 0x73, 0x35, 0x6e, 0xdf, 0xa2, 0x89, 0xfb, 0x95, 0xd2, 0x5d, 0xef, 3583 0x57, 0xfe, 0x5d, 0x11, 0x37, 0xe0, 0xc9, 0x0b, 0x78, 0x34, 0x98, 0xf1, 0xca, 0x7b, 0xb0, 0xe0, 3584 0x6d, 0xfe, 0x77, 0x3d, 0xf1, 0x36, 0x3e, 0xcb, 0xf2, 0xa6, 0xfa, 0xfa, 0xe0, 0xee, 0x3f, 0xf2, 3585 0x50, 0x89, 0x2f, 0xbf, 0xa7, 0x74, 0xff, 0x09, 0x54, 0xe2, 0xf4, 0x03, 0xb9, 0x41, 0x7c, 0xa7, 3586 0x7a, 0xe2, 0xc6, 0xe8, 0x05, 0x20, 0x63, 0x30, 0x88, 0x83, 0x36, 0x7d, 0x1c, 0x1a, 0x83, 0xe8, 3587 0xe9, 0xe1, 0x93, 0x39, 0xe4, 0x10, 0xf9, 0xad, 0x73, 0xd6, 0x1f, 0xab, 0xc6, 0x60, 0x90, 0xa2, 3588 0xa0, 0x3f, 0x85, 0xad, 0xf4, 0x18, 0xfa, 0xc5, 0x8d, 0xee, 0xdb, 0x96, 0x3c, 0xf6, 0x1d, 0xce, 3589 0x7b, 0xff, 0xdf, 0x4c, 0xc1, 0x7f, 0x71, 0x73, 0x66, 0x5b, 0x42, 0xe6, 0x28, 0x98, 0xaa, 0x68, 3590 0xfc, 0x39, 0xbc, 0xf3, 0x9a, 0xe6, 0x33, 0x74, 0xd0, 0x4d, 0xbf, 0x6b, 0x2f, 0x2e, 0x84, 0x84, 3591 0xf6, 0x7e, 0xad, 0x88, 0x67, 0x8a, 0xb4, 0x4c, 0x5a, 0xc9, 0xb8, 0x75, 0x27, 0xe3, 0x38, 0xed, 3592 0xb3, 0x73, 0x01, 0xcf, 0x43, 0xd5, 0x2f, 0x6f, 0x85, 0xaa, 0x59, 0x83, 0x18, 0x11, 0xf1, 0x09, 3593 0x20, 0x89, 0xa0, 0xfd, 0x4b, 0x1e, 0xca, 0x11, 0x3a, 0x3f, 0xb4, 0xdd, 0x84, 0x94, 0x38, 0x7a, 3594 0x7c, 0xb3, 0xa2, 0x60, 0x10, 0x24, 0x7e, 0x8b, 0xf0, 0x2e, 0x54, 0xd8, 0xd9, 0x50, 0x54, 0xe7, 3595 0x78, 0x75, 0x99, 0x11, 0x78, 0xe5, 0x7b, 0x50, 0xa5, 0x1e, 0x35, 0x46, 0x3a, 0xe5, 0xbe, 0x3c, 3596 0x2f, 0x7a, 0x73, 0x12, 0xf7, 0xe4, 0xe8, 0x87, 0xb0, 0x4e, 0x87, 0x81, 0x47, 0xe9, 0x88, 0xc5, 3597 0x77, 0x3c, 0xa2, 0x11, 0x01, 0x48, 0x01, 0xab, 0x71, 0x85, 0x88, 0x74, 0x42, 0xb6, 0x7b, 0x4f, 3598 0x1a, 0x33, 0xd3, 0xe5, 0x9b, 0x48, 0x01, 0xaf, 0xc6, 0x54, 0x66, 0xda, 0xcc, 0x79, 0xfa, 0x22, 3599 0x5a, 0xe0, 0x7b, 0x85, 0x82, 0xa3, 0x22, 0xd2, 0x61, 0xcd, 0x21, 0x46, 0x38, 0x0e, 0x88, 0xa5, 3600 0xbf, 0xb0, 0xc9, 0xc8, 0x12, 0x67, 0xed, 0x5a, 0xe6, 0xf0, 0x3b, 0x12, 0x4b, 0xf3, 0x09, 0xef, 3601 0x8d, 0x6b, 0x11, 0x9c, 0x28, 0xb3, 0xc8, 0x41, 0xfc, 0xa1, 0x35, 0xa8, 0xf6, 0x9e, 0xf7, 0xfa, 3602 0x9d, 0x13, 0xfd, 0xe4, 0x74, 0xbf, 0x23, 0x53, 0x17, 0x7a, 0x1d, 0x2c, 0x8a, 0x0a, 0xab, 0xef, 3603 0x9f, 0xf6, 0x5b, 0xc7, 0x7a, 0xff, 0xa8, 0xfd, 0xb4, 0xa7, 0xe6, 0xd0, 0x16, 0xac, 0xf7, 0x0f, 3604 0xf1, 0x69, 0xbf, 0x7f, 0xdc, 0xd9, 0xd7, 0xcf, 0x3a, 0xf8, 0xe8, 0x74, 0xbf, 0xa7, 0xe6, 0x11, 3605 0x82, 0xda, 0x84, 0xdc, 0x3f, 0x3a, 0xe9, 0xa8, 0x05, 0x54, 0x85, 0xe5, 0xb3, 0x0e, 0x6e, 0x77, 3606 0xba, 0x7d, 0xb5, 0xa8, 0xfd, 0x2a, 0x0f, 0xd5, 0x84, 0x16, 0x99, 0x21, 0x07, 0xa1, 0x88, 0xf3, 3607 0x0b, 0x98, 0xfd, 0xf2, 0xa7, 0x16, 0xc3, 0x1c, 0x0a, 0xed, 0x14, 0xb0, 0x28, 0xf0, 0xd8, 0xde, 3608 0xb8, 0x4e, 0xac, 0xf3, 0x02, 0x2e, 0x3b, 0xc6, 0xb5, 0x00, 0xf9, 0x1e, 0xac, 0x5c, 0x92, 0xc0, 3609 0x25, 0x23, 0x59, 0x2f, 0x34, 0x52, 0x15, 0x34, 0xd1, 0x64, 0x1b, 0x54, 0xd9, 0x64, 0x02, 0x23, 3610 0xd4, 0x51, 0x13, 0xf4, 0x93, 0x08, 0x6c, 0x13, 0x8a, 0xa2, 0x7a, 0x59, 0x8c, 0xcf, 0x0b, 0xcc, 3611 0x4d, 0x85, 0xaf, 0x0c, 0x9f, 0xc7, 0x77, 0x05, 0xcc, 0xff, 0xd1, 0xc5, 0xb4, 0x7e, 0x4a, 0x5c, 3612 0x3f, 0x7b, 0xf3, 0x9b, 0xf3, 0xeb, 0x54, 0x34, 0x8c, 0x55, 0xb4, 0x0c, 0x79, 0x1c, 0xbd, 0xf7, 3613 0xb7, 0x5b, 0xed, 0x43, 0xa6, 0x96, 0x55, 0xa8, 0x9c, 0xb4, 0x7e, 0xaa, 0x9f, 0xf7, 0xf8, 0x4d, 3614 0x23, 0x52, 0x61, 0xe5, 0x69, 0x07, 0x77, 0x3b, 0xc7, 0x92, 0x92, 0x47, 0x9b, 0xa0, 0x4a, 0xca, 3615 0xa4, 0x5d, 0x81, 0x21, 0x88, 0xdf, 0x22, 0x2a, 0x43, 0xa1, 0xf7, 0xac, 0x75, 0xa6, 0x96, 0xb4, 3616 0xff, 0xc9, 0xc1, 0x9a, 0x70, 0x0b, 0xf1, 0xcb, 0xe4, 0xeb, 0x5f, 0x66, 0x92, 0x17, 0x17, 0xb9, 3617 0xf4, 0xc5, 0x45, 0x14, 0x84, 0x72, 0xaf, 0x9e, 0x9f, 0x04, 0xa1, 0xfc, 0xc2, 0x23, 0xb5, 0xe3, 3618 0x17, 0xe6, 0xd9, 0xf1, 0xeb, 0xb0, 0xec, 0x90, 0x30, 0xd6, 0x5b, 0x05, 0x47, 0x45, 0x64, 0x43, 3619 0xd5, 0x70, 0x5d, 0x8f, 0xf2, 0x8b, 0x8c, 0xe8, 0x58, 0x74, 0x30, 0xd7, 0x9d, 0x75, 0x3c, 0xe3, 3620 0x66, 0x6b, 0x82, 0x24, 0x36, 0xe6, 0x24, 0x76, 0xe3, 0x27, 0xa0, 0xde, 0x6e, 0x30, 0x8f, 0x3b, 3621 0xfc, 0xc1, 0x47, 0x13, 0x6f, 0x48, 0xd8, 0xba, 0x38, 0xef, 0x3e, 0xed, 0x9e, 0x3e, 0xeb, 0xaa, 3622 0x4b, 0xac, 0x80, 0xcf, 0xbb, 0xdd, 0xa3, 0xee, 0x81, 0xaa, 0x20, 0x80, 0x52, 0xe7, 0xa7, 0x47, 3623 0xfd, 0xce, 0xbe, 0x9a, 0xdb, 0xfd, 0xf5, 0x3a, 0x94, 0x04, 0x93, 0xe8, 0x5b, 0x19, 0x09, 0x24, 3624 0xb3, 0xde, 0xd0, 0x4f, 0xe6, 0x8e, 0xa8, 0x53, 0x99, 0x74, 0x8d, 0xc7, 0x0b, 0xf7, 0x97, 0x2f, 3625 0x10, 0x4b, 0xe8, 0xaf, 0x15, 0x58, 0x49, 0xbd, 0x3e, 0x64, 0xbd, 0x0d, 0x9d, 0x91, 0x64, 0xd7, 3626 0xf8, 0xf1, 0x42, 0x7d, 0x63, 0x5e, 0x7e, 0xa9, 0x40, 0x35, 0x91, 0x5e, 0x86, 0xf6, 0x16, 0x49, 3627 0x49, 0x13, 0x9c, 0x7c, 0xba, 0x78, 0x36, 0x9b, 0xb6, 0xf4, 0xa1, 0x82, 0xfe, 0x4a, 0x81, 0x6a, 3628 0x22, 0xd1, 0x2a, 0x33, 0x2b, 0xd3, 0x69, 0x61, 0x99, 0x59, 0x99, 0x95, 0xd7, 0xb5, 0x84, 0xfe, 3629 0x42, 0x81, 0x4a, 0x9c, 0x34, 0x85, 0x1e, 0xce, 0x9f, 0x66, 0x25, 0x98, 0xf8, 0x64, 0xd1, 0xfc, 3630 0x2c, 0x6d, 0x09, 0xfd, 0x19, 0x94, 0xa3, 0x0c, 0x23, 0x94, 0xd5, 0x7b, 0xdd, 0x4a, 0x5f, 0x6a, 3631 0x3c, 0x9c, 0xbb, 0x5f, 0x72, 0xf8, 0x28, 0xed, 0x27, 0xf3, 0xf0, 0xb7, 0x12, 0x94, 0x1a, 0x0f, 3632 0xe7, 0xee, 0x17, 0x0f, 0xcf, 0x2c, 0x21, 0x91, 0x1d, 0x94, 0xd9, 0x12, 0xa6, 0xd3, 0x92, 0x32, 3633 0x5b, 0xc2, 0xac, 0x64, 0x24, 0xc1, 0x48, 0x22, 0xbf, 0x28, 0x33, 0x23, 0xd3, 0x39, 0x4c, 0x99, 3634 0x19, 0x99, 0x91, 0xce, 0xa4, 0x2d, 0xa1, 0x5f, 0x28, 0xc9, 0x73, 0xc1, 0xc3, 0xb9, 0xd3, 0x68, 3635 0xe6, 0x34, 0xc9, 0xa9, 0x44, 0x1e, 0xbe, 0x40, 0x7f, 0x21, 0x6f, 0x31, 0x44, 0x16, 0x0e, 0x9a, 3636 0x07, 0x2c, 0x95, 0xb8, 0xd3, 0xf8, 0x78, 0x31, 0x67, 0xc3, 0x99, 0xf8, 0x4b, 0x05, 0x60, 0x92, 3637 0xaf, 0x93, 0x99, 0x89, 0xa9, 0x44, 0xa1, 0xc6, 0xde, 0x02, 0x3d, 0x93, 0x0b, 0x24, 0xca, 0x27, 3638 0xc8, 0xbc, 0x40, 0x6e, 0xe5, 0x13, 0x65, 0x5e, 0x20, 0xb7, 0x73, 0x81, 0xb4, 0x25, 0xf4, 0x8f, 3639 0x0a, 0xac, 0x4f, 0xe5, 0x33, 0xa0, 0xc7, 0x77, 0x4c, 0x69, 0x69, 0x7c, 0xbe, 0x38, 0x40, 0xc4, 3640 0xda, 0xb6, 0xf2, 0xa1, 0x82, 0xfe, 0x46, 0x81, 0xd5, 0xd4, 0x1b, 0x30, 0xca, 0xec, 0xa5, 0x66, 3641 0x64, 0x46, 0x34, 0x1e, 0x2d, 0xd6, 0x39, 0x96, 0xd6, 0xdf, 0x29, 0x50, 0x4b, 0xa7, 0x03, 0xa0, 3642 0x47, 0xf3, 0x6d, 0x0b, 0xb7, 0x18, 0xfa, 0x6c, 0xc1, 0xde, 0x11, 0x47, 0x5f, 0x2c, 0xff, 0x51, 3643 0x51, 0x44, 0x6f, 0x25, 0xfe, 0xf9, 0xd1, 0x6f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x81, 0xc8, 0x42, 3644 0x4f, 0xd2, 0x30, 0x00, 0x00, 3645 } 3646 3647 // Reference imports to suppress errors if they are not otherwise used. 3648 var _ context.Context 3649 var _ grpc.ClientConnInterface 3650 3651 // This is a compile-time assertion to ensure that this generated file 3652 // is compatible with the grpc package it is being compiled against. 3653 const _ = grpc.SupportPackageIsVersion6 3654 3655 // DriverClient is the client API for Driver service. 3656 // 3657 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 3658 type DriverClient interface { 3659 // TaskConfigSchema returns the schema for parsing the driver 3660 // configuration of a task. 3661 TaskConfigSchema(ctx context.Context, in *TaskConfigSchemaRequest, opts ...grpc.CallOption) (*TaskConfigSchemaResponse, error) 3662 // Capabilities returns a set of features which the driver implements. Some 3663 // RPCs are not possible to implement on some runtimes, this allows the 3664 // driver to indicate if it doesn't support these RPCs and features. 3665 Capabilities(ctx context.Context, in *CapabilitiesRequest, opts ...grpc.CallOption) (*CapabilitiesResponse, error) 3666 // Fingerprint starts a stream which emits information about the driver 3667 // including whether the driver healthy and able to function in the 3668 // existing environment. 3669 // 3670 // The driver should immediately stream a FingerprintResponse when the RPC 3671 // is initially called, then send any additional responses if there is a 3672 // change in the driver's state. 3673 Fingerprint(ctx context.Context, in *FingerprintRequest, opts ...grpc.CallOption) (Driver_FingerprintClient, error) 3674 // RecoverTask is used when a task has been started but the driver may not 3675 // know about it. Such is the case if the driver restarts or is upgraded. 3676 RecoverTask(ctx context.Context, in *RecoverTaskRequest, opts ...grpc.CallOption) (*RecoverTaskResponse, error) 3677 // StartTask starts and tracks the task on the implemented runtime 3678 StartTask(ctx context.Context, in *StartTaskRequest, opts ...grpc.CallOption) (*StartTaskResponse, error) 3679 // WaitTask blocks until the given task exits, returning the result of the 3680 // task. It may be called after the task has exited, but before the task is 3681 // destroyed. 3682 WaitTask(ctx context.Context, in *WaitTaskRequest, opts ...grpc.CallOption) (*WaitTaskResponse, error) 3683 // StopTask stops a given task by sending the desired signal to the process. 3684 // If the task does not exit on its own within the given timeout, it will be 3685 // forcefully killed. 3686 StopTask(ctx context.Context, in *StopTaskRequest, opts ...grpc.CallOption) (*StopTaskResponse, error) 3687 // DestroyTask removes the task from the driver's internal state and cleans 3688 // up any additional resources created by the driver. It cannot be called 3689 // on a running task, unless force is set to true. 3690 DestroyTask(ctx context.Context, in *DestroyTaskRequest, opts ...grpc.CallOption) (*DestroyTaskResponse, error) 3691 // InspectTask returns detailed information for the given task 3692 InspectTask(ctx context.Context, in *InspectTaskRequest, opts ...grpc.CallOption) (*InspectTaskResponse, error) 3693 // TaskStats collects and returns runtime metrics for the given task 3694 TaskStats(ctx context.Context, in *TaskStatsRequest, opts ...grpc.CallOption) (Driver_TaskStatsClient, error) 3695 // TaskEvents starts a streaming RPC where all task events emitted by the 3696 // driver are streamed to the caller. 3697 TaskEvents(ctx context.Context, in *TaskEventsRequest, opts ...grpc.CallOption) (Driver_TaskEventsClient, error) 3698 // SignalTask sends a signal to the task 3699 SignalTask(ctx context.Context, in *SignalTaskRequest, opts ...grpc.CallOption) (*SignalTaskResponse, error) 3700 // ExecTask executes a command inside the tasks execution context 3701 ExecTask(ctx context.Context, in *ExecTaskRequest, opts ...grpc.CallOption) (*ExecTaskResponse, error) 3702 // ExecTaskStreaming executes a command inside the tasks execution context 3703 // and streams back results 3704 ExecTaskStreaming(ctx context.Context, opts ...grpc.CallOption) (Driver_ExecTaskStreamingClient, error) 3705 // CreateNetwork is implemented when the driver needs to create the network 3706 // namespace instead of allowing the Nomad client to do. 3707 CreateNetwork(ctx context.Context, in *CreateNetworkRequest, opts ...grpc.CallOption) (*CreateNetworkResponse, error) 3708 // DestroyNetwork destroys a previously created network. This rpc is only 3709 // implemented if the driver needs to manage network namespace creation. 3710 DestroyNetwork(ctx context.Context, in *DestroyNetworkRequest, opts ...grpc.CallOption) (*DestroyNetworkResponse, error) 3711 } 3712 3713 type driverClient struct { 3714 cc grpc.ClientConnInterface 3715 } 3716 3717 func NewDriverClient(cc grpc.ClientConnInterface) DriverClient { 3718 return &driverClient{cc} 3719 } 3720 3721 func (c *driverClient) TaskConfigSchema(ctx context.Context, in *TaskConfigSchemaRequest, opts ...grpc.CallOption) (*TaskConfigSchemaResponse, error) { 3722 out := new(TaskConfigSchemaResponse) 3723 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/TaskConfigSchema", in, out, opts...) 3724 if err != nil { 3725 return nil, err 3726 } 3727 return out, nil 3728 } 3729 3730 func (c *driverClient) Capabilities(ctx context.Context, in *CapabilitiesRequest, opts ...grpc.CallOption) (*CapabilitiesResponse, error) { 3731 out := new(CapabilitiesResponse) 3732 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/Capabilities", in, out, opts...) 3733 if err != nil { 3734 return nil, err 3735 } 3736 return out, nil 3737 } 3738 3739 func (c *driverClient) Fingerprint(ctx context.Context, in *FingerprintRequest, opts ...grpc.CallOption) (Driver_FingerprintClient, error) { 3740 stream, err := c.cc.NewStream(ctx, &_Driver_serviceDesc.Streams[0], "/hashicorp.nomad.plugins.drivers.proto.Driver/Fingerprint", opts...) 3741 if err != nil { 3742 return nil, err 3743 } 3744 x := &driverFingerprintClient{stream} 3745 if err := x.ClientStream.SendMsg(in); err != nil { 3746 return nil, err 3747 } 3748 if err := x.ClientStream.CloseSend(); err != nil { 3749 return nil, err 3750 } 3751 return x, nil 3752 } 3753 3754 type Driver_FingerprintClient interface { 3755 Recv() (*FingerprintResponse, error) 3756 grpc.ClientStream 3757 } 3758 3759 type driverFingerprintClient struct { 3760 grpc.ClientStream 3761 } 3762 3763 func (x *driverFingerprintClient) Recv() (*FingerprintResponse, error) { 3764 m := new(FingerprintResponse) 3765 if err := x.ClientStream.RecvMsg(m); err != nil { 3766 return nil, err 3767 } 3768 return m, nil 3769 } 3770 3771 func (c *driverClient) RecoverTask(ctx context.Context, in *RecoverTaskRequest, opts ...grpc.CallOption) (*RecoverTaskResponse, error) { 3772 out := new(RecoverTaskResponse) 3773 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/RecoverTask", in, out, opts...) 3774 if err != nil { 3775 return nil, err 3776 } 3777 return out, nil 3778 } 3779 3780 func (c *driverClient) StartTask(ctx context.Context, in *StartTaskRequest, opts ...grpc.CallOption) (*StartTaskResponse, error) { 3781 out := new(StartTaskResponse) 3782 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/StartTask", in, out, opts...) 3783 if err != nil { 3784 return nil, err 3785 } 3786 return out, nil 3787 } 3788 3789 func (c *driverClient) WaitTask(ctx context.Context, in *WaitTaskRequest, opts ...grpc.CallOption) (*WaitTaskResponse, error) { 3790 out := new(WaitTaskResponse) 3791 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/WaitTask", in, out, opts...) 3792 if err != nil { 3793 return nil, err 3794 } 3795 return out, nil 3796 } 3797 3798 func (c *driverClient) StopTask(ctx context.Context, in *StopTaskRequest, opts ...grpc.CallOption) (*StopTaskResponse, error) { 3799 out := new(StopTaskResponse) 3800 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/StopTask", in, out, opts...) 3801 if err != nil { 3802 return nil, err 3803 } 3804 return out, nil 3805 } 3806 3807 func (c *driverClient) DestroyTask(ctx context.Context, in *DestroyTaskRequest, opts ...grpc.CallOption) (*DestroyTaskResponse, error) { 3808 out := new(DestroyTaskResponse) 3809 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/DestroyTask", in, out, opts...) 3810 if err != nil { 3811 return nil, err 3812 } 3813 return out, nil 3814 } 3815 3816 func (c *driverClient) InspectTask(ctx context.Context, in *InspectTaskRequest, opts ...grpc.CallOption) (*InspectTaskResponse, error) { 3817 out := new(InspectTaskResponse) 3818 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/InspectTask", in, out, opts...) 3819 if err != nil { 3820 return nil, err 3821 } 3822 return out, nil 3823 } 3824 3825 func (c *driverClient) TaskStats(ctx context.Context, in *TaskStatsRequest, opts ...grpc.CallOption) (Driver_TaskStatsClient, error) { 3826 stream, err := c.cc.NewStream(ctx, &_Driver_serviceDesc.Streams[1], "/hashicorp.nomad.plugins.drivers.proto.Driver/TaskStats", opts...) 3827 if err != nil { 3828 return nil, err 3829 } 3830 x := &driverTaskStatsClient{stream} 3831 if err := x.ClientStream.SendMsg(in); err != nil { 3832 return nil, err 3833 } 3834 if err := x.ClientStream.CloseSend(); err != nil { 3835 return nil, err 3836 } 3837 return x, nil 3838 } 3839 3840 type Driver_TaskStatsClient interface { 3841 Recv() (*TaskStatsResponse, error) 3842 grpc.ClientStream 3843 } 3844 3845 type driverTaskStatsClient struct { 3846 grpc.ClientStream 3847 } 3848 3849 func (x *driverTaskStatsClient) Recv() (*TaskStatsResponse, error) { 3850 m := new(TaskStatsResponse) 3851 if err := x.ClientStream.RecvMsg(m); err != nil { 3852 return nil, err 3853 } 3854 return m, nil 3855 } 3856 3857 func (c *driverClient) TaskEvents(ctx context.Context, in *TaskEventsRequest, opts ...grpc.CallOption) (Driver_TaskEventsClient, error) { 3858 stream, err := c.cc.NewStream(ctx, &_Driver_serviceDesc.Streams[2], "/hashicorp.nomad.plugins.drivers.proto.Driver/TaskEvents", opts...) 3859 if err != nil { 3860 return nil, err 3861 } 3862 x := &driverTaskEventsClient{stream} 3863 if err := x.ClientStream.SendMsg(in); err != nil { 3864 return nil, err 3865 } 3866 if err := x.ClientStream.CloseSend(); err != nil { 3867 return nil, err 3868 } 3869 return x, nil 3870 } 3871 3872 type Driver_TaskEventsClient interface { 3873 Recv() (*DriverTaskEvent, error) 3874 grpc.ClientStream 3875 } 3876 3877 type driverTaskEventsClient struct { 3878 grpc.ClientStream 3879 } 3880 3881 func (x *driverTaskEventsClient) Recv() (*DriverTaskEvent, error) { 3882 m := new(DriverTaskEvent) 3883 if err := x.ClientStream.RecvMsg(m); err != nil { 3884 return nil, err 3885 } 3886 return m, nil 3887 } 3888 3889 func (c *driverClient) SignalTask(ctx context.Context, in *SignalTaskRequest, opts ...grpc.CallOption) (*SignalTaskResponse, error) { 3890 out := new(SignalTaskResponse) 3891 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/SignalTask", in, out, opts...) 3892 if err != nil { 3893 return nil, err 3894 } 3895 return out, nil 3896 } 3897 3898 func (c *driverClient) ExecTask(ctx context.Context, in *ExecTaskRequest, opts ...grpc.CallOption) (*ExecTaskResponse, error) { 3899 out := new(ExecTaskResponse) 3900 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/ExecTask", in, out, opts...) 3901 if err != nil { 3902 return nil, err 3903 } 3904 return out, nil 3905 } 3906 3907 func (c *driverClient) ExecTaskStreaming(ctx context.Context, opts ...grpc.CallOption) (Driver_ExecTaskStreamingClient, error) { 3908 stream, err := c.cc.NewStream(ctx, &_Driver_serviceDesc.Streams[3], "/hashicorp.nomad.plugins.drivers.proto.Driver/ExecTaskStreaming", opts...) 3909 if err != nil { 3910 return nil, err 3911 } 3912 x := &driverExecTaskStreamingClient{stream} 3913 return x, nil 3914 } 3915 3916 type Driver_ExecTaskStreamingClient interface { 3917 Send(*ExecTaskStreamingRequest) error 3918 Recv() (*ExecTaskStreamingResponse, error) 3919 grpc.ClientStream 3920 } 3921 3922 type driverExecTaskStreamingClient struct { 3923 grpc.ClientStream 3924 } 3925 3926 func (x *driverExecTaskStreamingClient) Send(m *ExecTaskStreamingRequest) error { 3927 return x.ClientStream.SendMsg(m) 3928 } 3929 3930 func (x *driverExecTaskStreamingClient) Recv() (*ExecTaskStreamingResponse, error) { 3931 m := new(ExecTaskStreamingResponse) 3932 if err := x.ClientStream.RecvMsg(m); err != nil { 3933 return nil, err 3934 } 3935 return m, nil 3936 } 3937 3938 func (c *driverClient) CreateNetwork(ctx context.Context, in *CreateNetworkRequest, opts ...grpc.CallOption) (*CreateNetworkResponse, error) { 3939 out := new(CreateNetworkResponse) 3940 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/CreateNetwork", in, out, opts...) 3941 if err != nil { 3942 return nil, err 3943 } 3944 return out, nil 3945 } 3946 3947 func (c *driverClient) DestroyNetwork(ctx context.Context, in *DestroyNetworkRequest, opts ...grpc.CallOption) (*DestroyNetworkResponse, error) { 3948 out := new(DestroyNetworkResponse) 3949 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/DestroyNetwork", in, out, opts...) 3950 if err != nil { 3951 return nil, err 3952 } 3953 return out, nil 3954 } 3955 3956 // DriverServer is the server API for Driver service. 3957 type DriverServer interface { 3958 // TaskConfigSchema returns the schema for parsing the driver 3959 // configuration of a task. 3960 TaskConfigSchema(context.Context, *TaskConfigSchemaRequest) (*TaskConfigSchemaResponse, error) 3961 // Capabilities returns a set of features which the driver implements. Some 3962 // RPCs are not possible to implement on some runtimes, this allows the 3963 // driver to indicate if it doesn't support these RPCs and features. 3964 Capabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) 3965 // Fingerprint starts a stream which emits information about the driver 3966 // including whether the driver healthy and able to function in the 3967 // existing environment. 3968 // 3969 // The driver should immediately stream a FingerprintResponse when the RPC 3970 // is initially called, then send any additional responses if there is a 3971 // change in the driver's state. 3972 Fingerprint(*FingerprintRequest, Driver_FingerprintServer) error 3973 // RecoverTask is used when a task has been started but the driver may not 3974 // know about it. Such is the case if the driver restarts or is upgraded. 3975 RecoverTask(context.Context, *RecoverTaskRequest) (*RecoverTaskResponse, error) 3976 // StartTask starts and tracks the task on the implemented runtime 3977 StartTask(context.Context, *StartTaskRequest) (*StartTaskResponse, error) 3978 // WaitTask blocks until the given task exits, returning the result of the 3979 // task. It may be called after the task has exited, but before the task is 3980 // destroyed. 3981 WaitTask(context.Context, *WaitTaskRequest) (*WaitTaskResponse, error) 3982 // StopTask stops a given task by sending the desired signal to the process. 3983 // If the task does not exit on its own within the given timeout, it will be 3984 // forcefully killed. 3985 StopTask(context.Context, *StopTaskRequest) (*StopTaskResponse, error) 3986 // DestroyTask removes the task from the driver's internal state and cleans 3987 // up any additional resources created by the driver. It cannot be called 3988 // on a running task, unless force is set to true. 3989 DestroyTask(context.Context, *DestroyTaskRequest) (*DestroyTaskResponse, error) 3990 // InspectTask returns detailed information for the given task 3991 InspectTask(context.Context, *InspectTaskRequest) (*InspectTaskResponse, error) 3992 // TaskStats collects and returns runtime metrics for the given task 3993 TaskStats(*TaskStatsRequest, Driver_TaskStatsServer) error 3994 // TaskEvents starts a streaming RPC where all task events emitted by the 3995 // driver are streamed to the caller. 3996 TaskEvents(*TaskEventsRequest, Driver_TaskEventsServer) error 3997 // SignalTask sends a signal to the task 3998 SignalTask(context.Context, *SignalTaskRequest) (*SignalTaskResponse, error) 3999 // ExecTask executes a command inside the tasks execution context 4000 ExecTask(context.Context, *ExecTaskRequest) (*ExecTaskResponse, error) 4001 // ExecTaskStreaming executes a command inside the tasks execution context 4002 // and streams back results 4003 ExecTaskStreaming(Driver_ExecTaskStreamingServer) error 4004 // CreateNetwork is implemented when the driver needs to create the network 4005 // namespace instead of allowing the Nomad client to do. 4006 CreateNetwork(context.Context, *CreateNetworkRequest) (*CreateNetworkResponse, error) 4007 // DestroyNetwork destroys a previously created network. This rpc is only 4008 // implemented if the driver needs to manage network namespace creation. 4009 DestroyNetwork(context.Context, *DestroyNetworkRequest) (*DestroyNetworkResponse, error) 4010 } 4011 4012 // UnimplementedDriverServer can be embedded to have forward compatible implementations. 4013 type UnimplementedDriverServer struct { 4014 } 4015 4016 func (*UnimplementedDriverServer) TaskConfigSchema(ctx context.Context, req *TaskConfigSchemaRequest) (*TaskConfigSchemaResponse, error) { 4017 return nil, status.Errorf(codes.Unimplemented, "method TaskConfigSchema not implemented") 4018 } 4019 func (*UnimplementedDriverServer) Capabilities(ctx context.Context, req *CapabilitiesRequest) (*CapabilitiesResponse, error) { 4020 return nil, status.Errorf(codes.Unimplemented, "method Capabilities not implemented") 4021 } 4022 func (*UnimplementedDriverServer) Fingerprint(req *FingerprintRequest, srv Driver_FingerprintServer) error { 4023 return status.Errorf(codes.Unimplemented, "method Fingerprint not implemented") 4024 } 4025 func (*UnimplementedDriverServer) RecoverTask(ctx context.Context, req *RecoverTaskRequest) (*RecoverTaskResponse, error) { 4026 return nil, status.Errorf(codes.Unimplemented, "method RecoverTask not implemented") 4027 } 4028 func (*UnimplementedDriverServer) StartTask(ctx context.Context, req *StartTaskRequest) (*StartTaskResponse, error) { 4029 return nil, status.Errorf(codes.Unimplemented, "method StartTask not implemented") 4030 } 4031 func (*UnimplementedDriverServer) WaitTask(ctx context.Context, req *WaitTaskRequest) (*WaitTaskResponse, error) { 4032 return nil, status.Errorf(codes.Unimplemented, "method WaitTask not implemented") 4033 } 4034 func (*UnimplementedDriverServer) StopTask(ctx context.Context, req *StopTaskRequest) (*StopTaskResponse, error) { 4035 return nil, status.Errorf(codes.Unimplemented, "method StopTask not implemented") 4036 } 4037 func (*UnimplementedDriverServer) DestroyTask(ctx context.Context, req *DestroyTaskRequest) (*DestroyTaskResponse, error) { 4038 return nil, status.Errorf(codes.Unimplemented, "method DestroyTask not implemented") 4039 } 4040 func (*UnimplementedDriverServer) InspectTask(ctx context.Context, req *InspectTaskRequest) (*InspectTaskResponse, error) { 4041 return nil, status.Errorf(codes.Unimplemented, "method InspectTask not implemented") 4042 } 4043 func (*UnimplementedDriverServer) TaskStats(req *TaskStatsRequest, srv Driver_TaskStatsServer) error { 4044 return status.Errorf(codes.Unimplemented, "method TaskStats not implemented") 4045 } 4046 func (*UnimplementedDriverServer) TaskEvents(req *TaskEventsRequest, srv Driver_TaskEventsServer) error { 4047 return status.Errorf(codes.Unimplemented, "method TaskEvents not implemented") 4048 } 4049 func (*UnimplementedDriverServer) SignalTask(ctx context.Context, req *SignalTaskRequest) (*SignalTaskResponse, error) { 4050 return nil, status.Errorf(codes.Unimplemented, "method SignalTask not implemented") 4051 } 4052 func (*UnimplementedDriverServer) ExecTask(ctx context.Context, req *ExecTaskRequest) (*ExecTaskResponse, error) { 4053 return nil, status.Errorf(codes.Unimplemented, "method ExecTask not implemented") 4054 } 4055 func (*UnimplementedDriverServer) ExecTaskStreaming(srv Driver_ExecTaskStreamingServer) error { 4056 return status.Errorf(codes.Unimplemented, "method ExecTaskStreaming not implemented") 4057 } 4058 func (*UnimplementedDriverServer) CreateNetwork(ctx context.Context, req *CreateNetworkRequest) (*CreateNetworkResponse, error) { 4059 return nil, status.Errorf(codes.Unimplemented, "method CreateNetwork not implemented") 4060 } 4061 func (*UnimplementedDriverServer) DestroyNetwork(ctx context.Context, req *DestroyNetworkRequest) (*DestroyNetworkResponse, error) { 4062 return nil, status.Errorf(codes.Unimplemented, "method DestroyNetwork not implemented") 4063 } 4064 4065 func RegisterDriverServer(s *grpc.Server, srv DriverServer) { 4066 s.RegisterService(&_Driver_serviceDesc, srv) 4067 } 4068 4069 func _Driver_TaskConfigSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4070 in := new(TaskConfigSchemaRequest) 4071 if err := dec(in); err != nil { 4072 return nil, err 4073 } 4074 if interceptor == nil { 4075 return srv.(DriverServer).TaskConfigSchema(ctx, in) 4076 } 4077 info := &grpc.UnaryServerInfo{ 4078 Server: srv, 4079 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/TaskConfigSchema", 4080 } 4081 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4082 return srv.(DriverServer).TaskConfigSchema(ctx, req.(*TaskConfigSchemaRequest)) 4083 } 4084 return interceptor(ctx, in, info, handler) 4085 } 4086 4087 func _Driver_Capabilities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4088 in := new(CapabilitiesRequest) 4089 if err := dec(in); err != nil { 4090 return nil, err 4091 } 4092 if interceptor == nil { 4093 return srv.(DriverServer).Capabilities(ctx, in) 4094 } 4095 info := &grpc.UnaryServerInfo{ 4096 Server: srv, 4097 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/Capabilities", 4098 } 4099 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4100 return srv.(DriverServer).Capabilities(ctx, req.(*CapabilitiesRequest)) 4101 } 4102 return interceptor(ctx, in, info, handler) 4103 } 4104 4105 func _Driver_Fingerprint_Handler(srv interface{}, stream grpc.ServerStream) error { 4106 m := new(FingerprintRequest) 4107 if err := stream.RecvMsg(m); err != nil { 4108 return err 4109 } 4110 return srv.(DriverServer).Fingerprint(m, &driverFingerprintServer{stream}) 4111 } 4112 4113 type Driver_FingerprintServer interface { 4114 Send(*FingerprintResponse) error 4115 grpc.ServerStream 4116 } 4117 4118 type driverFingerprintServer struct { 4119 grpc.ServerStream 4120 } 4121 4122 func (x *driverFingerprintServer) Send(m *FingerprintResponse) error { 4123 return x.ServerStream.SendMsg(m) 4124 } 4125 4126 func _Driver_RecoverTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4127 in := new(RecoverTaskRequest) 4128 if err := dec(in); err != nil { 4129 return nil, err 4130 } 4131 if interceptor == nil { 4132 return srv.(DriverServer).RecoverTask(ctx, in) 4133 } 4134 info := &grpc.UnaryServerInfo{ 4135 Server: srv, 4136 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/RecoverTask", 4137 } 4138 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4139 return srv.(DriverServer).RecoverTask(ctx, req.(*RecoverTaskRequest)) 4140 } 4141 return interceptor(ctx, in, info, handler) 4142 } 4143 4144 func _Driver_StartTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4145 in := new(StartTaskRequest) 4146 if err := dec(in); err != nil { 4147 return nil, err 4148 } 4149 if interceptor == nil { 4150 return srv.(DriverServer).StartTask(ctx, in) 4151 } 4152 info := &grpc.UnaryServerInfo{ 4153 Server: srv, 4154 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/StartTask", 4155 } 4156 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4157 return srv.(DriverServer).StartTask(ctx, req.(*StartTaskRequest)) 4158 } 4159 return interceptor(ctx, in, info, handler) 4160 } 4161 4162 func _Driver_WaitTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4163 in := new(WaitTaskRequest) 4164 if err := dec(in); err != nil { 4165 return nil, err 4166 } 4167 if interceptor == nil { 4168 return srv.(DriverServer).WaitTask(ctx, in) 4169 } 4170 info := &grpc.UnaryServerInfo{ 4171 Server: srv, 4172 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/WaitTask", 4173 } 4174 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4175 return srv.(DriverServer).WaitTask(ctx, req.(*WaitTaskRequest)) 4176 } 4177 return interceptor(ctx, in, info, handler) 4178 } 4179 4180 func _Driver_StopTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4181 in := new(StopTaskRequest) 4182 if err := dec(in); err != nil { 4183 return nil, err 4184 } 4185 if interceptor == nil { 4186 return srv.(DriverServer).StopTask(ctx, in) 4187 } 4188 info := &grpc.UnaryServerInfo{ 4189 Server: srv, 4190 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/StopTask", 4191 } 4192 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4193 return srv.(DriverServer).StopTask(ctx, req.(*StopTaskRequest)) 4194 } 4195 return interceptor(ctx, in, info, handler) 4196 } 4197 4198 func _Driver_DestroyTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4199 in := new(DestroyTaskRequest) 4200 if err := dec(in); err != nil { 4201 return nil, err 4202 } 4203 if interceptor == nil { 4204 return srv.(DriverServer).DestroyTask(ctx, in) 4205 } 4206 info := &grpc.UnaryServerInfo{ 4207 Server: srv, 4208 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/DestroyTask", 4209 } 4210 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4211 return srv.(DriverServer).DestroyTask(ctx, req.(*DestroyTaskRequest)) 4212 } 4213 return interceptor(ctx, in, info, handler) 4214 } 4215 4216 func _Driver_InspectTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4217 in := new(InspectTaskRequest) 4218 if err := dec(in); err != nil { 4219 return nil, err 4220 } 4221 if interceptor == nil { 4222 return srv.(DriverServer).InspectTask(ctx, in) 4223 } 4224 info := &grpc.UnaryServerInfo{ 4225 Server: srv, 4226 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/InspectTask", 4227 } 4228 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4229 return srv.(DriverServer).InspectTask(ctx, req.(*InspectTaskRequest)) 4230 } 4231 return interceptor(ctx, in, info, handler) 4232 } 4233 4234 func _Driver_TaskStats_Handler(srv interface{}, stream grpc.ServerStream) error { 4235 m := new(TaskStatsRequest) 4236 if err := stream.RecvMsg(m); err != nil { 4237 return err 4238 } 4239 return srv.(DriverServer).TaskStats(m, &driverTaskStatsServer{stream}) 4240 } 4241 4242 type Driver_TaskStatsServer interface { 4243 Send(*TaskStatsResponse) error 4244 grpc.ServerStream 4245 } 4246 4247 type driverTaskStatsServer struct { 4248 grpc.ServerStream 4249 } 4250 4251 func (x *driverTaskStatsServer) Send(m *TaskStatsResponse) error { 4252 return x.ServerStream.SendMsg(m) 4253 } 4254 4255 func _Driver_TaskEvents_Handler(srv interface{}, stream grpc.ServerStream) error { 4256 m := new(TaskEventsRequest) 4257 if err := stream.RecvMsg(m); err != nil { 4258 return err 4259 } 4260 return srv.(DriverServer).TaskEvents(m, &driverTaskEventsServer{stream}) 4261 } 4262 4263 type Driver_TaskEventsServer interface { 4264 Send(*DriverTaskEvent) error 4265 grpc.ServerStream 4266 } 4267 4268 type driverTaskEventsServer struct { 4269 grpc.ServerStream 4270 } 4271 4272 func (x *driverTaskEventsServer) Send(m *DriverTaskEvent) error { 4273 return x.ServerStream.SendMsg(m) 4274 } 4275 4276 func _Driver_SignalTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4277 in := new(SignalTaskRequest) 4278 if err := dec(in); err != nil { 4279 return nil, err 4280 } 4281 if interceptor == nil { 4282 return srv.(DriverServer).SignalTask(ctx, in) 4283 } 4284 info := &grpc.UnaryServerInfo{ 4285 Server: srv, 4286 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/SignalTask", 4287 } 4288 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4289 return srv.(DriverServer).SignalTask(ctx, req.(*SignalTaskRequest)) 4290 } 4291 return interceptor(ctx, in, info, handler) 4292 } 4293 4294 func _Driver_ExecTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4295 in := new(ExecTaskRequest) 4296 if err := dec(in); err != nil { 4297 return nil, err 4298 } 4299 if interceptor == nil { 4300 return srv.(DriverServer).ExecTask(ctx, in) 4301 } 4302 info := &grpc.UnaryServerInfo{ 4303 Server: srv, 4304 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/ExecTask", 4305 } 4306 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4307 return srv.(DriverServer).ExecTask(ctx, req.(*ExecTaskRequest)) 4308 } 4309 return interceptor(ctx, in, info, handler) 4310 } 4311 4312 func _Driver_ExecTaskStreaming_Handler(srv interface{}, stream grpc.ServerStream) error { 4313 return srv.(DriverServer).ExecTaskStreaming(&driverExecTaskStreamingServer{stream}) 4314 } 4315 4316 type Driver_ExecTaskStreamingServer interface { 4317 Send(*ExecTaskStreamingResponse) error 4318 Recv() (*ExecTaskStreamingRequest, error) 4319 grpc.ServerStream 4320 } 4321 4322 type driverExecTaskStreamingServer struct { 4323 grpc.ServerStream 4324 } 4325 4326 func (x *driverExecTaskStreamingServer) Send(m *ExecTaskStreamingResponse) error { 4327 return x.ServerStream.SendMsg(m) 4328 } 4329 4330 func (x *driverExecTaskStreamingServer) Recv() (*ExecTaskStreamingRequest, error) { 4331 m := new(ExecTaskStreamingRequest) 4332 if err := x.ServerStream.RecvMsg(m); err != nil { 4333 return nil, err 4334 } 4335 return m, nil 4336 } 4337 4338 func _Driver_CreateNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4339 in := new(CreateNetworkRequest) 4340 if err := dec(in); err != nil { 4341 return nil, err 4342 } 4343 if interceptor == nil { 4344 return srv.(DriverServer).CreateNetwork(ctx, in) 4345 } 4346 info := &grpc.UnaryServerInfo{ 4347 Server: srv, 4348 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/CreateNetwork", 4349 } 4350 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4351 return srv.(DriverServer).CreateNetwork(ctx, req.(*CreateNetworkRequest)) 4352 } 4353 return interceptor(ctx, in, info, handler) 4354 } 4355 4356 func _Driver_DestroyNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4357 in := new(DestroyNetworkRequest) 4358 if err := dec(in); err != nil { 4359 return nil, err 4360 } 4361 if interceptor == nil { 4362 return srv.(DriverServer).DestroyNetwork(ctx, in) 4363 } 4364 info := &grpc.UnaryServerInfo{ 4365 Server: srv, 4366 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/DestroyNetwork", 4367 } 4368 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4369 return srv.(DriverServer).DestroyNetwork(ctx, req.(*DestroyNetworkRequest)) 4370 } 4371 return interceptor(ctx, in, info, handler) 4372 } 4373 4374 var _Driver_serviceDesc = grpc.ServiceDesc{ 4375 ServiceName: "hashicorp.nomad.plugins.drivers.proto.Driver", 4376 HandlerType: (*DriverServer)(nil), 4377 Methods: []grpc.MethodDesc{ 4378 { 4379 MethodName: "TaskConfigSchema", 4380 Handler: _Driver_TaskConfigSchema_Handler, 4381 }, 4382 { 4383 MethodName: "Capabilities", 4384 Handler: _Driver_Capabilities_Handler, 4385 }, 4386 { 4387 MethodName: "RecoverTask", 4388 Handler: _Driver_RecoverTask_Handler, 4389 }, 4390 { 4391 MethodName: "StartTask", 4392 Handler: _Driver_StartTask_Handler, 4393 }, 4394 { 4395 MethodName: "WaitTask", 4396 Handler: _Driver_WaitTask_Handler, 4397 }, 4398 { 4399 MethodName: "StopTask", 4400 Handler: _Driver_StopTask_Handler, 4401 }, 4402 { 4403 MethodName: "DestroyTask", 4404 Handler: _Driver_DestroyTask_Handler, 4405 }, 4406 { 4407 MethodName: "InspectTask", 4408 Handler: _Driver_InspectTask_Handler, 4409 }, 4410 { 4411 MethodName: "SignalTask", 4412 Handler: _Driver_SignalTask_Handler, 4413 }, 4414 { 4415 MethodName: "ExecTask", 4416 Handler: _Driver_ExecTask_Handler, 4417 }, 4418 { 4419 MethodName: "CreateNetwork", 4420 Handler: _Driver_CreateNetwork_Handler, 4421 }, 4422 { 4423 MethodName: "DestroyNetwork", 4424 Handler: _Driver_DestroyNetwork_Handler, 4425 }, 4426 }, 4427 Streams: []grpc.StreamDesc{ 4428 { 4429 StreamName: "Fingerprint", 4430 Handler: _Driver_Fingerprint_Handler, 4431 ServerStreams: true, 4432 }, 4433 { 4434 StreamName: "TaskStats", 4435 Handler: _Driver_TaskStats_Handler, 4436 ServerStreams: true, 4437 }, 4438 { 4439 StreamName: "TaskEvents", 4440 Handler: _Driver_TaskEvents_Handler, 4441 ServerStreams: true, 4442 }, 4443 { 4444 StreamName: "ExecTaskStreaming", 4445 Handler: _Driver_ExecTaskStreaming_Handler, 4446 ServerStreams: true, 4447 ClientStreams: true, 4448 }, 4449 }, 4450 Metadata: "plugins/drivers/proto/driver.proto", 4451 }