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