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