github.com/Ilhicas/nomad@v1.0.4-0.20210304152020-e86851182bc3/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{53, 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{54, 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 DNSConfig struct { 1968 Servers []string `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` 1969 Searches []string `protobuf:"bytes,2,rep,name=searches,proto3" json:"searches,omitempty"` 1970 Options []string `protobuf:"bytes,3,rep,name=options,proto3" json:"options,omitempty"` 1971 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1972 XXX_unrecognized []byte `json:"-"` 1973 XXX_sizecache int32 `json:"-"` 1974 } 1975 1976 func (m *DNSConfig) Reset() { *m = DNSConfig{} } 1977 func (m *DNSConfig) String() string { return proto.CompactTextString(m) } 1978 func (*DNSConfig) ProtoMessage() {} 1979 func (*DNSConfig) Descriptor() ([]byte, []int) { 1980 return fileDescriptor_4a8f45747846a74d, []int{34} 1981 } 1982 1983 func (m *DNSConfig) XXX_Unmarshal(b []byte) error { 1984 return xxx_messageInfo_DNSConfig.Unmarshal(m, b) 1985 } 1986 func (m *DNSConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1987 return xxx_messageInfo_DNSConfig.Marshal(b, m, deterministic) 1988 } 1989 func (m *DNSConfig) XXX_Merge(src proto.Message) { 1990 xxx_messageInfo_DNSConfig.Merge(m, src) 1991 } 1992 func (m *DNSConfig) XXX_Size() int { 1993 return xxx_messageInfo_DNSConfig.Size(m) 1994 } 1995 func (m *DNSConfig) XXX_DiscardUnknown() { 1996 xxx_messageInfo_DNSConfig.DiscardUnknown(m) 1997 } 1998 1999 var xxx_messageInfo_DNSConfig proto.InternalMessageInfo 2000 2001 func (m *DNSConfig) GetServers() []string { 2002 if m != nil { 2003 return m.Servers 2004 } 2005 return nil 2006 } 2007 2008 func (m *DNSConfig) GetSearches() []string { 2009 if m != nil { 2010 return m.Searches 2011 } 2012 return nil 2013 } 2014 2015 func (m *DNSConfig) GetOptions() []string { 2016 if m != nil { 2017 return m.Options 2018 } 2019 return nil 2020 } 2021 2022 type TaskConfig struct { 2023 // Id of the task, recommended to the globally unique, must be unique to the driver. 2024 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 2025 // Name of the task 2026 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 2027 // MsgpackDriverConfig is the encoded driver configuation of the task 2028 MsgpackDriverConfig []byte `protobuf:"bytes,3,opt,name=msgpack_driver_config,json=msgpackDriverConfig,proto3" json:"msgpack_driver_config,omitempty"` 2029 // Env is the a set of key/value pairs to be set as environment variables 2030 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"` 2031 // DeviceEnv is the set of environment variables that are defined by device 2032 // plugins. This allows the driver to differentiate environment variables 2033 // set by the device plugins and those by the user. When populating the 2034 // task's environment env should be used. 2035 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"` 2036 // Resources defines the resources to isolate 2037 Resources *Resources `protobuf:"bytes,6,opt,name=resources,proto3" json:"resources,omitempty"` 2038 // Mounts is a list of targets to bind mount into the task directory 2039 Mounts []*Mount `protobuf:"bytes,7,rep,name=mounts,proto3" json:"mounts,omitempty"` 2040 // Devices is a list of system devices to mount into the task's execution 2041 // environment. 2042 Devices []*Device `protobuf:"bytes,8,rep,name=devices,proto3" json:"devices,omitempty"` 2043 // User defines the operating system user the tasks should run as 2044 User string `protobuf:"bytes,9,opt,name=user,proto3" json:"user,omitempty"` 2045 // AllocDir is the directory on the host where the allocation directory 2046 // exists. 2047 AllocDir string `protobuf:"bytes,10,opt,name=alloc_dir,json=allocDir,proto3" json:"alloc_dir,omitempty"` 2048 // StdoutPath is the path to the file to open and write task stdout to 2049 StdoutPath string `protobuf:"bytes,11,opt,name=stdout_path,json=stdoutPath,proto3" json:"stdout_path,omitempty"` 2050 // StderrPath is the path to the file to open and write task stderr to 2051 StderrPath string `protobuf:"bytes,12,opt,name=stderr_path,json=stderrPath,proto3" json:"stderr_path,omitempty"` 2052 // TaskGroupName is the name of the task group which this task is a member of 2053 TaskGroupName string `protobuf:"bytes,13,opt,name=task_group_name,json=taskGroupName,proto3" json:"task_group_name,omitempty"` 2054 // JobName is the name of the job of which this task is part of 2055 JobName string `protobuf:"bytes,14,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` 2056 // AllocId is the ID of the associated allocation 2057 AllocId string `protobuf:"bytes,15,opt,name=alloc_id,json=allocId,proto3" json:"alloc_id,omitempty"` 2058 // NetworkIsolationSpec specifies the configuration for the network namespace 2059 // to use for the task. *Only supported on Linux 2060 NetworkIsolationSpec *NetworkIsolationSpec `protobuf:"bytes,16,opt,name=network_isolation_spec,json=networkIsolationSpec,proto3" json:"network_isolation_spec,omitempty"` 2061 // DNSConfig is the configuration for task DNS resolvers and other options 2062 Dns *DNSConfig `protobuf:"bytes,17,opt,name=dns,proto3" json:"dns,omitempty"` 2063 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2064 XXX_unrecognized []byte `json:"-"` 2065 XXX_sizecache int32 `json:"-"` 2066 } 2067 2068 func (m *TaskConfig) Reset() { *m = TaskConfig{} } 2069 func (m *TaskConfig) String() string { return proto.CompactTextString(m) } 2070 func (*TaskConfig) ProtoMessage() {} 2071 func (*TaskConfig) Descriptor() ([]byte, []int) { 2072 return fileDescriptor_4a8f45747846a74d, []int{35} 2073 } 2074 2075 func (m *TaskConfig) XXX_Unmarshal(b []byte) error { 2076 return xxx_messageInfo_TaskConfig.Unmarshal(m, b) 2077 } 2078 func (m *TaskConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2079 return xxx_messageInfo_TaskConfig.Marshal(b, m, deterministic) 2080 } 2081 func (m *TaskConfig) XXX_Merge(src proto.Message) { 2082 xxx_messageInfo_TaskConfig.Merge(m, src) 2083 } 2084 func (m *TaskConfig) XXX_Size() int { 2085 return xxx_messageInfo_TaskConfig.Size(m) 2086 } 2087 func (m *TaskConfig) XXX_DiscardUnknown() { 2088 xxx_messageInfo_TaskConfig.DiscardUnknown(m) 2089 } 2090 2091 var xxx_messageInfo_TaskConfig proto.InternalMessageInfo 2092 2093 func (m *TaskConfig) GetId() string { 2094 if m != nil { 2095 return m.Id 2096 } 2097 return "" 2098 } 2099 2100 func (m *TaskConfig) GetName() string { 2101 if m != nil { 2102 return m.Name 2103 } 2104 return "" 2105 } 2106 2107 func (m *TaskConfig) GetMsgpackDriverConfig() []byte { 2108 if m != nil { 2109 return m.MsgpackDriverConfig 2110 } 2111 return nil 2112 } 2113 2114 func (m *TaskConfig) GetEnv() map[string]string { 2115 if m != nil { 2116 return m.Env 2117 } 2118 return nil 2119 } 2120 2121 func (m *TaskConfig) GetDeviceEnv() map[string]string { 2122 if m != nil { 2123 return m.DeviceEnv 2124 } 2125 return nil 2126 } 2127 2128 func (m *TaskConfig) GetResources() *Resources { 2129 if m != nil { 2130 return m.Resources 2131 } 2132 return nil 2133 } 2134 2135 func (m *TaskConfig) GetMounts() []*Mount { 2136 if m != nil { 2137 return m.Mounts 2138 } 2139 return nil 2140 } 2141 2142 func (m *TaskConfig) GetDevices() []*Device { 2143 if m != nil { 2144 return m.Devices 2145 } 2146 return nil 2147 } 2148 2149 func (m *TaskConfig) GetUser() string { 2150 if m != nil { 2151 return m.User 2152 } 2153 return "" 2154 } 2155 2156 func (m *TaskConfig) GetAllocDir() string { 2157 if m != nil { 2158 return m.AllocDir 2159 } 2160 return "" 2161 } 2162 2163 func (m *TaskConfig) GetStdoutPath() string { 2164 if m != nil { 2165 return m.StdoutPath 2166 } 2167 return "" 2168 } 2169 2170 func (m *TaskConfig) GetStderrPath() string { 2171 if m != nil { 2172 return m.StderrPath 2173 } 2174 return "" 2175 } 2176 2177 func (m *TaskConfig) GetTaskGroupName() string { 2178 if m != nil { 2179 return m.TaskGroupName 2180 } 2181 return "" 2182 } 2183 2184 func (m *TaskConfig) GetJobName() string { 2185 if m != nil { 2186 return m.JobName 2187 } 2188 return "" 2189 } 2190 2191 func (m *TaskConfig) GetAllocId() string { 2192 if m != nil { 2193 return m.AllocId 2194 } 2195 return "" 2196 } 2197 2198 func (m *TaskConfig) GetNetworkIsolationSpec() *NetworkIsolationSpec { 2199 if m != nil { 2200 return m.NetworkIsolationSpec 2201 } 2202 return nil 2203 } 2204 2205 func (m *TaskConfig) GetDns() *DNSConfig { 2206 if m != nil { 2207 return m.Dns 2208 } 2209 return nil 2210 } 2211 2212 type Resources struct { 2213 // AllocatedResources are the resources set for the task 2214 AllocatedResources *AllocatedTaskResources `protobuf:"bytes,1,opt,name=allocated_resources,json=allocatedResources,proto3" json:"allocated_resources,omitempty"` 2215 // LinuxResources are the computed values to set for specific Linux features 2216 LinuxResources *LinuxResources `protobuf:"bytes,2,opt,name=linux_resources,json=linuxResources,proto3" json:"linux_resources,omitempty"` 2217 // Ports are the allocated port mappings for the allocation. 2218 // A task may use these to manually configure port mapping if shared network namespaces aren't being used. 2219 Ports []*PortMapping `protobuf:"bytes,3,rep,name=ports,proto3" json:"ports,omitempty"` 2220 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2221 XXX_unrecognized []byte `json:"-"` 2222 XXX_sizecache int32 `json:"-"` 2223 } 2224 2225 func (m *Resources) Reset() { *m = Resources{} } 2226 func (m *Resources) String() string { return proto.CompactTextString(m) } 2227 func (*Resources) ProtoMessage() {} 2228 func (*Resources) Descriptor() ([]byte, []int) { 2229 return fileDescriptor_4a8f45747846a74d, []int{36} 2230 } 2231 2232 func (m *Resources) XXX_Unmarshal(b []byte) error { 2233 return xxx_messageInfo_Resources.Unmarshal(m, b) 2234 } 2235 func (m *Resources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2236 return xxx_messageInfo_Resources.Marshal(b, m, deterministic) 2237 } 2238 func (m *Resources) XXX_Merge(src proto.Message) { 2239 xxx_messageInfo_Resources.Merge(m, src) 2240 } 2241 func (m *Resources) XXX_Size() int { 2242 return xxx_messageInfo_Resources.Size(m) 2243 } 2244 func (m *Resources) XXX_DiscardUnknown() { 2245 xxx_messageInfo_Resources.DiscardUnknown(m) 2246 } 2247 2248 var xxx_messageInfo_Resources proto.InternalMessageInfo 2249 2250 func (m *Resources) GetAllocatedResources() *AllocatedTaskResources { 2251 if m != nil { 2252 return m.AllocatedResources 2253 } 2254 return nil 2255 } 2256 2257 func (m *Resources) GetLinuxResources() *LinuxResources { 2258 if m != nil { 2259 return m.LinuxResources 2260 } 2261 return nil 2262 } 2263 2264 func (m *Resources) GetPorts() []*PortMapping { 2265 if m != nil { 2266 return m.Ports 2267 } 2268 return nil 2269 } 2270 2271 type AllocatedTaskResources struct { 2272 Cpu *AllocatedCpuResources `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` 2273 Memory *AllocatedMemoryResources `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"` 2274 Networks []*NetworkResource `protobuf:"bytes,5,rep,name=networks,proto3" json:"networks,omitempty"` 2275 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2276 XXX_unrecognized []byte `json:"-"` 2277 XXX_sizecache int32 `json:"-"` 2278 } 2279 2280 func (m *AllocatedTaskResources) Reset() { *m = AllocatedTaskResources{} } 2281 func (m *AllocatedTaskResources) String() string { return proto.CompactTextString(m) } 2282 func (*AllocatedTaskResources) ProtoMessage() {} 2283 func (*AllocatedTaskResources) Descriptor() ([]byte, []int) { 2284 return fileDescriptor_4a8f45747846a74d, []int{37} 2285 } 2286 2287 func (m *AllocatedTaskResources) XXX_Unmarshal(b []byte) error { 2288 return xxx_messageInfo_AllocatedTaskResources.Unmarshal(m, b) 2289 } 2290 func (m *AllocatedTaskResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2291 return xxx_messageInfo_AllocatedTaskResources.Marshal(b, m, deterministic) 2292 } 2293 func (m *AllocatedTaskResources) XXX_Merge(src proto.Message) { 2294 xxx_messageInfo_AllocatedTaskResources.Merge(m, src) 2295 } 2296 func (m *AllocatedTaskResources) XXX_Size() int { 2297 return xxx_messageInfo_AllocatedTaskResources.Size(m) 2298 } 2299 func (m *AllocatedTaskResources) XXX_DiscardUnknown() { 2300 xxx_messageInfo_AllocatedTaskResources.DiscardUnknown(m) 2301 } 2302 2303 var xxx_messageInfo_AllocatedTaskResources proto.InternalMessageInfo 2304 2305 func (m *AllocatedTaskResources) GetCpu() *AllocatedCpuResources { 2306 if m != nil { 2307 return m.Cpu 2308 } 2309 return nil 2310 } 2311 2312 func (m *AllocatedTaskResources) GetMemory() *AllocatedMemoryResources { 2313 if m != nil { 2314 return m.Memory 2315 } 2316 return nil 2317 } 2318 2319 func (m *AllocatedTaskResources) GetNetworks() []*NetworkResource { 2320 if m != nil { 2321 return m.Networks 2322 } 2323 return nil 2324 } 2325 2326 type AllocatedCpuResources struct { 2327 CpuShares int64 `protobuf:"varint,1,opt,name=cpu_shares,json=cpuShares,proto3" json:"cpu_shares,omitempty"` 2328 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2329 XXX_unrecognized []byte `json:"-"` 2330 XXX_sizecache int32 `json:"-"` 2331 } 2332 2333 func (m *AllocatedCpuResources) Reset() { *m = AllocatedCpuResources{} } 2334 func (m *AllocatedCpuResources) String() string { return proto.CompactTextString(m) } 2335 func (*AllocatedCpuResources) ProtoMessage() {} 2336 func (*AllocatedCpuResources) Descriptor() ([]byte, []int) { 2337 return fileDescriptor_4a8f45747846a74d, []int{38} 2338 } 2339 2340 func (m *AllocatedCpuResources) XXX_Unmarshal(b []byte) error { 2341 return xxx_messageInfo_AllocatedCpuResources.Unmarshal(m, b) 2342 } 2343 func (m *AllocatedCpuResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2344 return xxx_messageInfo_AllocatedCpuResources.Marshal(b, m, deterministic) 2345 } 2346 func (m *AllocatedCpuResources) XXX_Merge(src proto.Message) { 2347 xxx_messageInfo_AllocatedCpuResources.Merge(m, src) 2348 } 2349 func (m *AllocatedCpuResources) XXX_Size() int { 2350 return xxx_messageInfo_AllocatedCpuResources.Size(m) 2351 } 2352 func (m *AllocatedCpuResources) XXX_DiscardUnknown() { 2353 xxx_messageInfo_AllocatedCpuResources.DiscardUnknown(m) 2354 } 2355 2356 var xxx_messageInfo_AllocatedCpuResources proto.InternalMessageInfo 2357 2358 func (m *AllocatedCpuResources) GetCpuShares() int64 { 2359 if m != nil { 2360 return m.CpuShares 2361 } 2362 return 0 2363 } 2364 2365 type AllocatedMemoryResources struct { 2366 MemoryMb int64 `protobuf:"varint,2,opt,name=memory_mb,json=memoryMb,proto3" json:"memory_mb,omitempty"` 2367 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2368 XXX_unrecognized []byte `json:"-"` 2369 XXX_sizecache int32 `json:"-"` 2370 } 2371 2372 func (m *AllocatedMemoryResources) Reset() { *m = AllocatedMemoryResources{} } 2373 func (m *AllocatedMemoryResources) String() string { return proto.CompactTextString(m) } 2374 func (*AllocatedMemoryResources) ProtoMessage() {} 2375 func (*AllocatedMemoryResources) Descriptor() ([]byte, []int) { 2376 return fileDescriptor_4a8f45747846a74d, []int{39} 2377 } 2378 2379 func (m *AllocatedMemoryResources) XXX_Unmarshal(b []byte) error { 2380 return xxx_messageInfo_AllocatedMemoryResources.Unmarshal(m, b) 2381 } 2382 func (m *AllocatedMemoryResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2383 return xxx_messageInfo_AllocatedMemoryResources.Marshal(b, m, deterministic) 2384 } 2385 func (m *AllocatedMemoryResources) XXX_Merge(src proto.Message) { 2386 xxx_messageInfo_AllocatedMemoryResources.Merge(m, src) 2387 } 2388 func (m *AllocatedMemoryResources) XXX_Size() int { 2389 return xxx_messageInfo_AllocatedMemoryResources.Size(m) 2390 } 2391 func (m *AllocatedMemoryResources) XXX_DiscardUnknown() { 2392 xxx_messageInfo_AllocatedMemoryResources.DiscardUnknown(m) 2393 } 2394 2395 var xxx_messageInfo_AllocatedMemoryResources proto.InternalMessageInfo 2396 2397 func (m *AllocatedMemoryResources) GetMemoryMb() int64 { 2398 if m != nil { 2399 return m.MemoryMb 2400 } 2401 return 0 2402 } 2403 2404 type NetworkResource struct { 2405 Device string `protobuf:"bytes,1,opt,name=device,proto3" json:"device,omitempty"` 2406 Cidr string `protobuf:"bytes,2,opt,name=cidr,proto3" json:"cidr,omitempty"` 2407 Ip string `protobuf:"bytes,3,opt,name=ip,proto3" json:"ip,omitempty"` 2408 Mbits int32 `protobuf:"varint,4,opt,name=mbits,proto3" json:"mbits,omitempty"` 2409 ReservedPorts []*NetworkPort `protobuf:"bytes,5,rep,name=reserved_ports,json=reservedPorts,proto3" json:"reserved_ports,omitempty"` 2410 DynamicPorts []*NetworkPort `protobuf:"bytes,6,rep,name=dynamic_ports,json=dynamicPorts,proto3" json:"dynamic_ports,omitempty"` 2411 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2412 XXX_unrecognized []byte `json:"-"` 2413 XXX_sizecache int32 `json:"-"` 2414 } 2415 2416 func (m *NetworkResource) Reset() { *m = NetworkResource{} } 2417 func (m *NetworkResource) String() string { return proto.CompactTextString(m) } 2418 func (*NetworkResource) ProtoMessage() {} 2419 func (*NetworkResource) Descriptor() ([]byte, []int) { 2420 return fileDescriptor_4a8f45747846a74d, []int{40} 2421 } 2422 2423 func (m *NetworkResource) XXX_Unmarshal(b []byte) error { 2424 return xxx_messageInfo_NetworkResource.Unmarshal(m, b) 2425 } 2426 func (m *NetworkResource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2427 return xxx_messageInfo_NetworkResource.Marshal(b, m, deterministic) 2428 } 2429 func (m *NetworkResource) XXX_Merge(src proto.Message) { 2430 xxx_messageInfo_NetworkResource.Merge(m, src) 2431 } 2432 func (m *NetworkResource) XXX_Size() int { 2433 return xxx_messageInfo_NetworkResource.Size(m) 2434 } 2435 func (m *NetworkResource) XXX_DiscardUnknown() { 2436 xxx_messageInfo_NetworkResource.DiscardUnknown(m) 2437 } 2438 2439 var xxx_messageInfo_NetworkResource proto.InternalMessageInfo 2440 2441 func (m *NetworkResource) GetDevice() string { 2442 if m != nil { 2443 return m.Device 2444 } 2445 return "" 2446 } 2447 2448 func (m *NetworkResource) GetCidr() string { 2449 if m != nil { 2450 return m.Cidr 2451 } 2452 return "" 2453 } 2454 2455 func (m *NetworkResource) GetIp() string { 2456 if m != nil { 2457 return m.Ip 2458 } 2459 return "" 2460 } 2461 2462 func (m *NetworkResource) GetMbits() int32 { 2463 if m != nil { 2464 return m.Mbits 2465 } 2466 return 0 2467 } 2468 2469 func (m *NetworkResource) GetReservedPorts() []*NetworkPort { 2470 if m != nil { 2471 return m.ReservedPorts 2472 } 2473 return nil 2474 } 2475 2476 func (m *NetworkResource) GetDynamicPorts() []*NetworkPort { 2477 if m != nil { 2478 return m.DynamicPorts 2479 } 2480 return nil 2481 } 2482 2483 type NetworkPort struct { 2484 Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` 2485 Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` 2486 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2487 XXX_unrecognized []byte `json:"-"` 2488 XXX_sizecache int32 `json:"-"` 2489 } 2490 2491 func (m *NetworkPort) Reset() { *m = NetworkPort{} } 2492 func (m *NetworkPort) String() string { return proto.CompactTextString(m) } 2493 func (*NetworkPort) ProtoMessage() {} 2494 func (*NetworkPort) Descriptor() ([]byte, []int) { 2495 return fileDescriptor_4a8f45747846a74d, []int{41} 2496 } 2497 2498 func (m *NetworkPort) XXX_Unmarshal(b []byte) error { 2499 return xxx_messageInfo_NetworkPort.Unmarshal(m, b) 2500 } 2501 func (m *NetworkPort) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2502 return xxx_messageInfo_NetworkPort.Marshal(b, m, deterministic) 2503 } 2504 func (m *NetworkPort) XXX_Merge(src proto.Message) { 2505 xxx_messageInfo_NetworkPort.Merge(m, src) 2506 } 2507 func (m *NetworkPort) XXX_Size() int { 2508 return xxx_messageInfo_NetworkPort.Size(m) 2509 } 2510 func (m *NetworkPort) XXX_DiscardUnknown() { 2511 xxx_messageInfo_NetworkPort.DiscardUnknown(m) 2512 } 2513 2514 var xxx_messageInfo_NetworkPort proto.InternalMessageInfo 2515 2516 func (m *NetworkPort) GetLabel() string { 2517 if m != nil { 2518 return m.Label 2519 } 2520 return "" 2521 } 2522 2523 func (m *NetworkPort) GetValue() int32 { 2524 if m != nil { 2525 return m.Value 2526 } 2527 return 0 2528 } 2529 2530 type PortMapping struct { 2531 Label string `protobuf:"bytes,1,opt,name=label,proto3" json:"label,omitempty"` 2532 Value int32 `protobuf:"varint,2,opt,name=value,proto3" json:"value,omitempty"` 2533 To int32 `protobuf:"varint,3,opt,name=to,proto3" json:"to,omitempty"` 2534 HostIp string `protobuf:"bytes,4,opt,name=host_ip,json=hostIp,proto3" json:"host_ip,omitempty"` 2535 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2536 XXX_unrecognized []byte `json:"-"` 2537 XXX_sizecache int32 `json:"-"` 2538 } 2539 2540 func (m *PortMapping) Reset() { *m = PortMapping{} } 2541 func (m *PortMapping) String() string { return proto.CompactTextString(m) } 2542 func (*PortMapping) ProtoMessage() {} 2543 func (*PortMapping) Descriptor() ([]byte, []int) { 2544 return fileDescriptor_4a8f45747846a74d, []int{42} 2545 } 2546 2547 func (m *PortMapping) XXX_Unmarshal(b []byte) error { 2548 return xxx_messageInfo_PortMapping.Unmarshal(m, b) 2549 } 2550 func (m *PortMapping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2551 return xxx_messageInfo_PortMapping.Marshal(b, m, deterministic) 2552 } 2553 func (m *PortMapping) XXX_Merge(src proto.Message) { 2554 xxx_messageInfo_PortMapping.Merge(m, src) 2555 } 2556 func (m *PortMapping) XXX_Size() int { 2557 return xxx_messageInfo_PortMapping.Size(m) 2558 } 2559 func (m *PortMapping) XXX_DiscardUnknown() { 2560 xxx_messageInfo_PortMapping.DiscardUnknown(m) 2561 } 2562 2563 var xxx_messageInfo_PortMapping proto.InternalMessageInfo 2564 2565 func (m *PortMapping) GetLabel() string { 2566 if m != nil { 2567 return m.Label 2568 } 2569 return "" 2570 } 2571 2572 func (m *PortMapping) GetValue() int32 { 2573 if m != nil { 2574 return m.Value 2575 } 2576 return 0 2577 } 2578 2579 func (m *PortMapping) GetTo() int32 { 2580 if m != nil { 2581 return m.To 2582 } 2583 return 0 2584 } 2585 2586 func (m *PortMapping) GetHostIp() string { 2587 if m != nil { 2588 return m.HostIp 2589 } 2590 return "" 2591 } 2592 2593 type LinuxResources struct { 2594 // CPU CFS (Completely Fair Scheduler) period. Default: 0 (not specified) 2595 CpuPeriod int64 `protobuf:"varint,1,opt,name=cpu_period,json=cpuPeriod,proto3" json:"cpu_period,omitempty"` 2596 // CPU CFS (Completely Fair Scheduler) quota. Default: 0 (not specified) 2597 CpuQuota int64 `protobuf:"varint,2,opt,name=cpu_quota,json=cpuQuota,proto3" json:"cpu_quota,omitempty"` 2598 // CPU shares (relative weight vs. other containers). Default: 0 (not specified) 2599 CpuShares int64 `protobuf:"varint,3,opt,name=cpu_shares,json=cpuShares,proto3" json:"cpu_shares,omitempty"` 2600 // Memory limit in bytes. Default: 0 (not specified) 2601 MemoryLimitBytes int64 `protobuf:"varint,4,opt,name=memory_limit_bytes,json=memoryLimitBytes,proto3" json:"memory_limit_bytes,omitempty"` 2602 // OOMScoreAdj adjusts the oom-killer score. Default: 0 (not specified) 2603 OomScoreAdj int64 `protobuf:"varint,5,opt,name=oom_score_adj,json=oomScoreAdj,proto3" json:"oom_score_adj,omitempty"` 2604 // CpusetCpus constrains the allowed set of logical CPUs. Default: "" (not specified) 2605 CpusetCpus string `protobuf:"bytes,6,opt,name=cpuset_cpus,json=cpusetCpus,proto3" json:"cpuset_cpus,omitempty"` 2606 // CpusetMems constrains the allowed set of memory nodes. Default: "" (not specified) 2607 CpusetMems string `protobuf:"bytes,7,opt,name=cpuset_mems,json=cpusetMems,proto3" json:"cpuset_mems,omitempty"` 2608 // PercentTicks is a compatibility option for docker and should not be used 2609 // buf:lint:ignore FIELD_LOWER_SNAKE_CASE 2610 PercentTicks float64 `protobuf:"fixed64,8,opt,name=PercentTicks,proto3" json:"PercentTicks,omitempty"` 2611 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2612 XXX_unrecognized []byte `json:"-"` 2613 XXX_sizecache int32 `json:"-"` 2614 } 2615 2616 func (m *LinuxResources) Reset() { *m = LinuxResources{} } 2617 func (m *LinuxResources) String() string { return proto.CompactTextString(m) } 2618 func (*LinuxResources) ProtoMessage() {} 2619 func (*LinuxResources) Descriptor() ([]byte, []int) { 2620 return fileDescriptor_4a8f45747846a74d, []int{43} 2621 } 2622 2623 func (m *LinuxResources) XXX_Unmarshal(b []byte) error { 2624 return xxx_messageInfo_LinuxResources.Unmarshal(m, b) 2625 } 2626 func (m *LinuxResources) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2627 return xxx_messageInfo_LinuxResources.Marshal(b, m, deterministic) 2628 } 2629 func (m *LinuxResources) XXX_Merge(src proto.Message) { 2630 xxx_messageInfo_LinuxResources.Merge(m, src) 2631 } 2632 func (m *LinuxResources) XXX_Size() int { 2633 return xxx_messageInfo_LinuxResources.Size(m) 2634 } 2635 func (m *LinuxResources) XXX_DiscardUnknown() { 2636 xxx_messageInfo_LinuxResources.DiscardUnknown(m) 2637 } 2638 2639 var xxx_messageInfo_LinuxResources proto.InternalMessageInfo 2640 2641 func (m *LinuxResources) GetCpuPeriod() int64 { 2642 if m != nil { 2643 return m.CpuPeriod 2644 } 2645 return 0 2646 } 2647 2648 func (m *LinuxResources) GetCpuQuota() int64 { 2649 if m != nil { 2650 return m.CpuQuota 2651 } 2652 return 0 2653 } 2654 2655 func (m *LinuxResources) GetCpuShares() int64 { 2656 if m != nil { 2657 return m.CpuShares 2658 } 2659 return 0 2660 } 2661 2662 func (m *LinuxResources) GetMemoryLimitBytes() int64 { 2663 if m != nil { 2664 return m.MemoryLimitBytes 2665 } 2666 return 0 2667 } 2668 2669 func (m *LinuxResources) GetOomScoreAdj() int64 { 2670 if m != nil { 2671 return m.OomScoreAdj 2672 } 2673 return 0 2674 } 2675 2676 func (m *LinuxResources) GetCpusetCpus() string { 2677 if m != nil { 2678 return m.CpusetCpus 2679 } 2680 return "" 2681 } 2682 2683 func (m *LinuxResources) GetCpusetMems() string { 2684 if m != nil { 2685 return m.CpusetMems 2686 } 2687 return "" 2688 } 2689 2690 func (m *LinuxResources) GetPercentTicks() float64 { 2691 if m != nil { 2692 return m.PercentTicks 2693 } 2694 return 0 2695 } 2696 2697 type Mount struct { 2698 // TaskPath is the file path within the task directory to mount to 2699 TaskPath string `protobuf:"bytes,1,opt,name=task_path,json=taskPath,proto3" json:"task_path,omitempty"` 2700 // HostPath is the file path on the host to mount from 2701 HostPath string `protobuf:"bytes,2,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` 2702 // Readonly if set true, mounts the path in readonly mode 2703 Readonly bool `protobuf:"varint,3,opt,name=readonly,proto3" json:"readonly,omitempty"` 2704 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2705 XXX_unrecognized []byte `json:"-"` 2706 XXX_sizecache int32 `json:"-"` 2707 } 2708 2709 func (m *Mount) Reset() { *m = Mount{} } 2710 func (m *Mount) String() string { return proto.CompactTextString(m) } 2711 func (*Mount) ProtoMessage() {} 2712 func (*Mount) Descriptor() ([]byte, []int) { 2713 return fileDescriptor_4a8f45747846a74d, []int{44} 2714 } 2715 2716 func (m *Mount) XXX_Unmarshal(b []byte) error { 2717 return xxx_messageInfo_Mount.Unmarshal(m, b) 2718 } 2719 func (m *Mount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2720 return xxx_messageInfo_Mount.Marshal(b, m, deterministic) 2721 } 2722 func (m *Mount) XXX_Merge(src proto.Message) { 2723 xxx_messageInfo_Mount.Merge(m, src) 2724 } 2725 func (m *Mount) XXX_Size() int { 2726 return xxx_messageInfo_Mount.Size(m) 2727 } 2728 func (m *Mount) XXX_DiscardUnknown() { 2729 xxx_messageInfo_Mount.DiscardUnknown(m) 2730 } 2731 2732 var xxx_messageInfo_Mount proto.InternalMessageInfo 2733 2734 func (m *Mount) GetTaskPath() string { 2735 if m != nil { 2736 return m.TaskPath 2737 } 2738 return "" 2739 } 2740 2741 func (m *Mount) GetHostPath() string { 2742 if m != nil { 2743 return m.HostPath 2744 } 2745 return "" 2746 } 2747 2748 func (m *Mount) GetReadonly() bool { 2749 if m != nil { 2750 return m.Readonly 2751 } 2752 return false 2753 } 2754 2755 type Device struct { 2756 // TaskPath is the file path within the task to mount the device to 2757 TaskPath string `protobuf:"bytes,1,opt,name=task_path,json=taskPath,proto3" json:"task_path,omitempty"` 2758 // HostPath is the path on the host to the source device 2759 HostPath string `protobuf:"bytes,2,opt,name=host_path,json=hostPath,proto3" json:"host_path,omitempty"` 2760 // CgroupPermissions defines the Cgroup permissions of the device. 2761 // One or more of the following options can be set: 2762 // * r - allows the task to read from the specified device. 2763 // * w - allows the task to write to the specified device. 2764 // * m - allows the task to create device files that do not yet exist. 2765 // 2766 // Example: "rw" 2767 CgroupPermissions string `protobuf:"bytes,3,opt,name=cgroup_permissions,json=cgroupPermissions,proto3" json:"cgroup_permissions,omitempty"` 2768 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2769 XXX_unrecognized []byte `json:"-"` 2770 XXX_sizecache int32 `json:"-"` 2771 } 2772 2773 func (m *Device) Reset() { *m = Device{} } 2774 func (m *Device) String() string { return proto.CompactTextString(m) } 2775 func (*Device) ProtoMessage() {} 2776 func (*Device) Descriptor() ([]byte, []int) { 2777 return fileDescriptor_4a8f45747846a74d, []int{45} 2778 } 2779 2780 func (m *Device) XXX_Unmarshal(b []byte) error { 2781 return xxx_messageInfo_Device.Unmarshal(m, b) 2782 } 2783 func (m *Device) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2784 return xxx_messageInfo_Device.Marshal(b, m, deterministic) 2785 } 2786 func (m *Device) XXX_Merge(src proto.Message) { 2787 xxx_messageInfo_Device.Merge(m, src) 2788 } 2789 func (m *Device) XXX_Size() int { 2790 return xxx_messageInfo_Device.Size(m) 2791 } 2792 func (m *Device) XXX_DiscardUnknown() { 2793 xxx_messageInfo_Device.DiscardUnknown(m) 2794 } 2795 2796 var xxx_messageInfo_Device proto.InternalMessageInfo 2797 2798 func (m *Device) GetTaskPath() string { 2799 if m != nil { 2800 return m.TaskPath 2801 } 2802 return "" 2803 } 2804 2805 func (m *Device) GetHostPath() string { 2806 if m != nil { 2807 return m.HostPath 2808 } 2809 return "" 2810 } 2811 2812 func (m *Device) GetCgroupPermissions() string { 2813 if m != nil { 2814 return m.CgroupPermissions 2815 } 2816 return "" 2817 } 2818 2819 // TaskHandle is created when starting a task and is used to recover task 2820 type TaskHandle struct { 2821 // Version is used by the driver to version the DriverState schema. 2822 // Version 0 is reserved by Nomad and should not be used. 2823 Version int32 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` 2824 // Config is the TaskConfig for the task 2825 Config *TaskConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` 2826 // State is the state of the task's execution 2827 State TaskState `protobuf:"varint,3,opt,name=state,proto3,enum=hashicorp.nomad.plugins.drivers.proto.TaskState" json:"state,omitempty"` 2828 // DriverState is the encoded state for the specific driver 2829 DriverState []byte `protobuf:"bytes,4,opt,name=driver_state,json=driverState,proto3" json:"driver_state,omitempty"` 2830 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2831 XXX_unrecognized []byte `json:"-"` 2832 XXX_sizecache int32 `json:"-"` 2833 } 2834 2835 func (m *TaskHandle) Reset() { *m = TaskHandle{} } 2836 func (m *TaskHandle) String() string { return proto.CompactTextString(m) } 2837 func (*TaskHandle) ProtoMessage() {} 2838 func (*TaskHandle) Descriptor() ([]byte, []int) { 2839 return fileDescriptor_4a8f45747846a74d, []int{46} 2840 } 2841 2842 func (m *TaskHandle) XXX_Unmarshal(b []byte) error { 2843 return xxx_messageInfo_TaskHandle.Unmarshal(m, b) 2844 } 2845 func (m *TaskHandle) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2846 return xxx_messageInfo_TaskHandle.Marshal(b, m, deterministic) 2847 } 2848 func (m *TaskHandle) XXX_Merge(src proto.Message) { 2849 xxx_messageInfo_TaskHandle.Merge(m, src) 2850 } 2851 func (m *TaskHandle) XXX_Size() int { 2852 return xxx_messageInfo_TaskHandle.Size(m) 2853 } 2854 func (m *TaskHandle) XXX_DiscardUnknown() { 2855 xxx_messageInfo_TaskHandle.DiscardUnknown(m) 2856 } 2857 2858 var xxx_messageInfo_TaskHandle proto.InternalMessageInfo 2859 2860 func (m *TaskHandle) GetVersion() int32 { 2861 if m != nil { 2862 return m.Version 2863 } 2864 return 0 2865 } 2866 2867 func (m *TaskHandle) GetConfig() *TaskConfig { 2868 if m != nil { 2869 return m.Config 2870 } 2871 return nil 2872 } 2873 2874 func (m *TaskHandle) GetState() TaskState { 2875 if m != nil { 2876 return m.State 2877 } 2878 return TaskState_UNKNOWN 2879 } 2880 2881 func (m *TaskHandle) GetDriverState() []byte { 2882 if m != nil { 2883 return m.DriverState 2884 } 2885 return nil 2886 } 2887 2888 // NetworkOverride contains network settings which the driver may override 2889 // for the task, such as when the driver is setting up the task's network. 2890 type NetworkOverride struct { 2891 // PortMap can be set to replace ports with driver-specific mappings 2892 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"` 2893 // Addr is the IP address for the task created by the driver 2894 Addr string `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"` 2895 // AutoAdvertise indicates whether the driver thinks services that choose 2896 // to auto_advertise_addresses should use this IP instead of the host's. 2897 AutoAdvertise bool `protobuf:"varint,3,opt,name=auto_advertise,json=autoAdvertise,proto3" json:"auto_advertise,omitempty"` 2898 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2899 XXX_unrecognized []byte `json:"-"` 2900 XXX_sizecache int32 `json:"-"` 2901 } 2902 2903 func (m *NetworkOverride) Reset() { *m = NetworkOverride{} } 2904 func (m *NetworkOverride) String() string { return proto.CompactTextString(m) } 2905 func (*NetworkOverride) ProtoMessage() {} 2906 func (*NetworkOverride) Descriptor() ([]byte, []int) { 2907 return fileDescriptor_4a8f45747846a74d, []int{47} 2908 } 2909 2910 func (m *NetworkOverride) XXX_Unmarshal(b []byte) error { 2911 return xxx_messageInfo_NetworkOverride.Unmarshal(m, b) 2912 } 2913 func (m *NetworkOverride) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2914 return xxx_messageInfo_NetworkOverride.Marshal(b, m, deterministic) 2915 } 2916 func (m *NetworkOverride) XXX_Merge(src proto.Message) { 2917 xxx_messageInfo_NetworkOverride.Merge(m, src) 2918 } 2919 func (m *NetworkOverride) XXX_Size() int { 2920 return xxx_messageInfo_NetworkOverride.Size(m) 2921 } 2922 func (m *NetworkOverride) XXX_DiscardUnknown() { 2923 xxx_messageInfo_NetworkOverride.DiscardUnknown(m) 2924 } 2925 2926 var xxx_messageInfo_NetworkOverride proto.InternalMessageInfo 2927 2928 func (m *NetworkOverride) GetPortMap() map[string]int32 { 2929 if m != nil { 2930 return m.PortMap 2931 } 2932 return nil 2933 } 2934 2935 func (m *NetworkOverride) GetAddr() string { 2936 if m != nil { 2937 return m.Addr 2938 } 2939 return "" 2940 } 2941 2942 func (m *NetworkOverride) GetAutoAdvertise() bool { 2943 if m != nil { 2944 return m.AutoAdvertise 2945 } 2946 return false 2947 } 2948 2949 // ExitResult contains information about the exit status of a task 2950 type ExitResult struct { 2951 // ExitCode returned from the task on exit 2952 ExitCode int32 `protobuf:"varint,1,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` 2953 // Signal is set if a signal was sent to the task 2954 Signal int32 `protobuf:"varint,2,opt,name=signal,proto3" json:"signal,omitempty"` 2955 // OomKilled is true if the task exited as a result of the OOM Killer 2956 OomKilled bool `protobuf:"varint,3,opt,name=oom_killed,json=oomKilled,proto3" json:"oom_killed,omitempty"` 2957 XXX_NoUnkeyedLiteral struct{} `json:"-"` 2958 XXX_unrecognized []byte `json:"-"` 2959 XXX_sizecache int32 `json:"-"` 2960 } 2961 2962 func (m *ExitResult) Reset() { *m = ExitResult{} } 2963 func (m *ExitResult) String() string { return proto.CompactTextString(m) } 2964 func (*ExitResult) ProtoMessage() {} 2965 func (*ExitResult) Descriptor() ([]byte, []int) { 2966 return fileDescriptor_4a8f45747846a74d, []int{48} 2967 } 2968 2969 func (m *ExitResult) XXX_Unmarshal(b []byte) error { 2970 return xxx_messageInfo_ExitResult.Unmarshal(m, b) 2971 } 2972 func (m *ExitResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 2973 return xxx_messageInfo_ExitResult.Marshal(b, m, deterministic) 2974 } 2975 func (m *ExitResult) XXX_Merge(src proto.Message) { 2976 xxx_messageInfo_ExitResult.Merge(m, src) 2977 } 2978 func (m *ExitResult) XXX_Size() int { 2979 return xxx_messageInfo_ExitResult.Size(m) 2980 } 2981 func (m *ExitResult) XXX_DiscardUnknown() { 2982 xxx_messageInfo_ExitResult.DiscardUnknown(m) 2983 } 2984 2985 var xxx_messageInfo_ExitResult proto.InternalMessageInfo 2986 2987 func (m *ExitResult) GetExitCode() int32 { 2988 if m != nil { 2989 return m.ExitCode 2990 } 2991 return 0 2992 } 2993 2994 func (m *ExitResult) GetSignal() int32 { 2995 if m != nil { 2996 return m.Signal 2997 } 2998 return 0 2999 } 3000 3001 func (m *ExitResult) GetOomKilled() bool { 3002 if m != nil { 3003 return m.OomKilled 3004 } 3005 return false 3006 } 3007 3008 // TaskStatus includes information of a specific task 3009 type TaskStatus struct { 3010 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 3011 Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` 3012 // State is the state of the task's execution 3013 State TaskState `protobuf:"varint,3,opt,name=state,proto3,enum=hashicorp.nomad.plugins.drivers.proto.TaskState" json:"state,omitempty"` 3014 // StartedAt is the timestamp when the task was started 3015 StartedAt *timestamp.Timestamp `protobuf:"bytes,4,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` 3016 // CompletedAt is the timestamp when the task exited. 3017 // If the task is still running, CompletedAt will not be set 3018 CompletedAt *timestamp.Timestamp `protobuf:"bytes,5,opt,name=completed_at,json=completedAt,proto3" json:"completed_at,omitempty"` 3019 // Result is set when CompletedAt is set. 3020 Result *ExitResult `protobuf:"bytes,6,opt,name=result,proto3" json:"result,omitempty"` 3021 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3022 XXX_unrecognized []byte `json:"-"` 3023 XXX_sizecache int32 `json:"-"` 3024 } 3025 3026 func (m *TaskStatus) Reset() { *m = TaskStatus{} } 3027 func (m *TaskStatus) String() string { return proto.CompactTextString(m) } 3028 func (*TaskStatus) ProtoMessage() {} 3029 func (*TaskStatus) Descriptor() ([]byte, []int) { 3030 return fileDescriptor_4a8f45747846a74d, []int{49} 3031 } 3032 3033 func (m *TaskStatus) XXX_Unmarshal(b []byte) error { 3034 return xxx_messageInfo_TaskStatus.Unmarshal(m, b) 3035 } 3036 func (m *TaskStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3037 return xxx_messageInfo_TaskStatus.Marshal(b, m, deterministic) 3038 } 3039 func (m *TaskStatus) XXX_Merge(src proto.Message) { 3040 xxx_messageInfo_TaskStatus.Merge(m, src) 3041 } 3042 func (m *TaskStatus) XXX_Size() int { 3043 return xxx_messageInfo_TaskStatus.Size(m) 3044 } 3045 func (m *TaskStatus) XXX_DiscardUnknown() { 3046 xxx_messageInfo_TaskStatus.DiscardUnknown(m) 3047 } 3048 3049 var xxx_messageInfo_TaskStatus proto.InternalMessageInfo 3050 3051 func (m *TaskStatus) GetId() string { 3052 if m != nil { 3053 return m.Id 3054 } 3055 return "" 3056 } 3057 3058 func (m *TaskStatus) GetName() string { 3059 if m != nil { 3060 return m.Name 3061 } 3062 return "" 3063 } 3064 3065 func (m *TaskStatus) GetState() TaskState { 3066 if m != nil { 3067 return m.State 3068 } 3069 return TaskState_UNKNOWN 3070 } 3071 3072 func (m *TaskStatus) GetStartedAt() *timestamp.Timestamp { 3073 if m != nil { 3074 return m.StartedAt 3075 } 3076 return nil 3077 } 3078 3079 func (m *TaskStatus) GetCompletedAt() *timestamp.Timestamp { 3080 if m != nil { 3081 return m.CompletedAt 3082 } 3083 return nil 3084 } 3085 3086 func (m *TaskStatus) GetResult() *ExitResult { 3087 if m != nil { 3088 return m.Result 3089 } 3090 return nil 3091 } 3092 3093 type TaskDriverStatus struct { 3094 // Attributes is a set of string/string key value pairs specific to the 3095 // implementing driver 3096 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"` 3097 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3098 XXX_unrecognized []byte `json:"-"` 3099 XXX_sizecache int32 `json:"-"` 3100 } 3101 3102 func (m *TaskDriverStatus) Reset() { *m = TaskDriverStatus{} } 3103 func (m *TaskDriverStatus) String() string { return proto.CompactTextString(m) } 3104 func (*TaskDriverStatus) ProtoMessage() {} 3105 func (*TaskDriverStatus) Descriptor() ([]byte, []int) { 3106 return fileDescriptor_4a8f45747846a74d, []int{50} 3107 } 3108 3109 func (m *TaskDriverStatus) XXX_Unmarshal(b []byte) error { 3110 return xxx_messageInfo_TaskDriverStatus.Unmarshal(m, b) 3111 } 3112 func (m *TaskDriverStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3113 return xxx_messageInfo_TaskDriverStatus.Marshal(b, m, deterministic) 3114 } 3115 func (m *TaskDriverStatus) XXX_Merge(src proto.Message) { 3116 xxx_messageInfo_TaskDriverStatus.Merge(m, src) 3117 } 3118 func (m *TaskDriverStatus) XXX_Size() int { 3119 return xxx_messageInfo_TaskDriverStatus.Size(m) 3120 } 3121 func (m *TaskDriverStatus) XXX_DiscardUnknown() { 3122 xxx_messageInfo_TaskDriverStatus.DiscardUnknown(m) 3123 } 3124 3125 var xxx_messageInfo_TaskDriverStatus proto.InternalMessageInfo 3126 3127 func (m *TaskDriverStatus) GetAttributes() map[string]string { 3128 if m != nil { 3129 return m.Attributes 3130 } 3131 return nil 3132 } 3133 3134 type TaskStats struct { 3135 // Id of the task 3136 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 3137 // Timestamp for which the stats were collected 3138 Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 3139 // AggResourceUsage is the aggreate usage of all processes 3140 AggResourceUsage *TaskResourceUsage `protobuf:"bytes,3,opt,name=agg_resource_usage,json=aggResourceUsage,proto3" json:"agg_resource_usage,omitempty"` 3141 // ResourceUsageByPid breaks the usage stats by process 3142 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"` 3143 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3144 XXX_unrecognized []byte `json:"-"` 3145 XXX_sizecache int32 `json:"-"` 3146 } 3147 3148 func (m *TaskStats) Reset() { *m = TaskStats{} } 3149 func (m *TaskStats) String() string { return proto.CompactTextString(m) } 3150 func (*TaskStats) ProtoMessage() {} 3151 func (*TaskStats) Descriptor() ([]byte, []int) { 3152 return fileDescriptor_4a8f45747846a74d, []int{51} 3153 } 3154 3155 func (m *TaskStats) XXX_Unmarshal(b []byte) error { 3156 return xxx_messageInfo_TaskStats.Unmarshal(m, b) 3157 } 3158 func (m *TaskStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3159 return xxx_messageInfo_TaskStats.Marshal(b, m, deterministic) 3160 } 3161 func (m *TaskStats) XXX_Merge(src proto.Message) { 3162 xxx_messageInfo_TaskStats.Merge(m, src) 3163 } 3164 func (m *TaskStats) XXX_Size() int { 3165 return xxx_messageInfo_TaskStats.Size(m) 3166 } 3167 func (m *TaskStats) XXX_DiscardUnknown() { 3168 xxx_messageInfo_TaskStats.DiscardUnknown(m) 3169 } 3170 3171 var xxx_messageInfo_TaskStats proto.InternalMessageInfo 3172 3173 func (m *TaskStats) GetId() string { 3174 if m != nil { 3175 return m.Id 3176 } 3177 return "" 3178 } 3179 3180 func (m *TaskStats) GetTimestamp() *timestamp.Timestamp { 3181 if m != nil { 3182 return m.Timestamp 3183 } 3184 return nil 3185 } 3186 3187 func (m *TaskStats) GetAggResourceUsage() *TaskResourceUsage { 3188 if m != nil { 3189 return m.AggResourceUsage 3190 } 3191 return nil 3192 } 3193 3194 func (m *TaskStats) GetResourceUsageByPid() map[string]*TaskResourceUsage { 3195 if m != nil { 3196 return m.ResourceUsageByPid 3197 } 3198 return nil 3199 } 3200 3201 type TaskResourceUsage struct { 3202 // CPU usage stats 3203 Cpu *CPUUsage `protobuf:"bytes,1,opt,name=cpu,proto3" json:"cpu,omitempty"` 3204 // Memory usage stats 3205 Memory *MemoryUsage `protobuf:"bytes,2,opt,name=memory,proto3" json:"memory,omitempty"` 3206 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3207 XXX_unrecognized []byte `json:"-"` 3208 XXX_sizecache int32 `json:"-"` 3209 } 3210 3211 func (m *TaskResourceUsage) Reset() { *m = TaskResourceUsage{} } 3212 func (m *TaskResourceUsage) String() string { return proto.CompactTextString(m) } 3213 func (*TaskResourceUsage) ProtoMessage() {} 3214 func (*TaskResourceUsage) Descriptor() ([]byte, []int) { 3215 return fileDescriptor_4a8f45747846a74d, []int{52} 3216 } 3217 3218 func (m *TaskResourceUsage) XXX_Unmarshal(b []byte) error { 3219 return xxx_messageInfo_TaskResourceUsage.Unmarshal(m, b) 3220 } 3221 func (m *TaskResourceUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3222 return xxx_messageInfo_TaskResourceUsage.Marshal(b, m, deterministic) 3223 } 3224 func (m *TaskResourceUsage) XXX_Merge(src proto.Message) { 3225 xxx_messageInfo_TaskResourceUsage.Merge(m, src) 3226 } 3227 func (m *TaskResourceUsage) XXX_Size() int { 3228 return xxx_messageInfo_TaskResourceUsage.Size(m) 3229 } 3230 func (m *TaskResourceUsage) XXX_DiscardUnknown() { 3231 xxx_messageInfo_TaskResourceUsage.DiscardUnknown(m) 3232 } 3233 3234 var xxx_messageInfo_TaskResourceUsage proto.InternalMessageInfo 3235 3236 func (m *TaskResourceUsage) GetCpu() *CPUUsage { 3237 if m != nil { 3238 return m.Cpu 3239 } 3240 return nil 3241 } 3242 3243 func (m *TaskResourceUsage) GetMemory() *MemoryUsage { 3244 if m != nil { 3245 return m.Memory 3246 } 3247 return nil 3248 } 3249 3250 type CPUUsage struct { 3251 SystemMode float64 `protobuf:"fixed64,1,opt,name=system_mode,json=systemMode,proto3" json:"system_mode,omitempty"` 3252 UserMode float64 `protobuf:"fixed64,2,opt,name=user_mode,json=userMode,proto3" json:"user_mode,omitempty"` 3253 TotalTicks float64 `protobuf:"fixed64,3,opt,name=total_ticks,json=totalTicks,proto3" json:"total_ticks,omitempty"` 3254 ThrottledPeriods uint64 `protobuf:"varint,4,opt,name=throttled_periods,json=throttledPeriods,proto3" json:"throttled_periods,omitempty"` 3255 ThrottledTime uint64 `protobuf:"varint,5,opt,name=throttled_time,json=throttledTime,proto3" json:"throttled_time,omitempty"` 3256 Percent float64 `protobuf:"fixed64,6,opt,name=percent,proto3" json:"percent,omitempty"` 3257 // MeasuredFields indicates which fields were actually sampled 3258 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"` 3259 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3260 XXX_unrecognized []byte `json:"-"` 3261 XXX_sizecache int32 `json:"-"` 3262 } 3263 3264 func (m *CPUUsage) Reset() { *m = CPUUsage{} } 3265 func (m *CPUUsage) String() string { return proto.CompactTextString(m) } 3266 func (*CPUUsage) ProtoMessage() {} 3267 func (*CPUUsage) Descriptor() ([]byte, []int) { 3268 return fileDescriptor_4a8f45747846a74d, []int{53} 3269 } 3270 3271 func (m *CPUUsage) XXX_Unmarshal(b []byte) error { 3272 return xxx_messageInfo_CPUUsage.Unmarshal(m, b) 3273 } 3274 func (m *CPUUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3275 return xxx_messageInfo_CPUUsage.Marshal(b, m, deterministic) 3276 } 3277 func (m *CPUUsage) XXX_Merge(src proto.Message) { 3278 xxx_messageInfo_CPUUsage.Merge(m, src) 3279 } 3280 func (m *CPUUsage) XXX_Size() int { 3281 return xxx_messageInfo_CPUUsage.Size(m) 3282 } 3283 func (m *CPUUsage) XXX_DiscardUnknown() { 3284 xxx_messageInfo_CPUUsage.DiscardUnknown(m) 3285 } 3286 3287 var xxx_messageInfo_CPUUsage proto.InternalMessageInfo 3288 3289 func (m *CPUUsage) GetSystemMode() float64 { 3290 if m != nil { 3291 return m.SystemMode 3292 } 3293 return 0 3294 } 3295 3296 func (m *CPUUsage) GetUserMode() float64 { 3297 if m != nil { 3298 return m.UserMode 3299 } 3300 return 0 3301 } 3302 3303 func (m *CPUUsage) GetTotalTicks() float64 { 3304 if m != nil { 3305 return m.TotalTicks 3306 } 3307 return 0 3308 } 3309 3310 func (m *CPUUsage) GetThrottledPeriods() uint64 { 3311 if m != nil { 3312 return m.ThrottledPeriods 3313 } 3314 return 0 3315 } 3316 3317 func (m *CPUUsage) GetThrottledTime() uint64 { 3318 if m != nil { 3319 return m.ThrottledTime 3320 } 3321 return 0 3322 } 3323 3324 func (m *CPUUsage) GetPercent() float64 { 3325 if m != nil { 3326 return m.Percent 3327 } 3328 return 0 3329 } 3330 3331 func (m *CPUUsage) GetMeasuredFields() []CPUUsage_Fields { 3332 if m != nil { 3333 return m.MeasuredFields 3334 } 3335 return nil 3336 } 3337 3338 type MemoryUsage struct { 3339 Rss uint64 `protobuf:"varint,1,opt,name=rss,proto3" json:"rss,omitempty"` 3340 Cache uint64 `protobuf:"varint,2,opt,name=cache,proto3" json:"cache,omitempty"` 3341 MaxUsage uint64 `protobuf:"varint,3,opt,name=max_usage,json=maxUsage,proto3" json:"max_usage,omitempty"` 3342 KernelUsage uint64 `protobuf:"varint,4,opt,name=kernel_usage,json=kernelUsage,proto3" json:"kernel_usage,omitempty"` 3343 KernelMaxUsage uint64 `protobuf:"varint,5,opt,name=kernel_max_usage,json=kernelMaxUsage,proto3" json:"kernel_max_usage,omitempty"` 3344 Usage uint64 `protobuf:"varint,7,opt,name=usage,proto3" json:"usage,omitempty"` 3345 Swap uint64 `protobuf:"varint,8,opt,name=swap,proto3" json:"swap,omitempty"` 3346 // MeasuredFields indicates which fields were actually sampled 3347 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"` 3348 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3349 XXX_unrecognized []byte `json:"-"` 3350 XXX_sizecache int32 `json:"-"` 3351 } 3352 3353 func (m *MemoryUsage) Reset() { *m = MemoryUsage{} } 3354 func (m *MemoryUsage) String() string { return proto.CompactTextString(m) } 3355 func (*MemoryUsage) ProtoMessage() {} 3356 func (*MemoryUsage) Descriptor() ([]byte, []int) { 3357 return fileDescriptor_4a8f45747846a74d, []int{54} 3358 } 3359 3360 func (m *MemoryUsage) XXX_Unmarshal(b []byte) error { 3361 return xxx_messageInfo_MemoryUsage.Unmarshal(m, b) 3362 } 3363 func (m *MemoryUsage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3364 return xxx_messageInfo_MemoryUsage.Marshal(b, m, deterministic) 3365 } 3366 func (m *MemoryUsage) XXX_Merge(src proto.Message) { 3367 xxx_messageInfo_MemoryUsage.Merge(m, src) 3368 } 3369 func (m *MemoryUsage) XXX_Size() int { 3370 return xxx_messageInfo_MemoryUsage.Size(m) 3371 } 3372 func (m *MemoryUsage) XXX_DiscardUnknown() { 3373 xxx_messageInfo_MemoryUsage.DiscardUnknown(m) 3374 } 3375 3376 var xxx_messageInfo_MemoryUsage proto.InternalMessageInfo 3377 3378 func (m *MemoryUsage) GetRss() uint64 { 3379 if m != nil { 3380 return m.Rss 3381 } 3382 return 0 3383 } 3384 3385 func (m *MemoryUsage) GetCache() uint64 { 3386 if m != nil { 3387 return m.Cache 3388 } 3389 return 0 3390 } 3391 3392 func (m *MemoryUsage) GetMaxUsage() uint64 { 3393 if m != nil { 3394 return m.MaxUsage 3395 } 3396 return 0 3397 } 3398 3399 func (m *MemoryUsage) GetKernelUsage() uint64 { 3400 if m != nil { 3401 return m.KernelUsage 3402 } 3403 return 0 3404 } 3405 3406 func (m *MemoryUsage) GetKernelMaxUsage() uint64 { 3407 if m != nil { 3408 return m.KernelMaxUsage 3409 } 3410 return 0 3411 } 3412 3413 func (m *MemoryUsage) GetUsage() uint64 { 3414 if m != nil { 3415 return m.Usage 3416 } 3417 return 0 3418 } 3419 3420 func (m *MemoryUsage) GetSwap() uint64 { 3421 if m != nil { 3422 return m.Swap 3423 } 3424 return 0 3425 } 3426 3427 func (m *MemoryUsage) GetMeasuredFields() []MemoryUsage_Fields { 3428 if m != nil { 3429 return m.MeasuredFields 3430 } 3431 return nil 3432 } 3433 3434 type DriverTaskEvent struct { 3435 // TaskId is the id of the task for the event 3436 TaskId string `protobuf:"bytes,1,opt,name=task_id,json=taskId,proto3" json:"task_id,omitempty"` 3437 // AllocId of the task for the event 3438 AllocId string `protobuf:"bytes,2,opt,name=alloc_id,json=allocId,proto3" json:"alloc_id,omitempty"` 3439 // TaskName is the name of the task for the event 3440 TaskName string `protobuf:"bytes,3,opt,name=task_name,json=taskName,proto3" json:"task_name,omitempty"` 3441 // Timestamp when the event occurred 3442 Timestamp *timestamp.Timestamp `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 3443 // Message is the body of the event 3444 Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"` 3445 // Annotations allows for additional key/value data to be sent along with the event 3446 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"` 3447 XXX_NoUnkeyedLiteral struct{} `json:"-"` 3448 XXX_unrecognized []byte `json:"-"` 3449 XXX_sizecache int32 `json:"-"` 3450 } 3451 3452 func (m *DriverTaskEvent) Reset() { *m = DriverTaskEvent{} } 3453 func (m *DriverTaskEvent) String() string { return proto.CompactTextString(m) } 3454 func (*DriverTaskEvent) ProtoMessage() {} 3455 func (*DriverTaskEvent) Descriptor() ([]byte, []int) { 3456 return fileDescriptor_4a8f45747846a74d, []int{55} 3457 } 3458 3459 func (m *DriverTaskEvent) XXX_Unmarshal(b []byte) error { 3460 return xxx_messageInfo_DriverTaskEvent.Unmarshal(m, b) 3461 } 3462 func (m *DriverTaskEvent) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 3463 return xxx_messageInfo_DriverTaskEvent.Marshal(b, m, deterministic) 3464 } 3465 func (m *DriverTaskEvent) XXX_Merge(src proto.Message) { 3466 xxx_messageInfo_DriverTaskEvent.Merge(m, src) 3467 } 3468 func (m *DriverTaskEvent) XXX_Size() int { 3469 return xxx_messageInfo_DriverTaskEvent.Size(m) 3470 } 3471 func (m *DriverTaskEvent) XXX_DiscardUnknown() { 3472 xxx_messageInfo_DriverTaskEvent.DiscardUnknown(m) 3473 } 3474 3475 var xxx_messageInfo_DriverTaskEvent proto.InternalMessageInfo 3476 3477 func (m *DriverTaskEvent) GetTaskId() string { 3478 if m != nil { 3479 return m.TaskId 3480 } 3481 return "" 3482 } 3483 3484 func (m *DriverTaskEvent) GetAllocId() string { 3485 if m != nil { 3486 return m.AllocId 3487 } 3488 return "" 3489 } 3490 3491 func (m *DriverTaskEvent) GetTaskName() string { 3492 if m != nil { 3493 return m.TaskName 3494 } 3495 return "" 3496 } 3497 3498 func (m *DriverTaskEvent) GetTimestamp() *timestamp.Timestamp { 3499 if m != nil { 3500 return m.Timestamp 3501 } 3502 return nil 3503 } 3504 3505 func (m *DriverTaskEvent) GetMessage() string { 3506 if m != nil { 3507 return m.Message 3508 } 3509 return "" 3510 } 3511 3512 func (m *DriverTaskEvent) GetAnnotations() map[string]string { 3513 if m != nil { 3514 return m.Annotations 3515 } 3516 return nil 3517 } 3518 3519 func init() { 3520 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.TaskState", TaskState_name, TaskState_value) 3521 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.FingerprintResponse_HealthState", FingerprintResponse_HealthState_name, FingerprintResponse_HealthState_value) 3522 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.StartTaskResponse_Result", StartTaskResponse_Result_name, StartTaskResponse_Result_value) 3523 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.DriverCapabilities_FSIsolation", DriverCapabilities_FSIsolation_name, DriverCapabilities_FSIsolation_value) 3524 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.DriverCapabilities_MountConfigs", DriverCapabilities_MountConfigs_name, DriverCapabilities_MountConfigs_value) 3525 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.NetworkIsolationSpec_NetworkIsolationMode", NetworkIsolationSpec_NetworkIsolationMode_name, NetworkIsolationSpec_NetworkIsolationMode_value) 3526 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.CPUUsage_Fields", CPUUsage_Fields_name, CPUUsage_Fields_value) 3527 proto.RegisterEnum("hashicorp.nomad.plugins.drivers.proto.MemoryUsage_Fields", MemoryUsage_Fields_name, MemoryUsage_Fields_value) 3528 proto.RegisterType((*TaskConfigSchemaRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfigSchemaRequest") 3529 proto.RegisterType((*TaskConfigSchemaResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfigSchemaResponse") 3530 proto.RegisterType((*CapabilitiesRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.CapabilitiesRequest") 3531 proto.RegisterType((*CapabilitiesResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.CapabilitiesResponse") 3532 proto.RegisterType((*FingerprintRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.FingerprintRequest") 3533 proto.RegisterType((*FingerprintResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.FingerprintResponse") 3534 proto.RegisterMapType((map[string]*proto1.Attribute)(nil), "hashicorp.nomad.plugins.drivers.proto.FingerprintResponse.AttributesEntry") 3535 proto.RegisterType((*RecoverTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.RecoverTaskRequest") 3536 proto.RegisterType((*RecoverTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.RecoverTaskResponse") 3537 proto.RegisterType((*StartTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.StartTaskRequest") 3538 proto.RegisterType((*StartTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.StartTaskResponse") 3539 proto.RegisterType((*WaitTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.WaitTaskRequest") 3540 proto.RegisterType((*WaitTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.WaitTaskResponse") 3541 proto.RegisterType((*StopTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.StopTaskRequest") 3542 proto.RegisterType((*StopTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.StopTaskResponse") 3543 proto.RegisterType((*DestroyTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.DestroyTaskRequest") 3544 proto.RegisterType((*DestroyTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.DestroyTaskResponse") 3545 proto.RegisterType((*InspectTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.InspectTaskRequest") 3546 proto.RegisterType((*InspectTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.InspectTaskResponse") 3547 proto.RegisterType((*TaskStatsRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStatsRequest") 3548 proto.RegisterType((*TaskStatsResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStatsResponse") 3549 proto.RegisterType((*TaskEventsRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskEventsRequest") 3550 proto.RegisterType((*SignalTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.SignalTaskRequest") 3551 proto.RegisterType((*SignalTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.SignalTaskResponse") 3552 proto.RegisterType((*ExecTaskRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskRequest") 3553 proto.RegisterType((*ExecTaskResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskResponse") 3554 proto.RegisterType((*ExecTaskStreamingIOOperation)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingIOOperation") 3555 proto.RegisterType((*ExecTaskStreamingRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingRequest") 3556 proto.RegisterType((*ExecTaskStreamingRequest_Setup)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingRequest.Setup") 3557 proto.RegisterType((*ExecTaskStreamingRequest_TerminalSize)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingRequest.TerminalSize") 3558 proto.RegisterType((*ExecTaskStreamingResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.ExecTaskStreamingResponse") 3559 proto.RegisterType((*CreateNetworkRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.CreateNetworkRequest") 3560 proto.RegisterType((*CreateNetworkResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.CreateNetworkResponse") 3561 proto.RegisterType((*DestroyNetworkRequest)(nil), "hashicorp.nomad.plugins.drivers.proto.DestroyNetworkRequest") 3562 proto.RegisterType((*DestroyNetworkResponse)(nil), "hashicorp.nomad.plugins.drivers.proto.DestroyNetworkResponse") 3563 proto.RegisterType((*DriverCapabilities)(nil), "hashicorp.nomad.plugins.drivers.proto.DriverCapabilities") 3564 proto.RegisterType((*NetworkIsolationSpec)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkIsolationSpec") 3565 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkIsolationSpec.LabelsEntry") 3566 proto.RegisterType((*DNSConfig)(nil), "hashicorp.nomad.plugins.drivers.proto.DNSConfig") 3567 proto.RegisterType((*TaskConfig)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfig") 3568 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfig.DeviceEnvEntry") 3569 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskConfig.EnvEntry") 3570 proto.RegisterType((*Resources)(nil), "hashicorp.nomad.plugins.drivers.proto.Resources") 3571 proto.RegisterType((*AllocatedTaskResources)(nil), "hashicorp.nomad.plugins.drivers.proto.AllocatedTaskResources") 3572 proto.RegisterType((*AllocatedCpuResources)(nil), "hashicorp.nomad.plugins.drivers.proto.AllocatedCpuResources") 3573 proto.RegisterType((*AllocatedMemoryResources)(nil), "hashicorp.nomad.plugins.drivers.proto.AllocatedMemoryResources") 3574 proto.RegisterType((*NetworkResource)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkResource") 3575 proto.RegisterType((*NetworkPort)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkPort") 3576 proto.RegisterType((*PortMapping)(nil), "hashicorp.nomad.plugins.drivers.proto.PortMapping") 3577 proto.RegisterType((*LinuxResources)(nil), "hashicorp.nomad.plugins.drivers.proto.LinuxResources") 3578 proto.RegisterType((*Mount)(nil), "hashicorp.nomad.plugins.drivers.proto.Mount") 3579 proto.RegisterType((*Device)(nil), "hashicorp.nomad.plugins.drivers.proto.Device") 3580 proto.RegisterType((*TaskHandle)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskHandle") 3581 proto.RegisterType((*NetworkOverride)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkOverride") 3582 proto.RegisterMapType((map[string]int32)(nil), "hashicorp.nomad.plugins.drivers.proto.NetworkOverride.PortMapEntry") 3583 proto.RegisterType((*ExitResult)(nil), "hashicorp.nomad.plugins.drivers.proto.ExitResult") 3584 proto.RegisterType((*TaskStatus)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStatus") 3585 proto.RegisterType((*TaskDriverStatus)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskDriverStatus") 3586 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskDriverStatus.AttributesEntry") 3587 proto.RegisterType((*TaskStats)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStats") 3588 proto.RegisterMapType((map[string]*TaskResourceUsage)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskStats.ResourceUsageByPidEntry") 3589 proto.RegisterType((*TaskResourceUsage)(nil), "hashicorp.nomad.plugins.drivers.proto.TaskResourceUsage") 3590 proto.RegisterType((*CPUUsage)(nil), "hashicorp.nomad.plugins.drivers.proto.CPUUsage") 3591 proto.RegisterType((*MemoryUsage)(nil), "hashicorp.nomad.plugins.drivers.proto.MemoryUsage") 3592 proto.RegisterType((*DriverTaskEvent)(nil), "hashicorp.nomad.plugins.drivers.proto.DriverTaskEvent") 3593 proto.RegisterMapType((map[string]string)(nil), "hashicorp.nomad.plugins.drivers.proto.DriverTaskEvent.AnnotationsEntry") 3594 } 3595 3596 func init() { 3597 proto.RegisterFile("plugins/drivers/proto/driver.proto", fileDescriptor_4a8f45747846a74d) 3598 } 3599 3600 var fileDescriptor_4a8f45747846a74d = []byte{ 3601 // 3677 bytes of a gzipped FileDescriptorProto 3602 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x5a, 0x4f, 0x6f, 0x1b, 0x49, 3603 0x76, 0x57, 0xf3, 0x9f, 0xc8, 0x47, 0x89, 0x6a, 0x95, 0x65, 0x0f, 0xcd, 0x49, 0x32, 0xde, 0x06, 3604 0x26, 0x10, 0x76, 0x67, 0xe8, 0x19, 0x2d, 0x32, 0x1e, 0xcf, 0x7a, 0xd6, 0xc3, 0xa1, 0x68, 0x4b, 3605 0x63, 0x89, 0x54, 0x8a, 0x14, 0xbc, 0x8e, 0xb3, 0xd3, 0x69, 0x75, 0x97, 0xc9, 0xb6, 0xd8, 0x7f, 3606 0xdc, 0x5d, 0x94, 0xa5, 0x0d, 0x82, 0x04, 0x1b, 0x20, 0xd8, 0x00, 0x09, 0x92, 0xcb, 0x64, 0x2f, 3607 0x39, 0x6d, 0x90, 0x53, 0xbe, 0x40, 0x90, 0x60, 0xcf, 0xf9, 0x02, 0x39, 0xe6, 0x92, 0x5b, 0x2e, 3608 0x01, 0x92, 0x6f, 0xb0, 0xa8, 0x3f, 0xdd, 0xec, 0x26, 0xe9, 0x75, 0x93, 0xf2, 0x89, 0x7c, 0xaf, 3609 0xaa, 0x7e, 0xf5, 0xfa, 0xbd, 0x57, 0xf5, 0x5e, 0x55, 0x3d, 0xd0, 0xfc, 0xf1, 0x64, 0x68, 0xbb, 3610 0xe1, 0x5d, 0x2b, 0xb0, 0x2f, 0x48, 0x10, 0xde, 0xf5, 0x03, 0x8f, 0x7a, 0x92, 0x6a, 0x72, 0x02, 3611 0x7d, 0x38, 0x32, 0xc2, 0x91, 0x6d, 0x7a, 0x81, 0xdf, 0x74, 0x3d, 0xc7, 0xb0, 0x9a, 0x72, 0x4c, 3612 0x53, 0x8e, 0x11, 0xdd, 0x1a, 0xbf, 0x37, 0xf4, 0xbc, 0xe1, 0x98, 0x08, 0x84, 0xb3, 0xc9, 0x8b, 3613 0xbb, 0xd6, 0x24, 0x30, 0xa8, 0xed, 0xb9, 0xb2, 0xfd, 0x83, 0xd9, 0x76, 0x6a, 0x3b, 0x24, 0xa4, 3614 0x86, 0xe3, 0xcb, 0x0e, 0x1f, 0x46, 0xb2, 0x84, 0x23, 0x23, 0x20, 0xd6, 0xdd, 0x91, 0x39, 0x0e, 3615 0x7d, 0x62, 0xb2, 0x5f, 0x9d, 0xfd, 0x91, 0xdd, 0x3e, 0x9a, 0xe9, 0x16, 0xd2, 0x60, 0x62, 0xd2, 3616 0x48, 0x72, 0x83, 0xd2, 0xc0, 0x3e, 0x9b, 0x50, 0x22, 0x7a, 0x6b, 0xb7, 0xe1, 0xbd, 0x81, 0x11, 3617 0x9e, 0xb7, 0x3d, 0xf7, 0x85, 0x3d, 0xec, 0x9b, 0x23, 0xe2, 0x18, 0x98, 0xbc, 0x9a, 0x90, 0x90, 3618 0x6a, 0x7f, 0x0c, 0xf5, 0xf9, 0xa6, 0xd0, 0xf7, 0xdc, 0x90, 0xa0, 0xaf, 0xa0, 0xc0, 0xa6, 0xac, 3619 0x2b, 0x77, 0x94, 0xdd, 0xea, 0xde, 0x47, 0xcd, 0x37, 0xa9, 0x40, 0xc8, 0xd0, 0x94, 0xa2, 0x36, 3620 0xfb, 0x3e, 0x31, 0x31, 0x1f, 0xa9, 0xdd, 0x84, 0x1b, 0x6d, 0xc3, 0x37, 0xce, 0xec, 0xb1, 0x4d, 3621 0x6d, 0x12, 0x46, 0x93, 0x4e, 0x60, 0x27, 0xcd, 0x96, 0x13, 0xfe, 0x14, 0x36, 0xcc, 0x04, 0x5f, 3622 0x4e, 0x7c, 0xbf, 0x99, 0x49, 0xf7, 0xcd, 0x7d, 0x4e, 0xa5, 0x80, 0x53, 0x70, 0xda, 0x0e, 0xa0, 3623 0x47, 0xb6, 0x3b, 0x24, 0x81, 0x1f, 0xd8, 0x2e, 0x8d, 0x84, 0xf9, 0x75, 0x1e, 0x6e, 0xa4, 0xd8, 3624 0x52, 0x98, 0x97, 0x00, 0xb1, 0x1e, 0x99, 0x28, 0xf9, 0xdd, 0xea, 0xde, 0x37, 0x19, 0x45, 0x59, 3625 0x80, 0xd7, 0x6c, 0xc5, 0x60, 0x1d, 0x97, 0x06, 0x57, 0x38, 0x81, 0x8e, 0xbe, 0x85, 0xd2, 0x88, 3626 0x18, 0x63, 0x3a, 0xaa, 0xe7, 0xee, 0x28, 0xbb, 0xb5, 0xbd, 0x47, 0xd7, 0x98, 0xe7, 0x80, 0x03, 3627 0xf5, 0xa9, 0x41, 0x09, 0x96, 0xa8, 0xe8, 0x63, 0x40, 0xe2, 0x9f, 0x6e, 0x91, 0xd0, 0x0c, 0x6c, 3628 0x9f, 0xb9, 0x64, 0x3d, 0x7f, 0x47, 0xd9, 0xad, 0xe0, 0x6d, 0xd1, 0xb2, 0x3f, 0x6d, 0x68, 0xf8, 3629 0xb0, 0x35, 0x23, 0x2d, 0x52, 0x21, 0x7f, 0x4e, 0xae, 0xb8, 0x45, 0x2a, 0x98, 0xfd, 0x45, 0x8f, 3630 0xa1, 0x78, 0x61, 0x8c, 0x27, 0x84, 0x8b, 0x5c, 0xdd, 0xfb, 0xf4, 0x6d, 0xee, 0x21, 0x5d, 0x74, 3631 0xaa, 0x07, 0x2c, 0xc6, 0x7f, 0x91, 0xfb, 0x5c, 0xd1, 0xee, 0x43, 0x35, 0x21, 0x37, 0xaa, 0x01, 3632 0x9c, 0x76, 0xf7, 0x3b, 0x83, 0x4e, 0x7b, 0xd0, 0xd9, 0x57, 0xd7, 0xd0, 0x26, 0x54, 0x4e, 0xbb, 3633 0x07, 0x9d, 0xd6, 0xd1, 0xe0, 0xe0, 0x99, 0xaa, 0xa0, 0x2a, 0xac, 0x47, 0x44, 0x4e, 0xbb, 0x04, 3634 0x84, 0x89, 0xe9, 0x5d, 0x90, 0x80, 0x39, 0xb2, 0xb4, 0x2a, 0x7a, 0x0f, 0xd6, 0xa9, 0x11, 0x9e, 3635 0xeb, 0xb6, 0x25, 0x65, 0x2e, 0x31, 0xf2, 0xd0, 0x42, 0x87, 0x50, 0x1a, 0x19, 0xae, 0x35, 0x7e, 3636 0xbb, 0xdc, 0x69, 0x55, 0x33, 0xf0, 0x03, 0x3e, 0x10, 0x4b, 0x00, 0xe6, 0xdd, 0xa9, 0x99, 0x85, 3637 0x01, 0xb4, 0x67, 0xa0, 0xf6, 0xa9, 0x11, 0xd0, 0xa4, 0x38, 0x1d, 0x28, 0xb0, 0xf9, 0xa5, 0x47, 3638 0x2f, 0x33, 0xa7, 0x58, 0x99, 0x98, 0x0f, 0xd7, 0xfe, 0x3f, 0x07, 0xdb, 0x09, 0x6c, 0xe9, 0xa9, 3639 0x4f, 0xa1, 0x14, 0x90, 0x70, 0x32, 0xa6, 0x1c, 0xbe, 0xb6, 0xf7, 0x30, 0x23, 0xfc, 0x1c, 0x52, 3640 0x13, 0x73, 0x18, 0x2c, 0xe1, 0xd0, 0x2e, 0xa8, 0x62, 0x84, 0x4e, 0x82, 0xc0, 0x0b, 0x74, 0x27, 3641 0x1c, 0x72, 0xad, 0x55, 0x70, 0x4d, 0xf0, 0x3b, 0x8c, 0x7d, 0x1c, 0x0e, 0x13, 0x5a, 0xcd, 0x5f, 3642 0x53, 0xab, 0xc8, 0x00, 0xd5, 0x25, 0xf4, 0xb5, 0x17, 0x9c, 0xeb, 0x4c, 0xb5, 0x81, 0x6d, 0x91, 3643 0x7a, 0x81, 0x83, 0x7e, 0x96, 0x11, 0xb4, 0x2b, 0x86, 0xf7, 0xe4, 0x68, 0xbc, 0xe5, 0xa6, 0x19, 3644 0xda, 0x0f, 0xa0, 0x24, 0xbe, 0x94, 0x79, 0x52, 0xff, 0xb4, 0xdd, 0xee, 0xf4, 0xfb, 0xea, 0x1a, 3645 0xaa, 0x40, 0x11, 0x77, 0x06, 0x98, 0x79, 0x58, 0x05, 0x8a, 0x8f, 0x5a, 0x83, 0xd6, 0x91, 0x9a, 3646 0xd3, 0xbe, 0x0f, 0x5b, 0x4f, 0x0d, 0x9b, 0x66, 0x71, 0x2e, 0xcd, 0x03, 0x75, 0xda, 0x57, 0x5a, 3647 0xe7, 0x30, 0x65, 0x9d, 0xec, 0xaa, 0xe9, 0x5c, 0xda, 0x74, 0xc6, 0x1e, 0x2a, 0xe4, 0x49, 0x10, 3648 0x48, 0x13, 0xb0, 0xbf, 0xda, 0x6b, 0xd8, 0xea, 0x53, 0xcf, 0xcf, 0xe4, 0xf9, 0x3f, 0x84, 0x75, 3649 0x16, 0x6d, 0xbc, 0x09, 0x95, 0xae, 0x7f, 0xbb, 0x29, 0xa2, 0x51, 0x33, 0x8a, 0x46, 0xcd, 0x7d, 3650 0x19, 0xad, 0x70, 0xd4, 0x13, 0xdd, 0x82, 0x52, 0x68, 0x0f, 0x5d, 0x63, 0x2c, 0x77, 0x0b, 0x49, 3651 0x69, 0x88, 0x39, 0x79, 0x34, 0xb1, 0x74, 0xfc, 0x36, 0xa0, 0x7d, 0x12, 0xd2, 0xc0, 0xbb, 0xca, 3652 0x24, 0xcf, 0x0e, 0x14, 0x5f, 0x78, 0x81, 0x29, 0x16, 0x62, 0x19, 0x0b, 0x82, 0x2d, 0xaa, 0x14, 3653 0x88, 0xc4, 0xfe, 0x18, 0xd0, 0xa1, 0xcb, 0x62, 0x4a, 0x36, 0x43, 0xfc, 0x7d, 0x0e, 0x6e, 0xa4, 3654 0xfa, 0x4b, 0x63, 0xac, 0xbe, 0x0e, 0xd9, 0xc6, 0x34, 0x09, 0xc5, 0x3a, 0x44, 0x3d, 0x28, 0x89, 3655 0x1e, 0x52, 0x93, 0xf7, 0x96, 0x00, 0x12, 0x61, 0x4a, 0xc2, 0x49, 0x98, 0x85, 0x4e, 0x9f, 0x7f, 3656 0xb7, 0x4e, 0xff, 0x1a, 0xd4, 0xe8, 0x3b, 0xc2, 0xb7, 0xda, 0xe6, 0x1b, 0xb8, 0x61, 0x7a, 0xe3, 3657 0x31, 0x31, 0x99, 0x37, 0xe8, 0xb6, 0x4b, 0x49, 0x70, 0x61, 0x8c, 0xdf, 0xee, 0x37, 0x68, 0x3a, 3658 0xea, 0x50, 0x0e, 0xd2, 0x9e, 0xc3, 0x76, 0x62, 0x62, 0x69, 0x88, 0x47, 0x50, 0x0c, 0x19, 0x43, 3659 0x5a, 0xe2, 0x93, 0x25, 0x2d, 0x11, 0x62, 0x31, 0x5c, 0xbb, 0x21, 0xc0, 0x3b, 0x17, 0xc4, 0x8d, 3660 0x3f, 0x4b, 0xdb, 0x87, 0xed, 0x3e, 0x77, 0xd3, 0x4c, 0x7e, 0x38, 0x75, 0xf1, 0x5c, 0xca, 0xc5, 3661 0x77, 0x00, 0x25, 0x51, 0xa4, 0x23, 0x5e, 0xc1, 0x56, 0xe7, 0x92, 0x98, 0x99, 0x90, 0xeb, 0xb0, 3662 0x6e, 0x7a, 0x8e, 0x63, 0xb8, 0x56, 0x3d, 0x77, 0x27, 0xbf, 0x5b, 0xc1, 0x11, 0x99, 0x5c, 0x8b, 3663 0xf9, 0xac, 0x6b, 0x51, 0xfb, 0x5b, 0x05, 0xd4, 0xe9, 0xdc, 0x52, 0x91, 0x4c, 0x7a, 0x6a, 0x31, 3664 0x20, 0x36, 0xf7, 0x06, 0x96, 0x94, 0xe4, 0x47, 0xdb, 0x85, 0xe0, 0x93, 0x20, 0x48, 0x6c, 0x47, 3665 0xf9, 0x6b, 0x6e, 0x47, 0xda, 0x01, 0xfc, 0x4e, 0x24, 0x4e, 0x9f, 0x06, 0xc4, 0x70, 0x6c, 0x77, 3666 0x78, 0xd8, 0xeb, 0xf9, 0x44, 0x08, 0x8e, 0x10, 0x14, 0x2c, 0x83, 0x1a, 0x52, 0x30, 0xfe, 0x9f, 3667 0x2d, 0x7a, 0x73, 0xec, 0x85, 0xf1, 0xa2, 0xe7, 0x84, 0xf6, 0x1f, 0x79, 0xa8, 0xcf, 0x41, 0x45, 3668 0xea, 0x7d, 0x0e, 0xc5, 0x90, 0xd0, 0x89, 0x2f, 0x5d, 0xa5, 0x93, 0x59, 0xe0, 0xc5, 0x78, 0xcd, 3669 0x3e, 0x03, 0xc3, 0x02, 0x13, 0x0d, 0xa1, 0x4c, 0xe9, 0x95, 0x1e, 0xda, 0x3f, 0x8b, 0x12, 0x82, 3670 0xa3, 0xeb, 0xe2, 0x0f, 0x48, 0xe0, 0xd8, 0xae, 0x31, 0xee, 0xdb, 0x3f, 0x23, 0x78, 0x9d, 0xd2, 3671 0x2b, 0xf6, 0x07, 0x3d, 0x63, 0x0e, 0x6f, 0xd9, 0xae, 0x54, 0x7b, 0x7b, 0xd5, 0x59, 0x12, 0x0a, 3672 0xc6, 0x02, 0xb1, 0x71, 0x04, 0x45, 0xfe, 0x4d, 0xab, 0x38, 0xa2, 0x0a, 0x79, 0x4a, 0xaf, 0xb8, 3673 0x50, 0x65, 0xcc, 0xfe, 0x36, 0x1e, 0xc0, 0x46, 0xf2, 0x0b, 0x98, 0x23, 0x8d, 0x88, 0x3d, 0x1c, 3674 0x09, 0x07, 0x2b, 0x62, 0x49, 0x31, 0x4b, 0xbe, 0xb6, 0x2d, 0x99, 0xb2, 0x16, 0xb1, 0x20, 0xb4, 3675 0x7f, 0xcd, 0xc1, 0xed, 0x05, 0x9a, 0x91, 0xce, 0xfa, 0x3c, 0xe5, 0xac, 0xef, 0x48, 0x0b, 0x91, 3676 0xc7, 0x3f, 0x4f, 0x79, 0xfc, 0x3b, 0x04, 0x67, 0xcb, 0xe6, 0x16, 0x94, 0xc8, 0xa5, 0x4d, 0x89, 3677 0x25, 0x55, 0x25, 0xa9, 0xc4, 0x72, 0x2a, 0x5c, 0x77, 0x39, 0x7d, 0x0a, 0x3b, 0xed, 0x80, 0x18, 3678 0x94, 0xc8, 0xad, 0x3c, 0xf2, 0xff, 0xdb, 0x50, 0x36, 0xc6, 0x63, 0xcf, 0x9c, 0x9a, 0x75, 0x9d, 3679 0xd3, 0x87, 0x96, 0xf6, 0x9d, 0x02, 0x37, 0x67, 0xc6, 0x48, 0x4d, 0x9f, 0x41, 0xcd, 0x0e, 0xbd, 3680 0x31, 0xff, 0x08, 0x3d, 0x71, 0x8a, 0xfb, 0xd1, 0x72, 0xe1, 0xe4, 0x30, 0xc2, 0xe0, 0x87, 0xba, 3681 0x4d, 0x3b, 0x49, 0x72, 0xaf, 0xe2, 0x93, 0x5b, 0x72, 0x35, 0x47, 0xa4, 0xf6, 0x0f, 0x0a, 0xdc, 3682 0x94, 0x51, 0x3c, 0xf3, 0xc7, 0x2c, 0x10, 0x39, 0xf7, 0xae, 0x45, 0xd6, 0xea, 0x70, 0x6b, 0x56, 3683 0x2e, 0xb9, 0xaf, 0xff, 0x67, 0x01, 0xd0, 0xfc, 0x09, 0x12, 0x7d, 0x0f, 0x36, 0x42, 0xe2, 0x5a, 3684 0xba, 0x88, 0x09, 0x22, 0x5c, 0x95, 0x71, 0x95, 0xf1, 0x44, 0x70, 0x08, 0xd9, 0x36, 0x47, 0x2e, 3685 0xa5, 0xb4, 0x65, 0xcc, 0xff, 0xa3, 0x11, 0x6c, 0xbc, 0x08, 0xf5, 0x78, 0x6e, 0xee, 0x34, 0xb5, 3686 0xcc, 0x5b, 0xd7, 0xbc, 0x1c, 0xcd, 0x47, 0xfd, 0xf8, 0xbb, 0x70, 0xf5, 0x45, 0x18, 0x13, 0xe8, 3687 0x17, 0x0a, 0xbc, 0x17, 0xa5, 0x0e, 0x53, 0xf5, 0x39, 0x9e, 0x45, 0xc2, 0x7a, 0xe1, 0x4e, 0x7e, 3688 0xb7, 0xb6, 0x77, 0x72, 0x0d, 0xfd, 0xcd, 0x31, 0x8f, 0x3d, 0x8b, 0xe0, 0x9b, 0xee, 0x02, 0x6e, 3689 0x88, 0x9a, 0x70, 0xc3, 0x99, 0x84, 0x54, 0x17, 0x5e, 0xa0, 0xcb, 0x4e, 0xf5, 0x22, 0xd7, 0xcb, 3690 0x36, 0x6b, 0x4a, 0xf9, 0x2a, 0x3a, 0x87, 0x4d, 0xc7, 0x9b, 0xb8, 0x54, 0x37, 0xf9, 0x19, 0x27, 3691 0xac, 0x97, 0x96, 0x3a, 0xfc, 0x2e, 0xd0, 0xd2, 0x31, 0x83, 0x13, 0x27, 0xa6, 0x10, 0x6f, 0x38, 3692 0x09, 0x4a, 0x6b, 0x42, 0x35, 0xa1, 0x43, 0x54, 0x86, 0x42, 0xb7, 0xd7, 0xed, 0xa8, 0x6b, 0x08, 3693 0xa0, 0xd4, 0x3e, 0xc0, 0xbd, 0xde, 0x40, 0xa4, 0xfd, 0x87, 0xc7, 0xad, 0xc7, 0x1d, 0x35, 0xa7, 3694 0x75, 0x60, 0x23, 0x89, 0x86, 0x10, 0xd4, 0x4e, 0xbb, 0x4f, 0xba, 0xbd, 0xa7, 0x5d, 0xfd, 0xb8, 3695 0x77, 0xda, 0x1d, 0xb0, 0x03, 0x43, 0x0d, 0xa0, 0xd5, 0x7d, 0x36, 0xa5, 0x37, 0xa1, 0xd2, 0xed, 3696 0x45, 0xa4, 0xd2, 0xc8, 0xa9, 0x8a, 0xf6, 0xbf, 0x39, 0xd8, 0x59, 0xa4, 0x58, 0x64, 0x41, 0x81, 3697 0x19, 0x49, 0x1e, 0xd9, 0xde, 0xbd, 0x8d, 0x38, 0x3a, 0xf3, 0x4d, 0xdf, 0x90, 0x7b, 0x74, 0x05, 3698 0xf3, 0xff, 0x48, 0x87, 0xd2, 0xd8, 0x38, 0x23, 0xe3, 0xb0, 0x9e, 0xe7, 0x97, 0x1a, 0x8f, 0xaf, 3699 0x33, 0xf7, 0x11, 0x47, 0x12, 0x37, 0x1a, 0x12, 0xb6, 0x71, 0x1f, 0xaa, 0x09, 0xf6, 0x82, 0xab, 3700 0x83, 0x9d, 0xe4, 0xd5, 0x41, 0x25, 0x79, 0x0f, 0xf0, 0x70, 0x5e, 0x5b, 0xec, 0x6b, 0x98, 0xb9, 3701 0x0e, 0x7a, 0xfd, 0x81, 0x38, 0xa4, 0x3d, 0xc6, 0xbd, 0xd3, 0x13, 0x55, 0x61, 0xcc, 0x41, 0xab, 3702 0xff, 0x44, 0xcd, 0xc5, 0xd6, 0xcc, 0x6b, 0xcf, 0xa1, 0xb2, 0xdf, 0xed, 0x0b, 0xa3, 0xb1, 0x0d, 3703 0x2a, 0x24, 0x01, 0xfb, 0x04, 0x7e, 0x7f, 0x53, 0xc1, 0x11, 0x89, 0x1a, 0x50, 0x0e, 0x89, 0x11, 3704 0x98, 0x23, 0x12, 0xca, 0x88, 0x18, 0xd3, 0x6c, 0x94, 0xc7, 0xef, 0x41, 0x84, 0x82, 0x2a, 0x38, 3705 0x22, 0xb5, 0xff, 0x5b, 0x07, 0x98, 0x9e, 0xc9, 0x51, 0x0d, 0x72, 0xf1, 0x2e, 0x96, 0xb3, 0x2d, 3706 0xa6, 0x6c, 0xd7, 0x70, 0xa2, 0xaf, 0xe2, 0xff, 0xd1, 0x1e, 0xdc, 0x74, 0xc2, 0xa1, 0x6f, 0x98, 3707 0xe7, 0xba, 0x3c, 0x4a, 0x0b, 0x67, 0xe7, 0x3b, 0xc2, 0x06, 0xbe, 0x21, 0x1b, 0xa5, 0x2f, 0x0b, 3708 0xdc, 0x23, 0xc8, 0x13, 0xf7, 0x82, 0xaf, 0xde, 0xea, 0xde, 0x17, 0x4b, 0xdf, 0x15, 0x34, 0x3b, 3709 0xee, 0x85, 0x30, 0x08, 0x83, 0x41, 0x3a, 0x80, 0x45, 0x2e, 0x6c, 0x93, 0xe8, 0x0c, 0xb4, 0xc8, 3710 0x41, 0xbf, 0x5a, 0x1e, 0x74, 0x9f, 0x63, 0xc4, 0xd0, 0x15, 0x2b, 0xa2, 0x51, 0x17, 0x2a, 0x01, 3711 0x09, 0xbd, 0x49, 0x60, 0x12, 0xb1, 0x84, 0xb3, 0xa7, 0xf3, 0x38, 0x1a, 0x87, 0xa7, 0x10, 0x68, 3712 0x1f, 0x4a, 0x7c, 0xe5, 0x86, 0xf5, 0x75, 0x2e, 0xec, 0x47, 0x19, 0xc1, 0xf8, 0x72, 0xc5, 0x72, 3713 0x2c, 0x7a, 0x0c, 0xeb, 0x42, 0xc4, 0xb0, 0x5e, 0xe6, 0x30, 0x1f, 0x67, 0xdd, 0x56, 0xf8, 0x28, 3714 0x1c, 0x8d, 0x66, 0x56, 0x9d, 0x84, 0x24, 0xa8, 0x57, 0x84, 0x55, 0xd9, 0x7f, 0xf4, 0x3e, 0x54, 3715 0x44, 0x14, 0xb3, 0xec, 0xa0, 0x0e, 0xbc, 0x41, 0x84, 0xb5, 0x7d, 0x3b, 0x40, 0x1f, 0x40, 0x55, 3716 0x64, 0x24, 0x3a, 0x5f, 0x7a, 0x55, 0xde, 0x0c, 0x82, 0x75, 0xc2, 0x16, 0xa0, 0xe8, 0x40, 0x82, 3717 0x40, 0x74, 0xd8, 0x88, 0x3b, 0x90, 0x20, 0xe0, 0x1d, 0x7e, 0x1f, 0xb6, 0x78, 0x1e, 0x37, 0x0c, 3718 0xbc, 0x89, 0xaf, 0x73, 0x9f, 0xda, 0xe4, 0x9d, 0x36, 0x19, 0xfb, 0x31, 0xe3, 0x76, 0x99, 0x73, 3719 0xdd, 0x86, 0xf2, 0x4b, 0xef, 0x4c, 0x74, 0xa8, 0x89, 0x60, 0xfa, 0xd2, 0x3b, 0x8b, 0x9a, 0xe2, 3720 0x38, 0xbb, 0x95, 0x8e, 0xb3, 0xaf, 0xe0, 0xd6, 0x7c, 0xc0, 0xe0, 0xf1, 0x56, 0xbd, 0x7e, 0xbc, 3721 0xdd, 0x71, 0x17, 0x6d, 0x76, 0x5f, 0x43, 0xde, 0x72, 0xc3, 0xfa, 0xf6, 0x52, 0xce, 0x11, 0xaf, 3722 0x63, 0xcc, 0x06, 0x37, 0x3e, 0x83, 0x72, 0xe4, 0x7d, 0xcb, 0x6c, 0x29, 0x8d, 0x07, 0x50, 0x4b, 3723 0xfb, 0xee, 0x52, 0x1b, 0xd2, 0x3f, 0xe7, 0xa0, 0x12, 0x7b, 0x29, 0x72, 0xe1, 0x06, 0xd7, 0x22, 3724 0x4b, 0x72, 0xf4, 0xa9, 0xd3, 0x8b, 0xd4, 0xea, 0xcb, 0x8c, 0xdf, 0xd5, 0x8a, 0x10, 0xe4, 0x39, 3725 0x4e, 0xae, 0x00, 0x14, 0x23, 0x4f, 0xe7, 0xfb, 0x16, 0xb6, 0xc6, 0xb6, 0x3b, 0xb9, 0x4c, 0xcc, 3726 0x25, 0x72, 0xa2, 0x3f, 0xc8, 0x38, 0xd7, 0x11, 0x1b, 0x3d, 0x9d, 0xa3, 0x36, 0x4e, 0xd1, 0xe8, 3727 0x00, 0x8a, 0xbe, 0x17, 0xd0, 0x28, 0x12, 0xec, 0x65, 0x44, 0x3d, 0xf1, 0x02, 0x7a, 0x6c, 0xf8, 3728 0x3e, 0x4b, 0xed, 0x05, 0x80, 0xf6, 0x5d, 0x0e, 0x6e, 0x2d, 0xfe, 0x30, 0xd4, 0x85, 0xbc, 0xe9, 3729 0x4f, 0xa4, 0x92, 0x1e, 0x2c, 0xab, 0xa4, 0xb6, 0x3f, 0x99, 0xca, 0xcf, 0x80, 0xd0, 0x53, 0x28, 3730 0x39, 0xc4, 0xf1, 0x82, 0x2b, 0xa9, 0x8b, 0x87, 0xcb, 0x42, 0x1e, 0xf3, 0xd1, 0x53, 0x54, 0x09, 3731 0x87, 0x30, 0x94, 0xa5, 0xf7, 0x86, 0x72, 0x9f, 0x5c, 0xf2, 0xf2, 0x25, 0x82, 0xc4, 0x31, 0x8e, 3732 0xf6, 0x19, 0xdc, 0x5c, 0xf8, 0x29, 0xe8, 0x77, 0x01, 0x4c, 0x7f, 0xa2, 0xf3, 0xcb, 0x71, 0xe1, 3733 0x41, 0x79, 0x5c, 0x31, 0xfd, 0x49, 0x9f, 0x33, 0xb4, 0x7b, 0x50, 0x7f, 0x93, 0xbc, 0x6c, 0xf7, 3734 0x11, 0x12, 0xeb, 0xce, 0x19, 0xd7, 0x41, 0x1e, 0x97, 0x05, 0xe3, 0xf8, 0x4c, 0xfb, 0x65, 0x0e, 3735 0xb6, 0x66, 0xc4, 0x61, 0x87, 0x17, 0xb1, 0x9b, 0x45, 0xc7, 0x42, 0x41, 0xb1, 0xad, 0xcd, 0xb4, 3736 0xad, 0xe8, 0x42, 0x91, 0xff, 0xe7, 0x41, 0xcd, 0x97, 0x97, 0x7d, 0x39, 0xdb, 0x67, 0x4b, 0xc3, 3737 0x39, 0xb3, 0x69, 0xc8, 0xcf, 0x37, 0x45, 0x2c, 0x08, 0xf4, 0x0c, 0x6a, 0x01, 0xe1, 0xc1, 0xd4, 3738 0xd2, 0x85, 0x07, 0x15, 0x97, 0xf2, 0x20, 0x29, 0x21, 0x73, 0x24, 0xbc, 0x19, 0x21, 0x31, 0x2a, 3739 0x44, 0x4f, 0x61, 0xd3, 0xba, 0x72, 0x0d, 0xc7, 0x36, 0x25, 0x72, 0x69, 0x65, 0xe4, 0x0d, 0x09, 3740 0xc4, 0x81, 0xb5, 0xfb, 0x50, 0x4d, 0x34, 0xb2, 0x0f, 0xe3, 0xf9, 0x8a, 0xd4, 0x89, 0x20, 0xd2, 3741 0x3b, 0x41, 0x51, 0xee, 0x04, 0xda, 0x19, 0x54, 0x13, 0x3e, 0xbf, 0xcc, 0x50, 0xa6, 0x4f, 0xea, 3742 0x71, 0x7d, 0x16, 0x71, 0x8e, 0x7a, 0xec, 0x8c, 0x3e, 0xf2, 0x42, 0xaa, 0xdb, 0x3e, 0xd7, 0x68, 3743 0x05, 0x97, 0x18, 0x79, 0xe8, 0x6b, 0xff, 0x94, 0x83, 0x5a, 0x7a, 0xb9, 0x46, 0x3e, 0xe2, 0x93, 3744 0xc0, 0xf6, 0xac, 0x84, 0x8f, 0x9c, 0x70, 0x06, 0xf3, 0x03, 0xd6, 0xfc, 0x6a, 0xe2, 0x51, 0x23, 3745 0xf2, 0x03, 0xd3, 0x9f, 0xfc, 0x21, 0xa3, 0x67, 0xfc, 0x2b, 0x3f, 0xe3, 0x5f, 0xe8, 0x23, 0x40, 3746 0xd2, 0x87, 0xc6, 0xb6, 0x63, 0x53, 0xfd, 0xec, 0x8a, 0x12, 0x61, 0xe3, 0x3c, 0x56, 0x45, 0xcb, 3747 0x11, 0x6b, 0xf8, 0x9a, 0xf1, 0x91, 0x06, 0x9b, 0x9e, 0xe7, 0xe8, 0xa1, 0xe9, 0x05, 0x44, 0x37, 3748 0xac, 0x97, 0x3c, 0xa7, 0xcf, 0xe3, 0xaa, 0xe7, 0x39, 0x7d, 0xc6, 0x6b, 0x59, 0x2f, 0x59, 0x54, 3749 0x33, 0xfd, 0x49, 0x48, 0xa8, 0xce, 0x7e, 0x78, 0x22, 0x50, 0xc1, 0x20, 0x58, 0x6d, 0x7f, 0x12, 3750 0x26, 0x3a, 0x38, 0xc4, 0x61, 0xc1, 0x3d, 0xd1, 0xe1, 0x98, 0x38, 0x6c, 0x96, 0x8d, 0x13, 0x12, 3751 0x98, 0xc4, 0xa5, 0x03, 0xdb, 0x3c, 0x67, 0x71, 0x5b, 0xd9, 0x55, 0x70, 0x8a, 0xa7, 0xfd, 0x14, 3752 0x8a, 0x3c, 0xce, 0xb3, 0x8f, 0xe7, 0x31, 0x92, 0x87, 0x50, 0x61, 0x87, 0x32, 0x63, 0xf0, 0x00, 3753 0xfa, 0x3e, 0x54, 0xb8, 0x92, 0x13, 0xb9, 0x6f, 0x99, 0x31, 0x78, 0x63, 0x03, 0xca, 0x01, 0x31, 3754 0x2c, 0xcf, 0x1d, 0x47, 0xf7, 0x1e, 0x31, 0xad, 0xbd, 0x82, 0x92, 0x08, 0x16, 0xd7, 0xc0, 0xff, 3755 0x18, 0x90, 0x29, 0x22, 0xb7, 0x4f, 0x02, 0xc7, 0x0e, 0x43, 0x99, 0x4a, 0xf2, 0xc7, 0x36, 0xd1, 3756 0x72, 0x32, 0x6d, 0xd0, 0xfe, 0x4b, 0x11, 0x49, 0xa5, 0x78, 0x06, 0x61, 0xd9, 0x27, 0xf3, 0x66, 3757 0x76, 0x68, 0x14, 0xf7, 0x2d, 0x11, 0x89, 0x0e, 0xa1, 0x24, 0x73, 0xc7, 0xdc, 0xaa, 0xaf, 0x48, 3758 0x12, 0x20, 0xba, 0x7d, 0x25, 0xf2, 0x5c, 0xba, 0xec, 0xed, 0x2b, 0x11, 0xb7, 0xaf, 0x84, 0x9d, 3759 0x8e, 0x65, 0x56, 0x2b, 0xe0, 0x0a, 0x3c, 0xa9, 0xad, 0x5a, 0xf1, 0x15, 0x37, 0xd1, 0xfe, 0x47, 3760 0x89, 0xf7, 0xa3, 0xe8, 0x2a, 0x1a, 0x7d, 0x0b, 0x65, 0xb6, 0xb4, 0x75, 0xc7, 0xf0, 0xe5, 0xc3, 3761 0x6a, 0x7b, 0xb5, 0x5b, 0xee, 0x28, 0x12, 0x89, 0x9c, 0x74, 0xdd, 0x17, 0x14, 0xdb, 0xd7, 0x0c, 3762 0x6b, 0xba, 0xaf, 0xb1, 0xff, 0xe8, 0x43, 0xa8, 0x19, 0x13, 0xea, 0xe9, 0x86, 0x75, 0x41, 0x02, 3763 0x6a, 0x87, 0x44, 0xda, 0x7e, 0x93, 0x71, 0x5b, 0x11, 0xb3, 0xf1, 0x05, 0x6c, 0x24, 0x31, 0xdf, 3764 0x96, 0x2b, 0x14, 0x93, 0xb9, 0xc2, 0x9f, 0x00, 0x4c, 0xaf, 0x75, 0x98, 0x8f, 0x90, 0x4b, 0x9b, 3765 0x1d, 0x6e, 0xe5, 0x29, 0xaf, 0x88, 0xcb, 0x8c, 0xd1, 0x66, 0xe7, 0x99, 0xf4, 0x9d, 0x73, 0x31, 3766 0xba, 0x73, 0x66, 0xab, 0x96, 0x2d, 0xb4, 0x73, 0x7b, 0x3c, 0x8e, 0xaf, 0x9a, 0x2a, 0x9e, 0xe7, 3767 0x3c, 0xe1, 0x0c, 0xed, 0xd7, 0x39, 0xe1, 0x2b, 0xe2, 0xf5, 0x20, 0xd3, 0x01, 0xe4, 0x5d, 0x99, 3768 0xfa, 0x3e, 0x40, 0x48, 0x8d, 0x80, 0x25, 0x3e, 0x46, 0x74, 0xd9, 0xd5, 0x98, 0xbb, 0xb4, 0x1e, 3769 0x44, 0xe5, 0x0c, 0xb8, 0x22, 0x7b, 0xb7, 0x28, 0xfa, 0x12, 0x36, 0x4c, 0xcf, 0xf1, 0xc7, 0x44, 3770 0x0e, 0x2e, 0xbe, 0x75, 0x70, 0x35, 0xee, 0xdf, 0xa2, 0x89, 0x2b, 0xb6, 0xd2, 0x75, 0xaf, 0xd8, 3771 0xfe, 0x4d, 0x11, 0x8f, 0x20, 0xc9, 0x37, 0x18, 0x34, 0x5c, 0xf0, 0xd0, 0xff, 0x78, 0xc5, 0x07, 3772 0x9d, 0xdf, 0xf6, 0xca, 0xdf, 0xf8, 0x32, 0xcb, 0xb3, 0xfa, 0x9b, 0x53, 0xd1, 0x7f, 0xcf, 0x43, 3773 0x25, 0x7e, 0xff, 0x98, 0xb3, 0xfd, 0xe7, 0x50, 0x89, 0x6b, 0x49, 0xe4, 0x06, 0xf1, 0x5b, 0xcd, 3774 0x13, 0x77, 0x46, 0x2f, 0x00, 0x19, 0xc3, 0x61, 0x9c, 0x62, 0xea, 0x93, 0xd0, 0x18, 0x46, 0xaf, 3775 0x4f, 0x9f, 0x2f, 0xa1, 0x87, 0x28, 0x6e, 0x9d, 0xb2, 0xf1, 0x58, 0x35, 0x86, 0xc3, 0x14, 0x07, 3776 0xfd, 0x29, 0xdc, 0x4c, 0xcf, 0xa1, 0x9f, 0x5d, 0xe9, 0xbe, 0x6d, 0xc9, 0x83, 0xee, 0xc1, 0xb2, 3777 0x4f, 0x40, 0xcd, 0x14, 0xfc, 0xd7, 0x57, 0x27, 0xb6, 0x25, 0x74, 0x8e, 0x82, 0xb9, 0x86, 0xc6, 3778 0x9f, 0xc3, 0x7b, 0x6f, 0xe8, 0xbe, 0xc0, 0x06, 0xdd, 0x74, 0x69, 0xc3, 0xea, 0x4a, 0x48, 0x58, 3779 0xef, 0x57, 0x8a, 0x78, 0xa9, 0x4a, 0xeb, 0xa4, 0x95, 0xcc, 0x8d, 0xef, 0x66, 0x9c, 0xa7, 0x7d, 3780 0x72, 0x2a, 0xe0, 0x79, 0x3a, 0xfc, 0xcd, 0x4c, 0x3a, 0x9c, 0x35, 0x51, 0x12, 0x59, 0xa5, 0x00, 3781 0x92, 0x08, 0xda, 0xbf, 0xe4, 0xa1, 0x1c, 0xa1, 0xf3, 0x63, 0xea, 0x55, 0x48, 0x89, 0xa3, 0xc7, 3782 0x17, 0x55, 0x0a, 0x06, 0xc1, 0xe2, 0x97, 0x32, 0xef, 0x43, 0x85, 0x9d, 0x86, 0x45, 0x73, 0x8e, 3783 0x37, 0x97, 0x19, 0x83, 0x37, 0x7e, 0x00, 0x55, 0xea, 0x51, 0x63, 0xac, 0x53, 0x1e, 0xcb, 0xf3, 3784 0x62, 0x34, 0x67, 0xf1, 0x48, 0x8e, 0x7e, 0x00, 0xdb, 0x74, 0x14, 0x78, 0x94, 0x8e, 0x59, 0x0e, 3785 0xc9, 0x33, 0x1a, 0x91, 0x80, 0x14, 0xb0, 0x1a, 0x37, 0x88, 0x4c, 0x27, 0x64, 0xbb, 0xf7, 0xb4, 3786 0x33, 0x73, 0x5d, 0xbe, 0x89, 0x14, 0xf0, 0x66, 0xcc, 0x65, 0xae, 0xcd, 0x82, 0xa7, 0x2f, 0xb2, 3787 0x05, 0xbe, 0x57, 0x28, 0x38, 0x22, 0x91, 0x0e, 0x5b, 0x0e, 0x31, 0xc2, 0x49, 0x40, 0x2c, 0xfd, 3788 0x85, 0x4d, 0xc6, 0x96, 0xb8, 0x5d, 0xa8, 0x65, 0x4e, 0xf1, 0x23, 0xb5, 0x34, 0x1f, 0xf1, 0xd1, 3789 0xb8, 0x16, 0xc1, 0x09, 0x9a, 0x65, 0x0e, 0xe2, 0x1f, 0xda, 0x82, 0x6a, 0xff, 0x59, 0x7f, 0xd0, 3790 0x39, 0xd6, 0x8f, 0x7b, 0xfb, 0x1d, 0x59, 0xbd, 0xd2, 0xef, 0x60, 0x41, 0x2a, 0xac, 0x7d, 0xd0, 3791 0x1b, 0xb4, 0x8e, 0xf4, 0xc1, 0x61, 0xfb, 0x49, 0x5f, 0xcd, 0xa1, 0x9b, 0xb0, 0x3d, 0x38, 0xc0, 3792 0xbd, 0xc1, 0xe0, 0xa8, 0xb3, 0xaf, 0x9f, 0x74, 0xf0, 0x61, 0x6f, 0xbf, 0xaf, 0xe6, 0x11, 0x82, 3793 0xda, 0x94, 0x3d, 0x38, 0x3c, 0xee, 0xa8, 0x05, 0x54, 0x85, 0xf5, 0x93, 0x0e, 0x6e, 0x77, 0xba, 3794 0x03, 0xb5, 0xa8, 0xfd, 0x32, 0x0f, 0xd5, 0x84, 0x15, 0x99, 0x23, 0x07, 0xa1, 0x38, 0x4b, 0x14, 3795 0x30, 0xfb, 0xcb, 0x5f, 0xdb, 0x0c, 0x73, 0x24, 0xac, 0x53, 0xc0, 0x82, 0xe0, 0xe7, 0x07, 0xe3, 3796 0x32, 0xb1, 0xce, 0x0b, 0xb8, 0xec, 0x18, 0x97, 0x02, 0xe4, 0x7b, 0xb0, 0x71, 0x4e, 0x02, 0x97, 3797 0x8c, 0x65, 0xbb, 0xb0, 0x48, 0x55, 0xf0, 0x44, 0x97, 0x5d, 0x50, 0x65, 0x97, 0x29, 0x8c, 0x30, 3798 0x47, 0x4d, 0xf0, 0x8f, 0x23, 0xb0, 0x1d, 0x28, 0x8a, 0xe6, 0x75, 0x31, 0x3f, 0x27, 0x58, 0x98, 3799 0x0a, 0x5f, 0x1b, 0x3e, 0xcf, 0xef, 0x0a, 0x98, 0xff, 0x47, 0x67, 0xf3, 0xf6, 0x29, 0x71, 0xfb, 3800 0xdc, 0x5f, 0xde, 0x9d, 0xdf, 0x64, 0xa2, 0x51, 0x6c, 0xa2, 0x75, 0xc8, 0xe3, 0xa8, 0xe4, 0xa3, 3801 0xdd, 0x6a, 0x1f, 0x30, 0xb3, 0x6c, 0x42, 0xe5, 0xb8, 0xf5, 0x13, 0xfd, 0xb4, 0xcf, 0xef, 0x7f, 3802 0x91, 0x0a, 0x1b, 0x4f, 0x3a, 0xb8, 0xdb, 0x39, 0x92, 0x9c, 0x3c, 0xda, 0x01, 0x55, 0x72, 0xa6, 3803 0xfd, 0x0a, 0x0c, 0x41, 0xfc, 0x2d, 0xa2, 0x32, 0x14, 0xfa, 0x4f, 0x5b, 0x27, 0x6a, 0x49, 0xfb, 3804 0xef, 0x1c, 0x6c, 0x89, 0xb0, 0x10, 0x3f, 0x4e, 0xbf, 0xf9, 0x71, 0x2e, 0x79, 0x55, 0x93, 0x4b, 3805 0x5f, 0xd5, 0x44, 0x49, 0x28, 0x8f, 0xea, 0xf9, 0x69, 0x12, 0xca, 0xaf, 0x78, 0x52, 0x3b, 0x7e, 3806 0x61, 0x99, 0x1d, 0xbf, 0x0e, 0xeb, 0x0e, 0x09, 0x63, 0xbb, 0x55, 0x70, 0x44, 0x22, 0x1b, 0xaa, 3807 0x86, 0xeb, 0x7a, 0xd4, 0x10, 0xf7, 0x9f, 0xa5, 0xa5, 0x82, 0xe1, 0xcc, 0x17, 0x37, 0x5b, 0x53, 3808 0x24, 0xb1, 0x31, 0x27, 0xb1, 0x1b, 0x3f, 0x06, 0x75, 0xb6, 0xc3, 0x32, 0xe1, 0xf0, 0xfb, 0x9f, 3809 0x4e, 0xa3, 0x21, 0x61, 0xeb, 0x42, 0xde, 0xce, 0xab, 0x6b, 0x8c, 0xc0, 0xa7, 0xdd, 0xee, 0x61, 3810 0xf7, 0xb1, 0xaa, 0x20, 0x80, 0x52, 0xe7, 0x27, 0x87, 0x83, 0xce, 0xbe, 0x9a, 0xdb, 0xfb, 0xd5, 3811 0x36, 0x94, 0x84, 0x90, 0xe8, 0x3b, 0x99, 0x09, 0x24, 0x0b, 0x1f, 0xd1, 0x8f, 0x97, 0xce, 0xa8, 3812 0x53, 0xc5, 0x94, 0x8d, 0x87, 0x2b, 0x8f, 0x97, 0x8f, 0x50, 0x6b, 0xe8, 0xaf, 0x15, 0xd8, 0x48, 3813 0x3d, 0x40, 0x65, 0xbd, 0xff, 0x5d, 0x50, 0x67, 0xd9, 0xf8, 0xd1, 0x4a, 0x63, 0x63, 0x59, 0x7e, 3814 0xa1, 0x40, 0x35, 0x51, 0x61, 0x88, 0xee, 0xaf, 0x52, 0x95, 0x28, 0x24, 0xf9, 0x62, 0xf5, 0x82, 3815 0x46, 0x6d, 0xed, 0x13, 0x05, 0xfd, 0x95, 0x02, 0xd5, 0x44, 0xad, 0x5d, 0x66, 0x51, 0xe6, 0x2b, 3816 0x03, 0x33, 0x8b, 0xb2, 0xa8, 0xb4, 0x6f, 0x0d, 0xfd, 0x85, 0x02, 0x95, 0xb8, 0x6e, 0x0e, 0xdd, 3817 0x5b, 0xbe, 0xd2, 0x4e, 0x08, 0xf1, 0xf9, 0xaa, 0x25, 0x7a, 0xda, 0x1a, 0xfa, 0x33, 0x28, 0x47, 3818 0x45, 0x66, 0x28, 0x6b, 0xf4, 0x9a, 0xa9, 0x60, 0x6b, 0xdc, 0x5b, 0x7a, 0x5c, 0x72, 0xfa, 0xa8, 3819 0xf2, 0x2b, 0xf3, 0xf4, 0x33, 0x35, 0x6a, 0x8d, 0x7b, 0x4b, 0x8f, 0x8b, 0xa7, 0x67, 0x9e, 0x90, 3820 0x28, 0x10, 0xcb, 0xec, 0x09, 0xf3, 0x95, 0x69, 0x99, 0x3d, 0x61, 0x51, 0x3d, 0x9a, 0x10, 0x24, 3821 0x51, 0x62, 0x96, 0x59, 0x90, 0xf9, 0x32, 0xb6, 0xcc, 0x82, 0x2c, 0xa8, 0x68, 0xd3, 0xd6, 0xd0, 3822 0xcf, 0x95, 0xe4, 0xb9, 0xe0, 0xde, 0xd2, 0x95, 0x54, 0x4b, 0xba, 0xe4, 0x5c, 0x2d, 0x17, 0x5f, 3823 0xa0, 0x3f, 0x97, 0xb7, 0x18, 0xa2, 0x10, 0x0b, 0x2d, 0x03, 0x96, 0xaa, 0xdd, 0x6a, 0x7c, 0xb6, 3824 0x5a, 0xb0, 0xe1, 0x42, 0xfc, 0xa5, 0x02, 0x30, 0x2d, 0xd9, 0xca, 0x2c, 0xc4, 0x5c, 0xad, 0x58, 3825 0xe3, 0xfe, 0x0a, 0x23, 0x93, 0x0b, 0x24, 0x2a, 0x29, 0xc9, 0xbc, 0x40, 0x66, 0x4a, 0xca, 0x32, 3826 0x2f, 0x90, 0xd9, 0x72, 0x30, 0x6d, 0x0d, 0xfd, 0xa3, 0x02, 0xdb, 0x73, 0x25, 0x2d, 0xe8, 0xe1, 3827 0x35, 0xab, 0x9a, 0x1a, 0x5f, 0xad, 0x0e, 0x10, 0x89, 0xb6, 0xab, 0x7c, 0xa2, 0xa0, 0xbf, 0x51, 3828 0x60, 0x33, 0x5d, 0x06, 0x90, 0x39, 0x4a, 0x2d, 0x28, 0x8e, 0x69, 0x3c, 0x58, 0x6d, 0x70, 0xac, 3829 0xad, 0xbf, 0x53, 0xa0, 0x96, 0xae, 0x08, 0x41, 0x0f, 0x96, 0xdb, 0x16, 0x66, 0x04, 0xfa, 0x72, 3830 0xc5, 0xd1, 0x91, 0x44, 0x5f, 0xaf, 0xff, 0x51, 0x51, 0x64, 0x6f, 0x25, 0xfe, 0xf3, 0xc3, 0xdf, 3831 0x04, 0x00, 0x00, 0xff, 0xff, 0x70, 0x14, 0x0c, 0xda, 0x9f, 0x32, 0x00, 0x00, 3832 } 3833 3834 // Reference imports to suppress errors if they are not otherwise used. 3835 var _ context.Context 3836 var _ grpc.ClientConnInterface 3837 3838 // This is a compile-time assertion to ensure that this generated file 3839 // is compatible with the grpc package it is being compiled against. 3840 const _ = grpc.SupportPackageIsVersion6 3841 3842 // DriverClient is the client API for Driver service. 3843 // 3844 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 3845 type DriverClient interface { 3846 // TaskConfigSchema returns the schema for parsing the driver 3847 // configuration of a task. 3848 TaskConfigSchema(ctx context.Context, in *TaskConfigSchemaRequest, opts ...grpc.CallOption) (*TaskConfigSchemaResponse, error) 3849 // Capabilities returns a set of features which the driver implements. Some 3850 // RPCs are not possible to implement on some runtimes, this allows the 3851 // driver to indicate if it doesn't support these RPCs and features. 3852 Capabilities(ctx context.Context, in *CapabilitiesRequest, opts ...grpc.CallOption) (*CapabilitiesResponse, error) 3853 // Fingerprint starts a stream which emits information about the driver 3854 // including whether the driver healthy and able to function in the 3855 // existing environment. 3856 // 3857 // The driver should immediately stream a FingerprintResponse when the RPC 3858 // is initially called, then send any additional responses if there is a 3859 // change in the driver's state. 3860 Fingerprint(ctx context.Context, in *FingerprintRequest, opts ...grpc.CallOption) (Driver_FingerprintClient, error) 3861 // RecoverTask is used when a task has been started but the driver may not 3862 // know about it. Such is the case if the driver restarts or is upgraded. 3863 RecoverTask(ctx context.Context, in *RecoverTaskRequest, opts ...grpc.CallOption) (*RecoverTaskResponse, error) 3864 // StartTask starts and tracks the task on the implemented runtime 3865 StartTask(ctx context.Context, in *StartTaskRequest, opts ...grpc.CallOption) (*StartTaskResponse, error) 3866 // WaitTask blocks until the given task exits, returning the result of the 3867 // task. It may be called after the task has exited, but before the task is 3868 // destroyed. 3869 WaitTask(ctx context.Context, in *WaitTaskRequest, opts ...grpc.CallOption) (*WaitTaskResponse, error) 3870 // StopTask stops a given task by sending the desired signal to the process. 3871 // If the task does not exit on its own within the given timeout, it will be 3872 // forcefully killed. 3873 StopTask(ctx context.Context, in *StopTaskRequest, opts ...grpc.CallOption) (*StopTaskResponse, error) 3874 // DestroyTask removes the task from the driver's internal state and cleans 3875 // up any additional resources created by the driver. It cannot be called 3876 // on a running task, unless force is set to true. 3877 DestroyTask(ctx context.Context, in *DestroyTaskRequest, opts ...grpc.CallOption) (*DestroyTaskResponse, error) 3878 // InspectTask returns detailed information for the given task 3879 InspectTask(ctx context.Context, in *InspectTaskRequest, opts ...grpc.CallOption) (*InspectTaskResponse, error) 3880 // TaskStats collects and returns runtime metrics for the given task 3881 TaskStats(ctx context.Context, in *TaskStatsRequest, opts ...grpc.CallOption) (Driver_TaskStatsClient, error) 3882 // TaskEvents starts a streaming RPC where all task events emitted by the 3883 // driver are streamed to the caller. 3884 TaskEvents(ctx context.Context, in *TaskEventsRequest, opts ...grpc.CallOption) (Driver_TaskEventsClient, error) 3885 // SignalTask sends a signal to the task 3886 SignalTask(ctx context.Context, in *SignalTaskRequest, opts ...grpc.CallOption) (*SignalTaskResponse, error) 3887 // ExecTask executes a command inside the tasks execution context 3888 ExecTask(ctx context.Context, in *ExecTaskRequest, opts ...grpc.CallOption) (*ExecTaskResponse, error) 3889 // ExecTaskStreaming executes a command inside the tasks execution context 3890 // and streams back results 3891 // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE 3892 ExecTaskStreaming(ctx context.Context, opts ...grpc.CallOption) (Driver_ExecTaskStreamingClient, error) 3893 // CreateNetwork is implemented when the driver needs to create the network 3894 // namespace instead of allowing the Nomad client to do. 3895 CreateNetwork(ctx context.Context, in *CreateNetworkRequest, opts ...grpc.CallOption) (*CreateNetworkResponse, error) 3896 // DestroyNetwork destroys a previously created network. This rpc is only 3897 // implemented if the driver needs to manage network namespace creation. 3898 DestroyNetwork(ctx context.Context, in *DestroyNetworkRequest, opts ...grpc.CallOption) (*DestroyNetworkResponse, error) 3899 } 3900 3901 type driverClient struct { 3902 cc grpc.ClientConnInterface 3903 } 3904 3905 func NewDriverClient(cc grpc.ClientConnInterface) DriverClient { 3906 return &driverClient{cc} 3907 } 3908 3909 func (c *driverClient) TaskConfigSchema(ctx context.Context, in *TaskConfigSchemaRequest, opts ...grpc.CallOption) (*TaskConfigSchemaResponse, error) { 3910 out := new(TaskConfigSchemaResponse) 3911 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/TaskConfigSchema", in, out, opts...) 3912 if err != nil { 3913 return nil, err 3914 } 3915 return out, nil 3916 } 3917 3918 func (c *driverClient) Capabilities(ctx context.Context, in *CapabilitiesRequest, opts ...grpc.CallOption) (*CapabilitiesResponse, error) { 3919 out := new(CapabilitiesResponse) 3920 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/Capabilities", in, out, opts...) 3921 if err != nil { 3922 return nil, err 3923 } 3924 return out, nil 3925 } 3926 3927 func (c *driverClient) Fingerprint(ctx context.Context, in *FingerprintRequest, opts ...grpc.CallOption) (Driver_FingerprintClient, error) { 3928 stream, err := c.cc.NewStream(ctx, &_Driver_serviceDesc.Streams[0], "/hashicorp.nomad.plugins.drivers.proto.Driver/Fingerprint", opts...) 3929 if err != nil { 3930 return nil, err 3931 } 3932 x := &driverFingerprintClient{stream} 3933 if err := x.ClientStream.SendMsg(in); err != nil { 3934 return nil, err 3935 } 3936 if err := x.ClientStream.CloseSend(); err != nil { 3937 return nil, err 3938 } 3939 return x, nil 3940 } 3941 3942 type Driver_FingerprintClient interface { 3943 Recv() (*FingerprintResponse, error) 3944 grpc.ClientStream 3945 } 3946 3947 type driverFingerprintClient struct { 3948 grpc.ClientStream 3949 } 3950 3951 func (x *driverFingerprintClient) Recv() (*FingerprintResponse, error) { 3952 m := new(FingerprintResponse) 3953 if err := x.ClientStream.RecvMsg(m); err != nil { 3954 return nil, err 3955 } 3956 return m, nil 3957 } 3958 3959 func (c *driverClient) RecoverTask(ctx context.Context, in *RecoverTaskRequest, opts ...grpc.CallOption) (*RecoverTaskResponse, error) { 3960 out := new(RecoverTaskResponse) 3961 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/RecoverTask", in, out, opts...) 3962 if err != nil { 3963 return nil, err 3964 } 3965 return out, nil 3966 } 3967 3968 func (c *driverClient) StartTask(ctx context.Context, in *StartTaskRequest, opts ...grpc.CallOption) (*StartTaskResponse, error) { 3969 out := new(StartTaskResponse) 3970 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/StartTask", in, out, opts...) 3971 if err != nil { 3972 return nil, err 3973 } 3974 return out, nil 3975 } 3976 3977 func (c *driverClient) WaitTask(ctx context.Context, in *WaitTaskRequest, opts ...grpc.CallOption) (*WaitTaskResponse, error) { 3978 out := new(WaitTaskResponse) 3979 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/WaitTask", in, out, opts...) 3980 if err != nil { 3981 return nil, err 3982 } 3983 return out, nil 3984 } 3985 3986 func (c *driverClient) StopTask(ctx context.Context, in *StopTaskRequest, opts ...grpc.CallOption) (*StopTaskResponse, error) { 3987 out := new(StopTaskResponse) 3988 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/StopTask", in, out, opts...) 3989 if err != nil { 3990 return nil, err 3991 } 3992 return out, nil 3993 } 3994 3995 func (c *driverClient) DestroyTask(ctx context.Context, in *DestroyTaskRequest, opts ...grpc.CallOption) (*DestroyTaskResponse, error) { 3996 out := new(DestroyTaskResponse) 3997 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/DestroyTask", in, out, opts...) 3998 if err != nil { 3999 return nil, err 4000 } 4001 return out, nil 4002 } 4003 4004 func (c *driverClient) InspectTask(ctx context.Context, in *InspectTaskRequest, opts ...grpc.CallOption) (*InspectTaskResponse, error) { 4005 out := new(InspectTaskResponse) 4006 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/InspectTask", in, out, opts...) 4007 if err != nil { 4008 return nil, err 4009 } 4010 return out, nil 4011 } 4012 4013 func (c *driverClient) TaskStats(ctx context.Context, in *TaskStatsRequest, opts ...grpc.CallOption) (Driver_TaskStatsClient, error) { 4014 stream, err := c.cc.NewStream(ctx, &_Driver_serviceDesc.Streams[1], "/hashicorp.nomad.plugins.drivers.proto.Driver/TaskStats", opts...) 4015 if err != nil { 4016 return nil, err 4017 } 4018 x := &driverTaskStatsClient{stream} 4019 if err := x.ClientStream.SendMsg(in); err != nil { 4020 return nil, err 4021 } 4022 if err := x.ClientStream.CloseSend(); err != nil { 4023 return nil, err 4024 } 4025 return x, nil 4026 } 4027 4028 type Driver_TaskStatsClient interface { 4029 Recv() (*TaskStatsResponse, error) 4030 grpc.ClientStream 4031 } 4032 4033 type driverTaskStatsClient struct { 4034 grpc.ClientStream 4035 } 4036 4037 func (x *driverTaskStatsClient) Recv() (*TaskStatsResponse, error) { 4038 m := new(TaskStatsResponse) 4039 if err := x.ClientStream.RecvMsg(m); err != nil { 4040 return nil, err 4041 } 4042 return m, nil 4043 } 4044 4045 func (c *driverClient) TaskEvents(ctx context.Context, in *TaskEventsRequest, opts ...grpc.CallOption) (Driver_TaskEventsClient, error) { 4046 stream, err := c.cc.NewStream(ctx, &_Driver_serviceDesc.Streams[2], "/hashicorp.nomad.plugins.drivers.proto.Driver/TaskEvents", opts...) 4047 if err != nil { 4048 return nil, err 4049 } 4050 x := &driverTaskEventsClient{stream} 4051 if err := x.ClientStream.SendMsg(in); err != nil { 4052 return nil, err 4053 } 4054 if err := x.ClientStream.CloseSend(); err != nil { 4055 return nil, err 4056 } 4057 return x, nil 4058 } 4059 4060 type Driver_TaskEventsClient interface { 4061 Recv() (*DriverTaskEvent, error) 4062 grpc.ClientStream 4063 } 4064 4065 type driverTaskEventsClient struct { 4066 grpc.ClientStream 4067 } 4068 4069 func (x *driverTaskEventsClient) Recv() (*DriverTaskEvent, error) { 4070 m := new(DriverTaskEvent) 4071 if err := x.ClientStream.RecvMsg(m); err != nil { 4072 return nil, err 4073 } 4074 return m, nil 4075 } 4076 4077 func (c *driverClient) SignalTask(ctx context.Context, in *SignalTaskRequest, opts ...grpc.CallOption) (*SignalTaskResponse, error) { 4078 out := new(SignalTaskResponse) 4079 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/SignalTask", in, out, opts...) 4080 if err != nil { 4081 return nil, err 4082 } 4083 return out, nil 4084 } 4085 4086 func (c *driverClient) ExecTask(ctx context.Context, in *ExecTaskRequest, opts ...grpc.CallOption) (*ExecTaskResponse, error) { 4087 out := new(ExecTaskResponse) 4088 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/ExecTask", in, out, opts...) 4089 if err != nil { 4090 return nil, err 4091 } 4092 return out, nil 4093 } 4094 4095 func (c *driverClient) ExecTaskStreaming(ctx context.Context, opts ...grpc.CallOption) (Driver_ExecTaskStreamingClient, error) { 4096 stream, err := c.cc.NewStream(ctx, &_Driver_serviceDesc.Streams[3], "/hashicorp.nomad.plugins.drivers.proto.Driver/ExecTaskStreaming", opts...) 4097 if err != nil { 4098 return nil, err 4099 } 4100 x := &driverExecTaskStreamingClient{stream} 4101 return x, nil 4102 } 4103 4104 type Driver_ExecTaskStreamingClient interface { 4105 Send(*ExecTaskStreamingRequest) error 4106 Recv() (*ExecTaskStreamingResponse, error) 4107 grpc.ClientStream 4108 } 4109 4110 type driverExecTaskStreamingClient struct { 4111 grpc.ClientStream 4112 } 4113 4114 func (x *driverExecTaskStreamingClient) Send(m *ExecTaskStreamingRequest) error { 4115 return x.ClientStream.SendMsg(m) 4116 } 4117 4118 func (x *driverExecTaskStreamingClient) Recv() (*ExecTaskStreamingResponse, error) { 4119 m := new(ExecTaskStreamingResponse) 4120 if err := x.ClientStream.RecvMsg(m); err != nil { 4121 return nil, err 4122 } 4123 return m, nil 4124 } 4125 4126 func (c *driverClient) CreateNetwork(ctx context.Context, in *CreateNetworkRequest, opts ...grpc.CallOption) (*CreateNetworkResponse, error) { 4127 out := new(CreateNetworkResponse) 4128 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/CreateNetwork", in, out, opts...) 4129 if err != nil { 4130 return nil, err 4131 } 4132 return out, nil 4133 } 4134 4135 func (c *driverClient) DestroyNetwork(ctx context.Context, in *DestroyNetworkRequest, opts ...grpc.CallOption) (*DestroyNetworkResponse, error) { 4136 out := new(DestroyNetworkResponse) 4137 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.drivers.proto.Driver/DestroyNetwork", in, out, opts...) 4138 if err != nil { 4139 return nil, err 4140 } 4141 return out, nil 4142 } 4143 4144 // DriverServer is the server API for Driver service. 4145 type DriverServer interface { 4146 // TaskConfigSchema returns the schema for parsing the driver 4147 // configuration of a task. 4148 TaskConfigSchema(context.Context, *TaskConfigSchemaRequest) (*TaskConfigSchemaResponse, error) 4149 // Capabilities returns a set of features which the driver implements. Some 4150 // RPCs are not possible to implement on some runtimes, this allows the 4151 // driver to indicate if it doesn't support these RPCs and features. 4152 Capabilities(context.Context, *CapabilitiesRequest) (*CapabilitiesResponse, error) 4153 // Fingerprint starts a stream which emits information about the driver 4154 // including whether the driver healthy and able to function in the 4155 // existing environment. 4156 // 4157 // The driver should immediately stream a FingerprintResponse when the RPC 4158 // is initially called, then send any additional responses if there is a 4159 // change in the driver's state. 4160 Fingerprint(*FingerprintRequest, Driver_FingerprintServer) error 4161 // RecoverTask is used when a task has been started but the driver may not 4162 // know about it. Such is the case if the driver restarts or is upgraded. 4163 RecoverTask(context.Context, *RecoverTaskRequest) (*RecoverTaskResponse, error) 4164 // StartTask starts and tracks the task on the implemented runtime 4165 StartTask(context.Context, *StartTaskRequest) (*StartTaskResponse, error) 4166 // WaitTask blocks until the given task exits, returning the result of the 4167 // task. It may be called after the task has exited, but before the task is 4168 // destroyed. 4169 WaitTask(context.Context, *WaitTaskRequest) (*WaitTaskResponse, error) 4170 // StopTask stops a given task by sending the desired signal to the process. 4171 // If the task does not exit on its own within the given timeout, it will be 4172 // forcefully killed. 4173 StopTask(context.Context, *StopTaskRequest) (*StopTaskResponse, error) 4174 // DestroyTask removes the task from the driver's internal state and cleans 4175 // up any additional resources created by the driver. It cannot be called 4176 // on a running task, unless force is set to true. 4177 DestroyTask(context.Context, *DestroyTaskRequest) (*DestroyTaskResponse, error) 4178 // InspectTask returns detailed information for the given task 4179 InspectTask(context.Context, *InspectTaskRequest) (*InspectTaskResponse, error) 4180 // TaskStats collects and returns runtime metrics for the given task 4181 TaskStats(*TaskStatsRequest, Driver_TaskStatsServer) error 4182 // TaskEvents starts a streaming RPC where all task events emitted by the 4183 // driver are streamed to the caller. 4184 TaskEvents(*TaskEventsRequest, Driver_TaskEventsServer) error 4185 // SignalTask sends a signal to the task 4186 SignalTask(context.Context, *SignalTaskRequest) (*SignalTaskResponse, error) 4187 // ExecTask executes a command inside the tasks execution context 4188 ExecTask(context.Context, *ExecTaskRequest) (*ExecTaskResponse, error) 4189 // ExecTaskStreaming executes a command inside the tasks execution context 4190 // and streams back results 4191 // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE 4192 ExecTaskStreaming(Driver_ExecTaskStreamingServer) error 4193 // CreateNetwork is implemented when the driver needs to create the network 4194 // namespace instead of allowing the Nomad client to do. 4195 CreateNetwork(context.Context, *CreateNetworkRequest) (*CreateNetworkResponse, error) 4196 // DestroyNetwork destroys a previously created network. This rpc is only 4197 // implemented if the driver needs to manage network namespace creation. 4198 DestroyNetwork(context.Context, *DestroyNetworkRequest) (*DestroyNetworkResponse, error) 4199 } 4200 4201 // UnimplementedDriverServer can be embedded to have forward compatible implementations. 4202 type UnimplementedDriverServer struct { 4203 } 4204 4205 func (*UnimplementedDriverServer) TaskConfigSchema(ctx context.Context, req *TaskConfigSchemaRequest) (*TaskConfigSchemaResponse, error) { 4206 return nil, status.Errorf(codes.Unimplemented, "method TaskConfigSchema not implemented") 4207 } 4208 func (*UnimplementedDriverServer) Capabilities(ctx context.Context, req *CapabilitiesRequest) (*CapabilitiesResponse, error) { 4209 return nil, status.Errorf(codes.Unimplemented, "method Capabilities not implemented") 4210 } 4211 func (*UnimplementedDriverServer) Fingerprint(req *FingerprintRequest, srv Driver_FingerprintServer) error { 4212 return status.Errorf(codes.Unimplemented, "method Fingerprint not implemented") 4213 } 4214 func (*UnimplementedDriverServer) RecoverTask(ctx context.Context, req *RecoverTaskRequest) (*RecoverTaskResponse, error) { 4215 return nil, status.Errorf(codes.Unimplemented, "method RecoverTask not implemented") 4216 } 4217 func (*UnimplementedDriverServer) StartTask(ctx context.Context, req *StartTaskRequest) (*StartTaskResponse, error) { 4218 return nil, status.Errorf(codes.Unimplemented, "method StartTask not implemented") 4219 } 4220 func (*UnimplementedDriverServer) WaitTask(ctx context.Context, req *WaitTaskRequest) (*WaitTaskResponse, error) { 4221 return nil, status.Errorf(codes.Unimplemented, "method WaitTask not implemented") 4222 } 4223 func (*UnimplementedDriverServer) StopTask(ctx context.Context, req *StopTaskRequest) (*StopTaskResponse, error) { 4224 return nil, status.Errorf(codes.Unimplemented, "method StopTask not implemented") 4225 } 4226 func (*UnimplementedDriverServer) DestroyTask(ctx context.Context, req *DestroyTaskRequest) (*DestroyTaskResponse, error) { 4227 return nil, status.Errorf(codes.Unimplemented, "method DestroyTask not implemented") 4228 } 4229 func (*UnimplementedDriverServer) InspectTask(ctx context.Context, req *InspectTaskRequest) (*InspectTaskResponse, error) { 4230 return nil, status.Errorf(codes.Unimplemented, "method InspectTask not implemented") 4231 } 4232 func (*UnimplementedDriverServer) TaskStats(req *TaskStatsRequest, srv Driver_TaskStatsServer) error { 4233 return status.Errorf(codes.Unimplemented, "method TaskStats not implemented") 4234 } 4235 func (*UnimplementedDriverServer) TaskEvents(req *TaskEventsRequest, srv Driver_TaskEventsServer) error { 4236 return status.Errorf(codes.Unimplemented, "method TaskEvents not implemented") 4237 } 4238 func (*UnimplementedDriverServer) SignalTask(ctx context.Context, req *SignalTaskRequest) (*SignalTaskResponse, error) { 4239 return nil, status.Errorf(codes.Unimplemented, "method SignalTask not implemented") 4240 } 4241 func (*UnimplementedDriverServer) ExecTask(ctx context.Context, req *ExecTaskRequest) (*ExecTaskResponse, error) { 4242 return nil, status.Errorf(codes.Unimplemented, "method ExecTask not implemented") 4243 } 4244 func (*UnimplementedDriverServer) ExecTaskStreaming(srv Driver_ExecTaskStreamingServer) error { 4245 return status.Errorf(codes.Unimplemented, "method ExecTaskStreaming not implemented") 4246 } 4247 func (*UnimplementedDriverServer) CreateNetwork(ctx context.Context, req *CreateNetworkRequest) (*CreateNetworkResponse, error) { 4248 return nil, status.Errorf(codes.Unimplemented, "method CreateNetwork not implemented") 4249 } 4250 func (*UnimplementedDriverServer) DestroyNetwork(ctx context.Context, req *DestroyNetworkRequest) (*DestroyNetworkResponse, error) { 4251 return nil, status.Errorf(codes.Unimplemented, "method DestroyNetwork not implemented") 4252 } 4253 4254 func RegisterDriverServer(s *grpc.Server, srv DriverServer) { 4255 s.RegisterService(&_Driver_serviceDesc, srv) 4256 } 4257 4258 func _Driver_TaskConfigSchema_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4259 in := new(TaskConfigSchemaRequest) 4260 if err := dec(in); err != nil { 4261 return nil, err 4262 } 4263 if interceptor == nil { 4264 return srv.(DriverServer).TaskConfigSchema(ctx, in) 4265 } 4266 info := &grpc.UnaryServerInfo{ 4267 Server: srv, 4268 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/TaskConfigSchema", 4269 } 4270 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4271 return srv.(DriverServer).TaskConfigSchema(ctx, req.(*TaskConfigSchemaRequest)) 4272 } 4273 return interceptor(ctx, in, info, handler) 4274 } 4275 4276 func _Driver_Capabilities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4277 in := new(CapabilitiesRequest) 4278 if err := dec(in); err != nil { 4279 return nil, err 4280 } 4281 if interceptor == nil { 4282 return srv.(DriverServer).Capabilities(ctx, in) 4283 } 4284 info := &grpc.UnaryServerInfo{ 4285 Server: srv, 4286 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/Capabilities", 4287 } 4288 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4289 return srv.(DriverServer).Capabilities(ctx, req.(*CapabilitiesRequest)) 4290 } 4291 return interceptor(ctx, in, info, handler) 4292 } 4293 4294 func _Driver_Fingerprint_Handler(srv interface{}, stream grpc.ServerStream) error { 4295 m := new(FingerprintRequest) 4296 if err := stream.RecvMsg(m); err != nil { 4297 return err 4298 } 4299 return srv.(DriverServer).Fingerprint(m, &driverFingerprintServer{stream}) 4300 } 4301 4302 type Driver_FingerprintServer interface { 4303 Send(*FingerprintResponse) error 4304 grpc.ServerStream 4305 } 4306 4307 type driverFingerprintServer struct { 4308 grpc.ServerStream 4309 } 4310 4311 func (x *driverFingerprintServer) Send(m *FingerprintResponse) error { 4312 return x.ServerStream.SendMsg(m) 4313 } 4314 4315 func _Driver_RecoverTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4316 in := new(RecoverTaskRequest) 4317 if err := dec(in); err != nil { 4318 return nil, err 4319 } 4320 if interceptor == nil { 4321 return srv.(DriverServer).RecoverTask(ctx, in) 4322 } 4323 info := &grpc.UnaryServerInfo{ 4324 Server: srv, 4325 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/RecoverTask", 4326 } 4327 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4328 return srv.(DriverServer).RecoverTask(ctx, req.(*RecoverTaskRequest)) 4329 } 4330 return interceptor(ctx, in, info, handler) 4331 } 4332 4333 func _Driver_StartTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4334 in := new(StartTaskRequest) 4335 if err := dec(in); err != nil { 4336 return nil, err 4337 } 4338 if interceptor == nil { 4339 return srv.(DriverServer).StartTask(ctx, in) 4340 } 4341 info := &grpc.UnaryServerInfo{ 4342 Server: srv, 4343 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/StartTask", 4344 } 4345 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4346 return srv.(DriverServer).StartTask(ctx, req.(*StartTaskRequest)) 4347 } 4348 return interceptor(ctx, in, info, handler) 4349 } 4350 4351 func _Driver_WaitTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4352 in := new(WaitTaskRequest) 4353 if err := dec(in); err != nil { 4354 return nil, err 4355 } 4356 if interceptor == nil { 4357 return srv.(DriverServer).WaitTask(ctx, in) 4358 } 4359 info := &grpc.UnaryServerInfo{ 4360 Server: srv, 4361 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/WaitTask", 4362 } 4363 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4364 return srv.(DriverServer).WaitTask(ctx, req.(*WaitTaskRequest)) 4365 } 4366 return interceptor(ctx, in, info, handler) 4367 } 4368 4369 func _Driver_StopTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4370 in := new(StopTaskRequest) 4371 if err := dec(in); err != nil { 4372 return nil, err 4373 } 4374 if interceptor == nil { 4375 return srv.(DriverServer).StopTask(ctx, in) 4376 } 4377 info := &grpc.UnaryServerInfo{ 4378 Server: srv, 4379 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/StopTask", 4380 } 4381 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4382 return srv.(DriverServer).StopTask(ctx, req.(*StopTaskRequest)) 4383 } 4384 return interceptor(ctx, in, info, handler) 4385 } 4386 4387 func _Driver_DestroyTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4388 in := new(DestroyTaskRequest) 4389 if err := dec(in); err != nil { 4390 return nil, err 4391 } 4392 if interceptor == nil { 4393 return srv.(DriverServer).DestroyTask(ctx, in) 4394 } 4395 info := &grpc.UnaryServerInfo{ 4396 Server: srv, 4397 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/DestroyTask", 4398 } 4399 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4400 return srv.(DriverServer).DestroyTask(ctx, req.(*DestroyTaskRequest)) 4401 } 4402 return interceptor(ctx, in, info, handler) 4403 } 4404 4405 func _Driver_InspectTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4406 in := new(InspectTaskRequest) 4407 if err := dec(in); err != nil { 4408 return nil, err 4409 } 4410 if interceptor == nil { 4411 return srv.(DriverServer).InspectTask(ctx, in) 4412 } 4413 info := &grpc.UnaryServerInfo{ 4414 Server: srv, 4415 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/InspectTask", 4416 } 4417 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4418 return srv.(DriverServer).InspectTask(ctx, req.(*InspectTaskRequest)) 4419 } 4420 return interceptor(ctx, in, info, handler) 4421 } 4422 4423 func _Driver_TaskStats_Handler(srv interface{}, stream grpc.ServerStream) error { 4424 m := new(TaskStatsRequest) 4425 if err := stream.RecvMsg(m); err != nil { 4426 return err 4427 } 4428 return srv.(DriverServer).TaskStats(m, &driverTaskStatsServer{stream}) 4429 } 4430 4431 type Driver_TaskStatsServer interface { 4432 Send(*TaskStatsResponse) error 4433 grpc.ServerStream 4434 } 4435 4436 type driverTaskStatsServer struct { 4437 grpc.ServerStream 4438 } 4439 4440 func (x *driverTaskStatsServer) Send(m *TaskStatsResponse) error { 4441 return x.ServerStream.SendMsg(m) 4442 } 4443 4444 func _Driver_TaskEvents_Handler(srv interface{}, stream grpc.ServerStream) error { 4445 m := new(TaskEventsRequest) 4446 if err := stream.RecvMsg(m); err != nil { 4447 return err 4448 } 4449 return srv.(DriverServer).TaskEvents(m, &driverTaskEventsServer{stream}) 4450 } 4451 4452 type Driver_TaskEventsServer interface { 4453 Send(*DriverTaskEvent) error 4454 grpc.ServerStream 4455 } 4456 4457 type driverTaskEventsServer struct { 4458 grpc.ServerStream 4459 } 4460 4461 func (x *driverTaskEventsServer) Send(m *DriverTaskEvent) error { 4462 return x.ServerStream.SendMsg(m) 4463 } 4464 4465 func _Driver_SignalTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4466 in := new(SignalTaskRequest) 4467 if err := dec(in); err != nil { 4468 return nil, err 4469 } 4470 if interceptor == nil { 4471 return srv.(DriverServer).SignalTask(ctx, in) 4472 } 4473 info := &grpc.UnaryServerInfo{ 4474 Server: srv, 4475 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/SignalTask", 4476 } 4477 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4478 return srv.(DriverServer).SignalTask(ctx, req.(*SignalTaskRequest)) 4479 } 4480 return interceptor(ctx, in, info, handler) 4481 } 4482 4483 func _Driver_ExecTask_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4484 in := new(ExecTaskRequest) 4485 if err := dec(in); err != nil { 4486 return nil, err 4487 } 4488 if interceptor == nil { 4489 return srv.(DriverServer).ExecTask(ctx, in) 4490 } 4491 info := &grpc.UnaryServerInfo{ 4492 Server: srv, 4493 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/ExecTask", 4494 } 4495 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4496 return srv.(DriverServer).ExecTask(ctx, req.(*ExecTaskRequest)) 4497 } 4498 return interceptor(ctx, in, info, handler) 4499 } 4500 4501 func _Driver_ExecTaskStreaming_Handler(srv interface{}, stream grpc.ServerStream) error { 4502 return srv.(DriverServer).ExecTaskStreaming(&driverExecTaskStreamingServer{stream}) 4503 } 4504 4505 type Driver_ExecTaskStreamingServer interface { 4506 Send(*ExecTaskStreamingResponse) error 4507 Recv() (*ExecTaskStreamingRequest, error) 4508 grpc.ServerStream 4509 } 4510 4511 type driverExecTaskStreamingServer struct { 4512 grpc.ServerStream 4513 } 4514 4515 func (x *driverExecTaskStreamingServer) Send(m *ExecTaskStreamingResponse) error { 4516 return x.ServerStream.SendMsg(m) 4517 } 4518 4519 func (x *driverExecTaskStreamingServer) Recv() (*ExecTaskStreamingRequest, error) { 4520 m := new(ExecTaskStreamingRequest) 4521 if err := x.ServerStream.RecvMsg(m); err != nil { 4522 return nil, err 4523 } 4524 return m, nil 4525 } 4526 4527 func _Driver_CreateNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4528 in := new(CreateNetworkRequest) 4529 if err := dec(in); err != nil { 4530 return nil, err 4531 } 4532 if interceptor == nil { 4533 return srv.(DriverServer).CreateNetwork(ctx, in) 4534 } 4535 info := &grpc.UnaryServerInfo{ 4536 Server: srv, 4537 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/CreateNetwork", 4538 } 4539 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4540 return srv.(DriverServer).CreateNetwork(ctx, req.(*CreateNetworkRequest)) 4541 } 4542 return interceptor(ctx, in, info, handler) 4543 } 4544 4545 func _Driver_DestroyNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 4546 in := new(DestroyNetworkRequest) 4547 if err := dec(in); err != nil { 4548 return nil, err 4549 } 4550 if interceptor == nil { 4551 return srv.(DriverServer).DestroyNetwork(ctx, in) 4552 } 4553 info := &grpc.UnaryServerInfo{ 4554 Server: srv, 4555 FullMethod: "/hashicorp.nomad.plugins.drivers.proto.Driver/DestroyNetwork", 4556 } 4557 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 4558 return srv.(DriverServer).DestroyNetwork(ctx, req.(*DestroyNetworkRequest)) 4559 } 4560 return interceptor(ctx, in, info, handler) 4561 } 4562 4563 var _Driver_serviceDesc = grpc.ServiceDesc{ 4564 ServiceName: "hashicorp.nomad.plugins.drivers.proto.Driver", 4565 HandlerType: (*DriverServer)(nil), 4566 Methods: []grpc.MethodDesc{ 4567 { 4568 MethodName: "TaskConfigSchema", 4569 Handler: _Driver_TaskConfigSchema_Handler, 4570 }, 4571 { 4572 MethodName: "Capabilities", 4573 Handler: _Driver_Capabilities_Handler, 4574 }, 4575 { 4576 MethodName: "RecoverTask", 4577 Handler: _Driver_RecoverTask_Handler, 4578 }, 4579 { 4580 MethodName: "StartTask", 4581 Handler: _Driver_StartTask_Handler, 4582 }, 4583 { 4584 MethodName: "WaitTask", 4585 Handler: _Driver_WaitTask_Handler, 4586 }, 4587 { 4588 MethodName: "StopTask", 4589 Handler: _Driver_StopTask_Handler, 4590 }, 4591 { 4592 MethodName: "DestroyTask", 4593 Handler: _Driver_DestroyTask_Handler, 4594 }, 4595 { 4596 MethodName: "InspectTask", 4597 Handler: _Driver_InspectTask_Handler, 4598 }, 4599 { 4600 MethodName: "SignalTask", 4601 Handler: _Driver_SignalTask_Handler, 4602 }, 4603 { 4604 MethodName: "ExecTask", 4605 Handler: _Driver_ExecTask_Handler, 4606 }, 4607 { 4608 MethodName: "CreateNetwork", 4609 Handler: _Driver_CreateNetwork_Handler, 4610 }, 4611 { 4612 MethodName: "DestroyNetwork", 4613 Handler: _Driver_DestroyNetwork_Handler, 4614 }, 4615 }, 4616 Streams: []grpc.StreamDesc{ 4617 { 4618 StreamName: "Fingerprint", 4619 Handler: _Driver_Fingerprint_Handler, 4620 ServerStreams: true, 4621 }, 4622 { 4623 StreamName: "TaskStats", 4624 Handler: _Driver_TaskStats_Handler, 4625 ServerStreams: true, 4626 }, 4627 { 4628 StreamName: "TaskEvents", 4629 Handler: _Driver_TaskEvents_Handler, 4630 ServerStreams: true, 4631 }, 4632 { 4633 StreamName: "ExecTaskStreaming", 4634 Handler: _Driver_ExecTaskStreaming_Handler, 4635 ServerStreams: true, 4636 ClientStreams: true, 4637 }, 4638 }, 4639 Metadata: "plugins/drivers/proto/driver.proto", 4640 }