github.com/bigcommerce/nomad@v0.9.3-bc/drivers/shared/executor/proto/executor.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: drivers/shared/executor/proto/executor.proto 3 4 package proto 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 import timestamp "github.com/golang/protobuf/ptypes/timestamp" 10 import proto1 "github.com/hashicorp/nomad/plugins/drivers/proto" 11 12 import ( 13 context "golang.org/x/net/context" 14 grpc "google.golang.org/grpc" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = fmt.Errorf 20 var _ = math.Inf 21 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 27 28 type LaunchRequest struct { 29 Cmd string `protobuf:"bytes,1,opt,name=cmd,proto3" json:"cmd,omitempty"` 30 Args []string `protobuf:"bytes,2,rep,name=args,proto3" json:"args,omitempty"` 31 Resources *proto1.Resources `protobuf:"bytes,3,opt,name=resources,proto3" json:"resources,omitempty"` 32 StdoutPath string `protobuf:"bytes,4,opt,name=stdout_path,json=stdoutPath,proto3" json:"stdout_path,omitempty"` 33 StderrPath string `protobuf:"bytes,5,opt,name=stderr_path,json=stderrPath,proto3" json:"stderr_path,omitempty"` 34 Env []string `protobuf:"bytes,6,rep,name=env,proto3" json:"env,omitempty"` 35 User string `protobuf:"bytes,7,opt,name=user,proto3" json:"user,omitempty"` 36 TaskDir string `protobuf:"bytes,8,opt,name=task_dir,json=taskDir,proto3" json:"task_dir,omitempty"` 37 ResourceLimits bool `protobuf:"varint,9,opt,name=resource_limits,json=resourceLimits,proto3" json:"resource_limits,omitempty"` 38 BasicProcessCgroup bool `protobuf:"varint,10,opt,name=basic_process_cgroup,json=basicProcessCgroup,proto3" json:"basic_process_cgroup,omitempty"` 39 Mounts []*proto1.Mount `protobuf:"bytes,11,rep,name=mounts,proto3" json:"mounts,omitempty"` 40 Devices []*proto1.Device `protobuf:"bytes,12,rep,name=devices,proto3" json:"devices,omitempty"` 41 XXX_NoUnkeyedLiteral struct{} `json:"-"` 42 XXX_unrecognized []byte `json:"-"` 43 XXX_sizecache int32 `json:"-"` 44 } 45 46 func (m *LaunchRequest) Reset() { *m = LaunchRequest{} } 47 func (m *LaunchRequest) String() string { return proto.CompactTextString(m) } 48 func (*LaunchRequest) ProtoMessage() {} 49 func (*LaunchRequest) Descriptor() ([]byte, []int) { 50 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{0} 51 } 52 func (m *LaunchRequest) XXX_Unmarshal(b []byte) error { 53 return xxx_messageInfo_LaunchRequest.Unmarshal(m, b) 54 } 55 func (m *LaunchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 56 return xxx_messageInfo_LaunchRequest.Marshal(b, m, deterministic) 57 } 58 func (dst *LaunchRequest) XXX_Merge(src proto.Message) { 59 xxx_messageInfo_LaunchRequest.Merge(dst, src) 60 } 61 func (m *LaunchRequest) XXX_Size() int { 62 return xxx_messageInfo_LaunchRequest.Size(m) 63 } 64 func (m *LaunchRequest) XXX_DiscardUnknown() { 65 xxx_messageInfo_LaunchRequest.DiscardUnknown(m) 66 } 67 68 var xxx_messageInfo_LaunchRequest proto.InternalMessageInfo 69 70 func (m *LaunchRequest) GetCmd() string { 71 if m != nil { 72 return m.Cmd 73 } 74 return "" 75 } 76 77 func (m *LaunchRequest) GetArgs() []string { 78 if m != nil { 79 return m.Args 80 } 81 return nil 82 } 83 84 func (m *LaunchRequest) GetResources() *proto1.Resources { 85 if m != nil { 86 return m.Resources 87 } 88 return nil 89 } 90 91 func (m *LaunchRequest) GetStdoutPath() string { 92 if m != nil { 93 return m.StdoutPath 94 } 95 return "" 96 } 97 98 func (m *LaunchRequest) GetStderrPath() string { 99 if m != nil { 100 return m.StderrPath 101 } 102 return "" 103 } 104 105 func (m *LaunchRequest) GetEnv() []string { 106 if m != nil { 107 return m.Env 108 } 109 return nil 110 } 111 112 func (m *LaunchRequest) GetUser() string { 113 if m != nil { 114 return m.User 115 } 116 return "" 117 } 118 119 func (m *LaunchRequest) GetTaskDir() string { 120 if m != nil { 121 return m.TaskDir 122 } 123 return "" 124 } 125 126 func (m *LaunchRequest) GetResourceLimits() bool { 127 if m != nil { 128 return m.ResourceLimits 129 } 130 return false 131 } 132 133 func (m *LaunchRequest) GetBasicProcessCgroup() bool { 134 if m != nil { 135 return m.BasicProcessCgroup 136 } 137 return false 138 } 139 140 func (m *LaunchRequest) GetMounts() []*proto1.Mount { 141 if m != nil { 142 return m.Mounts 143 } 144 return nil 145 } 146 147 func (m *LaunchRequest) GetDevices() []*proto1.Device { 148 if m != nil { 149 return m.Devices 150 } 151 return nil 152 } 153 154 type LaunchResponse struct { 155 Process *ProcessState `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"` 156 XXX_NoUnkeyedLiteral struct{} `json:"-"` 157 XXX_unrecognized []byte `json:"-"` 158 XXX_sizecache int32 `json:"-"` 159 } 160 161 func (m *LaunchResponse) Reset() { *m = LaunchResponse{} } 162 func (m *LaunchResponse) String() string { return proto.CompactTextString(m) } 163 func (*LaunchResponse) ProtoMessage() {} 164 func (*LaunchResponse) Descriptor() ([]byte, []int) { 165 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{1} 166 } 167 func (m *LaunchResponse) XXX_Unmarshal(b []byte) error { 168 return xxx_messageInfo_LaunchResponse.Unmarshal(m, b) 169 } 170 func (m *LaunchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 171 return xxx_messageInfo_LaunchResponse.Marshal(b, m, deterministic) 172 } 173 func (dst *LaunchResponse) XXX_Merge(src proto.Message) { 174 xxx_messageInfo_LaunchResponse.Merge(dst, src) 175 } 176 func (m *LaunchResponse) XXX_Size() int { 177 return xxx_messageInfo_LaunchResponse.Size(m) 178 } 179 func (m *LaunchResponse) XXX_DiscardUnknown() { 180 xxx_messageInfo_LaunchResponse.DiscardUnknown(m) 181 } 182 183 var xxx_messageInfo_LaunchResponse proto.InternalMessageInfo 184 185 func (m *LaunchResponse) GetProcess() *ProcessState { 186 if m != nil { 187 return m.Process 188 } 189 return nil 190 } 191 192 type WaitRequest struct { 193 XXX_NoUnkeyedLiteral struct{} `json:"-"` 194 XXX_unrecognized []byte `json:"-"` 195 XXX_sizecache int32 `json:"-"` 196 } 197 198 func (m *WaitRequest) Reset() { *m = WaitRequest{} } 199 func (m *WaitRequest) String() string { return proto.CompactTextString(m) } 200 func (*WaitRequest) ProtoMessage() {} 201 func (*WaitRequest) Descriptor() ([]byte, []int) { 202 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{2} 203 } 204 func (m *WaitRequest) XXX_Unmarshal(b []byte) error { 205 return xxx_messageInfo_WaitRequest.Unmarshal(m, b) 206 } 207 func (m *WaitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 208 return xxx_messageInfo_WaitRequest.Marshal(b, m, deterministic) 209 } 210 func (dst *WaitRequest) XXX_Merge(src proto.Message) { 211 xxx_messageInfo_WaitRequest.Merge(dst, src) 212 } 213 func (m *WaitRequest) XXX_Size() int { 214 return xxx_messageInfo_WaitRequest.Size(m) 215 } 216 func (m *WaitRequest) XXX_DiscardUnknown() { 217 xxx_messageInfo_WaitRequest.DiscardUnknown(m) 218 } 219 220 var xxx_messageInfo_WaitRequest proto.InternalMessageInfo 221 222 type WaitResponse struct { 223 Process *ProcessState `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"` 224 XXX_NoUnkeyedLiteral struct{} `json:"-"` 225 XXX_unrecognized []byte `json:"-"` 226 XXX_sizecache int32 `json:"-"` 227 } 228 229 func (m *WaitResponse) Reset() { *m = WaitResponse{} } 230 func (m *WaitResponse) String() string { return proto.CompactTextString(m) } 231 func (*WaitResponse) ProtoMessage() {} 232 func (*WaitResponse) Descriptor() ([]byte, []int) { 233 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{3} 234 } 235 func (m *WaitResponse) XXX_Unmarshal(b []byte) error { 236 return xxx_messageInfo_WaitResponse.Unmarshal(m, b) 237 } 238 func (m *WaitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 239 return xxx_messageInfo_WaitResponse.Marshal(b, m, deterministic) 240 } 241 func (dst *WaitResponse) XXX_Merge(src proto.Message) { 242 xxx_messageInfo_WaitResponse.Merge(dst, src) 243 } 244 func (m *WaitResponse) XXX_Size() int { 245 return xxx_messageInfo_WaitResponse.Size(m) 246 } 247 func (m *WaitResponse) XXX_DiscardUnknown() { 248 xxx_messageInfo_WaitResponse.DiscardUnknown(m) 249 } 250 251 var xxx_messageInfo_WaitResponse proto.InternalMessageInfo 252 253 func (m *WaitResponse) GetProcess() *ProcessState { 254 if m != nil { 255 return m.Process 256 } 257 return nil 258 } 259 260 type ShutdownRequest struct { 261 Signal string `protobuf:"bytes,1,opt,name=signal,proto3" json:"signal,omitempty"` 262 GracePeriod int64 `protobuf:"varint,2,opt,name=grace_period,json=gracePeriod,proto3" json:"grace_period,omitempty"` 263 XXX_NoUnkeyedLiteral struct{} `json:"-"` 264 XXX_unrecognized []byte `json:"-"` 265 XXX_sizecache int32 `json:"-"` 266 } 267 268 func (m *ShutdownRequest) Reset() { *m = ShutdownRequest{} } 269 func (m *ShutdownRequest) String() string { return proto.CompactTextString(m) } 270 func (*ShutdownRequest) ProtoMessage() {} 271 func (*ShutdownRequest) Descriptor() ([]byte, []int) { 272 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{4} 273 } 274 func (m *ShutdownRequest) XXX_Unmarshal(b []byte) error { 275 return xxx_messageInfo_ShutdownRequest.Unmarshal(m, b) 276 } 277 func (m *ShutdownRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 278 return xxx_messageInfo_ShutdownRequest.Marshal(b, m, deterministic) 279 } 280 func (dst *ShutdownRequest) XXX_Merge(src proto.Message) { 281 xxx_messageInfo_ShutdownRequest.Merge(dst, src) 282 } 283 func (m *ShutdownRequest) XXX_Size() int { 284 return xxx_messageInfo_ShutdownRequest.Size(m) 285 } 286 func (m *ShutdownRequest) XXX_DiscardUnknown() { 287 xxx_messageInfo_ShutdownRequest.DiscardUnknown(m) 288 } 289 290 var xxx_messageInfo_ShutdownRequest proto.InternalMessageInfo 291 292 func (m *ShutdownRequest) GetSignal() string { 293 if m != nil { 294 return m.Signal 295 } 296 return "" 297 } 298 299 func (m *ShutdownRequest) GetGracePeriod() int64 { 300 if m != nil { 301 return m.GracePeriod 302 } 303 return 0 304 } 305 306 type ShutdownResponse struct { 307 XXX_NoUnkeyedLiteral struct{} `json:"-"` 308 XXX_unrecognized []byte `json:"-"` 309 XXX_sizecache int32 `json:"-"` 310 } 311 312 func (m *ShutdownResponse) Reset() { *m = ShutdownResponse{} } 313 func (m *ShutdownResponse) String() string { return proto.CompactTextString(m) } 314 func (*ShutdownResponse) ProtoMessage() {} 315 func (*ShutdownResponse) Descriptor() ([]byte, []int) { 316 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{5} 317 } 318 func (m *ShutdownResponse) XXX_Unmarshal(b []byte) error { 319 return xxx_messageInfo_ShutdownResponse.Unmarshal(m, b) 320 } 321 func (m *ShutdownResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 322 return xxx_messageInfo_ShutdownResponse.Marshal(b, m, deterministic) 323 } 324 func (dst *ShutdownResponse) XXX_Merge(src proto.Message) { 325 xxx_messageInfo_ShutdownResponse.Merge(dst, src) 326 } 327 func (m *ShutdownResponse) XXX_Size() int { 328 return xxx_messageInfo_ShutdownResponse.Size(m) 329 } 330 func (m *ShutdownResponse) XXX_DiscardUnknown() { 331 xxx_messageInfo_ShutdownResponse.DiscardUnknown(m) 332 } 333 334 var xxx_messageInfo_ShutdownResponse proto.InternalMessageInfo 335 336 type UpdateResourcesRequest struct { 337 Resources *proto1.Resources `protobuf:"bytes,1,opt,name=resources,proto3" json:"resources,omitempty"` 338 XXX_NoUnkeyedLiteral struct{} `json:"-"` 339 XXX_unrecognized []byte `json:"-"` 340 XXX_sizecache int32 `json:"-"` 341 } 342 343 func (m *UpdateResourcesRequest) Reset() { *m = UpdateResourcesRequest{} } 344 func (m *UpdateResourcesRequest) String() string { return proto.CompactTextString(m) } 345 func (*UpdateResourcesRequest) ProtoMessage() {} 346 func (*UpdateResourcesRequest) Descriptor() ([]byte, []int) { 347 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{6} 348 } 349 func (m *UpdateResourcesRequest) XXX_Unmarshal(b []byte) error { 350 return xxx_messageInfo_UpdateResourcesRequest.Unmarshal(m, b) 351 } 352 func (m *UpdateResourcesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 353 return xxx_messageInfo_UpdateResourcesRequest.Marshal(b, m, deterministic) 354 } 355 func (dst *UpdateResourcesRequest) XXX_Merge(src proto.Message) { 356 xxx_messageInfo_UpdateResourcesRequest.Merge(dst, src) 357 } 358 func (m *UpdateResourcesRequest) XXX_Size() int { 359 return xxx_messageInfo_UpdateResourcesRequest.Size(m) 360 } 361 func (m *UpdateResourcesRequest) XXX_DiscardUnknown() { 362 xxx_messageInfo_UpdateResourcesRequest.DiscardUnknown(m) 363 } 364 365 var xxx_messageInfo_UpdateResourcesRequest proto.InternalMessageInfo 366 367 func (m *UpdateResourcesRequest) GetResources() *proto1.Resources { 368 if m != nil { 369 return m.Resources 370 } 371 return nil 372 } 373 374 type UpdateResourcesResponse struct { 375 XXX_NoUnkeyedLiteral struct{} `json:"-"` 376 XXX_unrecognized []byte `json:"-"` 377 XXX_sizecache int32 `json:"-"` 378 } 379 380 func (m *UpdateResourcesResponse) Reset() { *m = UpdateResourcesResponse{} } 381 func (m *UpdateResourcesResponse) String() string { return proto.CompactTextString(m) } 382 func (*UpdateResourcesResponse) ProtoMessage() {} 383 func (*UpdateResourcesResponse) Descriptor() ([]byte, []int) { 384 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{7} 385 } 386 func (m *UpdateResourcesResponse) XXX_Unmarshal(b []byte) error { 387 return xxx_messageInfo_UpdateResourcesResponse.Unmarshal(m, b) 388 } 389 func (m *UpdateResourcesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 390 return xxx_messageInfo_UpdateResourcesResponse.Marshal(b, m, deterministic) 391 } 392 func (dst *UpdateResourcesResponse) XXX_Merge(src proto.Message) { 393 xxx_messageInfo_UpdateResourcesResponse.Merge(dst, src) 394 } 395 func (m *UpdateResourcesResponse) XXX_Size() int { 396 return xxx_messageInfo_UpdateResourcesResponse.Size(m) 397 } 398 func (m *UpdateResourcesResponse) XXX_DiscardUnknown() { 399 xxx_messageInfo_UpdateResourcesResponse.DiscardUnknown(m) 400 } 401 402 var xxx_messageInfo_UpdateResourcesResponse proto.InternalMessageInfo 403 404 type VersionRequest struct { 405 XXX_NoUnkeyedLiteral struct{} `json:"-"` 406 XXX_unrecognized []byte `json:"-"` 407 XXX_sizecache int32 `json:"-"` 408 } 409 410 func (m *VersionRequest) Reset() { *m = VersionRequest{} } 411 func (m *VersionRequest) String() string { return proto.CompactTextString(m) } 412 func (*VersionRequest) ProtoMessage() {} 413 func (*VersionRequest) Descriptor() ([]byte, []int) { 414 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{8} 415 } 416 func (m *VersionRequest) XXX_Unmarshal(b []byte) error { 417 return xxx_messageInfo_VersionRequest.Unmarshal(m, b) 418 } 419 func (m *VersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 420 return xxx_messageInfo_VersionRequest.Marshal(b, m, deterministic) 421 } 422 func (dst *VersionRequest) XXX_Merge(src proto.Message) { 423 xxx_messageInfo_VersionRequest.Merge(dst, src) 424 } 425 func (m *VersionRequest) XXX_Size() int { 426 return xxx_messageInfo_VersionRequest.Size(m) 427 } 428 func (m *VersionRequest) XXX_DiscardUnknown() { 429 xxx_messageInfo_VersionRequest.DiscardUnknown(m) 430 } 431 432 var xxx_messageInfo_VersionRequest proto.InternalMessageInfo 433 434 type VersionResponse struct { 435 Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"` 436 XXX_NoUnkeyedLiteral struct{} `json:"-"` 437 XXX_unrecognized []byte `json:"-"` 438 XXX_sizecache int32 `json:"-"` 439 } 440 441 func (m *VersionResponse) Reset() { *m = VersionResponse{} } 442 func (m *VersionResponse) String() string { return proto.CompactTextString(m) } 443 func (*VersionResponse) ProtoMessage() {} 444 func (*VersionResponse) Descriptor() ([]byte, []int) { 445 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{9} 446 } 447 func (m *VersionResponse) XXX_Unmarshal(b []byte) error { 448 return xxx_messageInfo_VersionResponse.Unmarshal(m, b) 449 } 450 func (m *VersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 451 return xxx_messageInfo_VersionResponse.Marshal(b, m, deterministic) 452 } 453 func (dst *VersionResponse) XXX_Merge(src proto.Message) { 454 xxx_messageInfo_VersionResponse.Merge(dst, src) 455 } 456 func (m *VersionResponse) XXX_Size() int { 457 return xxx_messageInfo_VersionResponse.Size(m) 458 } 459 func (m *VersionResponse) XXX_DiscardUnknown() { 460 xxx_messageInfo_VersionResponse.DiscardUnknown(m) 461 } 462 463 var xxx_messageInfo_VersionResponse proto.InternalMessageInfo 464 465 func (m *VersionResponse) GetVersion() string { 466 if m != nil { 467 return m.Version 468 } 469 return "" 470 } 471 472 type StatsRequest struct { 473 Interval int64 `protobuf:"varint,1,opt,name=interval,proto3" json:"interval,omitempty"` 474 XXX_NoUnkeyedLiteral struct{} `json:"-"` 475 XXX_unrecognized []byte `json:"-"` 476 XXX_sizecache int32 `json:"-"` 477 } 478 479 func (m *StatsRequest) Reset() { *m = StatsRequest{} } 480 func (m *StatsRequest) String() string { return proto.CompactTextString(m) } 481 func (*StatsRequest) ProtoMessage() {} 482 func (*StatsRequest) Descriptor() ([]byte, []int) { 483 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{10} 484 } 485 func (m *StatsRequest) XXX_Unmarshal(b []byte) error { 486 return xxx_messageInfo_StatsRequest.Unmarshal(m, b) 487 } 488 func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 489 return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic) 490 } 491 func (dst *StatsRequest) XXX_Merge(src proto.Message) { 492 xxx_messageInfo_StatsRequest.Merge(dst, src) 493 } 494 func (m *StatsRequest) XXX_Size() int { 495 return xxx_messageInfo_StatsRequest.Size(m) 496 } 497 func (m *StatsRequest) XXX_DiscardUnknown() { 498 xxx_messageInfo_StatsRequest.DiscardUnknown(m) 499 } 500 501 var xxx_messageInfo_StatsRequest proto.InternalMessageInfo 502 503 func (m *StatsRequest) GetInterval() int64 { 504 if m != nil { 505 return m.Interval 506 } 507 return 0 508 } 509 510 type StatsResponse struct { 511 Stats *proto1.TaskStats `protobuf:"bytes,1,opt,name=stats,proto3" json:"stats,omitempty"` 512 XXX_NoUnkeyedLiteral struct{} `json:"-"` 513 XXX_unrecognized []byte `json:"-"` 514 XXX_sizecache int32 `json:"-"` 515 } 516 517 func (m *StatsResponse) Reset() { *m = StatsResponse{} } 518 func (m *StatsResponse) String() string { return proto.CompactTextString(m) } 519 func (*StatsResponse) ProtoMessage() {} 520 func (*StatsResponse) Descriptor() ([]byte, []int) { 521 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{11} 522 } 523 func (m *StatsResponse) XXX_Unmarshal(b []byte) error { 524 return xxx_messageInfo_StatsResponse.Unmarshal(m, b) 525 } 526 func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 527 return xxx_messageInfo_StatsResponse.Marshal(b, m, deterministic) 528 } 529 func (dst *StatsResponse) XXX_Merge(src proto.Message) { 530 xxx_messageInfo_StatsResponse.Merge(dst, src) 531 } 532 func (m *StatsResponse) XXX_Size() int { 533 return xxx_messageInfo_StatsResponse.Size(m) 534 } 535 func (m *StatsResponse) XXX_DiscardUnknown() { 536 xxx_messageInfo_StatsResponse.DiscardUnknown(m) 537 } 538 539 var xxx_messageInfo_StatsResponse proto.InternalMessageInfo 540 541 func (m *StatsResponse) GetStats() *proto1.TaskStats { 542 if m != nil { 543 return m.Stats 544 } 545 return nil 546 } 547 548 type SignalRequest struct { 549 Signal int32 `protobuf:"varint,1,opt,name=signal,proto3" json:"signal,omitempty"` 550 XXX_NoUnkeyedLiteral struct{} `json:"-"` 551 XXX_unrecognized []byte `json:"-"` 552 XXX_sizecache int32 `json:"-"` 553 } 554 555 func (m *SignalRequest) Reset() { *m = SignalRequest{} } 556 func (m *SignalRequest) String() string { return proto.CompactTextString(m) } 557 func (*SignalRequest) ProtoMessage() {} 558 func (*SignalRequest) Descriptor() ([]byte, []int) { 559 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{12} 560 } 561 func (m *SignalRequest) XXX_Unmarshal(b []byte) error { 562 return xxx_messageInfo_SignalRequest.Unmarshal(m, b) 563 } 564 func (m *SignalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 565 return xxx_messageInfo_SignalRequest.Marshal(b, m, deterministic) 566 } 567 func (dst *SignalRequest) XXX_Merge(src proto.Message) { 568 xxx_messageInfo_SignalRequest.Merge(dst, src) 569 } 570 func (m *SignalRequest) XXX_Size() int { 571 return xxx_messageInfo_SignalRequest.Size(m) 572 } 573 func (m *SignalRequest) XXX_DiscardUnknown() { 574 xxx_messageInfo_SignalRequest.DiscardUnknown(m) 575 } 576 577 var xxx_messageInfo_SignalRequest proto.InternalMessageInfo 578 579 func (m *SignalRequest) GetSignal() int32 { 580 if m != nil { 581 return m.Signal 582 } 583 return 0 584 } 585 586 type SignalResponse struct { 587 XXX_NoUnkeyedLiteral struct{} `json:"-"` 588 XXX_unrecognized []byte `json:"-"` 589 XXX_sizecache int32 `json:"-"` 590 } 591 592 func (m *SignalResponse) Reset() { *m = SignalResponse{} } 593 func (m *SignalResponse) String() string { return proto.CompactTextString(m) } 594 func (*SignalResponse) ProtoMessage() {} 595 func (*SignalResponse) Descriptor() ([]byte, []int) { 596 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{13} 597 } 598 func (m *SignalResponse) XXX_Unmarshal(b []byte) error { 599 return xxx_messageInfo_SignalResponse.Unmarshal(m, b) 600 } 601 func (m *SignalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 602 return xxx_messageInfo_SignalResponse.Marshal(b, m, deterministic) 603 } 604 func (dst *SignalResponse) XXX_Merge(src proto.Message) { 605 xxx_messageInfo_SignalResponse.Merge(dst, src) 606 } 607 func (m *SignalResponse) XXX_Size() int { 608 return xxx_messageInfo_SignalResponse.Size(m) 609 } 610 func (m *SignalResponse) XXX_DiscardUnknown() { 611 xxx_messageInfo_SignalResponse.DiscardUnknown(m) 612 } 613 614 var xxx_messageInfo_SignalResponse proto.InternalMessageInfo 615 616 type ExecRequest struct { 617 Deadline *timestamp.Timestamp `protobuf:"bytes,1,opt,name=deadline,proto3" json:"deadline,omitempty"` 618 Cmd string `protobuf:"bytes,2,opt,name=cmd,proto3" json:"cmd,omitempty"` 619 Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"` 620 XXX_NoUnkeyedLiteral struct{} `json:"-"` 621 XXX_unrecognized []byte `json:"-"` 622 XXX_sizecache int32 `json:"-"` 623 } 624 625 func (m *ExecRequest) Reset() { *m = ExecRequest{} } 626 func (m *ExecRequest) String() string { return proto.CompactTextString(m) } 627 func (*ExecRequest) ProtoMessage() {} 628 func (*ExecRequest) Descriptor() ([]byte, []int) { 629 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{14} 630 } 631 func (m *ExecRequest) XXX_Unmarshal(b []byte) error { 632 return xxx_messageInfo_ExecRequest.Unmarshal(m, b) 633 } 634 func (m *ExecRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 635 return xxx_messageInfo_ExecRequest.Marshal(b, m, deterministic) 636 } 637 func (dst *ExecRequest) XXX_Merge(src proto.Message) { 638 xxx_messageInfo_ExecRequest.Merge(dst, src) 639 } 640 func (m *ExecRequest) XXX_Size() int { 641 return xxx_messageInfo_ExecRequest.Size(m) 642 } 643 func (m *ExecRequest) XXX_DiscardUnknown() { 644 xxx_messageInfo_ExecRequest.DiscardUnknown(m) 645 } 646 647 var xxx_messageInfo_ExecRequest proto.InternalMessageInfo 648 649 func (m *ExecRequest) GetDeadline() *timestamp.Timestamp { 650 if m != nil { 651 return m.Deadline 652 } 653 return nil 654 } 655 656 func (m *ExecRequest) GetCmd() string { 657 if m != nil { 658 return m.Cmd 659 } 660 return "" 661 } 662 663 func (m *ExecRequest) GetArgs() []string { 664 if m != nil { 665 return m.Args 666 } 667 return nil 668 } 669 670 type ExecResponse struct { 671 Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` 672 ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` 673 XXX_NoUnkeyedLiteral struct{} `json:"-"` 674 XXX_unrecognized []byte `json:"-"` 675 XXX_sizecache int32 `json:"-"` 676 } 677 678 func (m *ExecResponse) Reset() { *m = ExecResponse{} } 679 func (m *ExecResponse) String() string { return proto.CompactTextString(m) } 680 func (*ExecResponse) ProtoMessage() {} 681 func (*ExecResponse) Descriptor() ([]byte, []int) { 682 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{15} 683 } 684 func (m *ExecResponse) XXX_Unmarshal(b []byte) error { 685 return xxx_messageInfo_ExecResponse.Unmarshal(m, b) 686 } 687 func (m *ExecResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 688 return xxx_messageInfo_ExecResponse.Marshal(b, m, deterministic) 689 } 690 func (dst *ExecResponse) XXX_Merge(src proto.Message) { 691 xxx_messageInfo_ExecResponse.Merge(dst, src) 692 } 693 func (m *ExecResponse) XXX_Size() int { 694 return xxx_messageInfo_ExecResponse.Size(m) 695 } 696 func (m *ExecResponse) XXX_DiscardUnknown() { 697 xxx_messageInfo_ExecResponse.DiscardUnknown(m) 698 } 699 700 var xxx_messageInfo_ExecResponse proto.InternalMessageInfo 701 702 func (m *ExecResponse) GetOutput() []byte { 703 if m != nil { 704 return m.Output 705 } 706 return nil 707 } 708 709 func (m *ExecResponse) GetExitCode() int32 { 710 if m != nil { 711 return m.ExitCode 712 } 713 return 0 714 } 715 716 type ProcessState struct { 717 Pid int32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` 718 ExitCode int32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"` 719 Signal int32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"` 720 Time *timestamp.Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"` 721 XXX_NoUnkeyedLiteral struct{} `json:"-"` 722 XXX_unrecognized []byte `json:"-"` 723 XXX_sizecache int32 `json:"-"` 724 } 725 726 func (m *ProcessState) Reset() { *m = ProcessState{} } 727 func (m *ProcessState) String() string { return proto.CompactTextString(m) } 728 func (*ProcessState) ProtoMessage() {} 729 func (*ProcessState) Descriptor() ([]byte, []int) { 730 return fileDescriptor_executor_5ea6ca9df3b0f07e, []int{16} 731 } 732 func (m *ProcessState) XXX_Unmarshal(b []byte) error { 733 return xxx_messageInfo_ProcessState.Unmarshal(m, b) 734 } 735 func (m *ProcessState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 736 return xxx_messageInfo_ProcessState.Marshal(b, m, deterministic) 737 } 738 func (dst *ProcessState) XXX_Merge(src proto.Message) { 739 xxx_messageInfo_ProcessState.Merge(dst, src) 740 } 741 func (m *ProcessState) XXX_Size() int { 742 return xxx_messageInfo_ProcessState.Size(m) 743 } 744 func (m *ProcessState) XXX_DiscardUnknown() { 745 xxx_messageInfo_ProcessState.DiscardUnknown(m) 746 } 747 748 var xxx_messageInfo_ProcessState proto.InternalMessageInfo 749 750 func (m *ProcessState) GetPid() int32 { 751 if m != nil { 752 return m.Pid 753 } 754 return 0 755 } 756 757 func (m *ProcessState) GetExitCode() int32 { 758 if m != nil { 759 return m.ExitCode 760 } 761 return 0 762 } 763 764 func (m *ProcessState) GetSignal() int32 { 765 if m != nil { 766 return m.Signal 767 } 768 return 0 769 } 770 771 func (m *ProcessState) GetTime() *timestamp.Timestamp { 772 if m != nil { 773 return m.Time 774 } 775 return nil 776 } 777 778 func init() { 779 proto.RegisterType((*LaunchRequest)(nil), "hashicorp.nomad.plugins.executor.proto.LaunchRequest") 780 proto.RegisterType((*LaunchResponse)(nil), "hashicorp.nomad.plugins.executor.proto.LaunchResponse") 781 proto.RegisterType((*WaitRequest)(nil), "hashicorp.nomad.plugins.executor.proto.WaitRequest") 782 proto.RegisterType((*WaitResponse)(nil), "hashicorp.nomad.plugins.executor.proto.WaitResponse") 783 proto.RegisterType((*ShutdownRequest)(nil), "hashicorp.nomad.plugins.executor.proto.ShutdownRequest") 784 proto.RegisterType((*ShutdownResponse)(nil), "hashicorp.nomad.plugins.executor.proto.ShutdownResponse") 785 proto.RegisterType((*UpdateResourcesRequest)(nil), "hashicorp.nomad.plugins.executor.proto.UpdateResourcesRequest") 786 proto.RegisterType((*UpdateResourcesResponse)(nil), "hashicorp.nomad.plugins.executor.proto.UpdateResourcesResponse") 787 proto.RegisterType((*VersionRequest)(nil), "hashicorp.nomad.plugins.executor.proto.VersionRequest") 788 proto.RegisterType((*VersionResponse)(nil), "hashicorp.nomad.plugins.executor.proto.VersionResponse") 789 proto.RegisterType((*StatsRequest)(nil), "hashicorp.nomad.plugins.executor.proto.StatsRequest") 790 proto.RegisterType((*StatsResponse)(nil), "hashicorp.nomad.plugins.executor.proto.StatsResponse") 791 proto.RegisterType((*SignalRequest)(nil), "hashicorp.nomad.plugins.executor.proto.SignalRequest") 792 proto.RegisterType((*SignalResponse)(nil), "hashicorp.nomad.plugins.executor.proto.SignalResponse") 793 proto.RegisterType((*ExecRequest)(nil), "hashicorp.nomad.plugins.executor.proto.ExecRequest") 794 proto.RegisterType((*ExecResponse)(nil), "hashicorp.nomad.plugins.executor.proto.ExecResponse") 795 proto.RegisterType((*ProcessState)(nil), "hashicorp.nomad.plugins.executor.proto.ProcessState") 796 } 797 798 // Reference imports to suppress errors if they are not otherwise used. 799 var _ context.Context 800 var _ grpc.ClientConn 801 802 // This is a compile-time assertion to ensure that this generated file 803 // is compatible with the grpc package it is being compiled against. 804 const _ = grpc.SupportPackageIsVersion4 805 806 // ExecutorClient is the client API for Executor service. 807 // 808 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 809 type ExecutorClient interface { 810 Launch(ctx context.Context, in *LaunchRequest, opts ...grpc.CallOption) (*LaunchResponse, error) 811 Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*WaitResponse, error) 812 Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) 813 UpdateResources(ctx context.Context, in *UpdateResourcesRequest, opts ...grpc.CallOption) (*UpdateResourcesResponse, error) 814 Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) 815 Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (Executor_StatsClient, error) 816 Signal(ctx context.Context, in *SignalRequest, opts ...grpc.CallOption) (*SignalResponse, error) 817 Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) 818 ExecStreaming(ctx context.Context, opts ...grpc.CallOption) (Executor_ExecStreamingClient, error) 819 } 820 821 type executorClient struct { 822 cc *grpc.ClientConn 823 } 824 825 func NewExecutorClient(cc *grpc.ClientConn) ExecutorClient { 826 return &executorClient{cc} 827 } 828 829 func (c *executorClient) Launch(ctx context.Context, in *LaunchRequest, opts ...grpc.CallOption) (*LaunchResponse, error) { 830 out := new(LaunchResponse) 831 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Launch", in, out, opts...) 832 if err != nil { 833 return nil, err 834 } 835 return out, nil 836 } 837 838 func (c *executorClient) Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*WaitResponse, error) { 839 out := new(WaitResponse) 840 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Wait", in, out, opts...) 841 if err != nil { 842 return nil, err 843 } 844 return out, nil 845 } 846 847 func (c *executorClient) Shutdown(ctx context.Context, in *ShutdownRequest, opts ...grpc.CallOption) (*ShutdownResponse, error) { 848 out := new(ShutdownResponse) 849 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Shutdown", in, out, opts...) 850 if err != nil { 851 return nil, err 852 } 853 return out, nil 854 } 855 856 func (c *executorClient) UpdateResources(ctx context.Context, in *UpdateResourcesRequest, opts ...grpc.CallOption) (*UpdateResourcesResponse, error) { 857 out := new(UpdateResourcesResponse) 858 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/UpdateResources", in, out, opts...) 859 if err != nil { 860 return nil, err 861 } 862 return out, nil 863 } 864 865 func (c *executorClient) Version(ctx context.Context, in *VersionRequest, opts ...grpc.CallOption) (*VersionResponse, error) { 866 out := new(VersionResponse) 867 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Version", in, out, opts...) 868 if err != nil { 869 return nil, err 870 } 871 return out, nil 872 } 873 874 func (c *executorClient) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (Executor_StatsClient, error) { 875 stream, err := c.cc.NewStream(ctx, &_Executor_serviceDesc.Streams[0], "/hashicorp.nomad.plugins.executor.proto.Executor/Stats", opts...) 876 if err != nil { 877 return nil, err 878 } 879 x := &executorStatsClient{stream} 880 if err := x.ClientStream.SendMsg(in); err != nil { 881 return nil, err 882 } 883 if err := x.ClientStream.CloseSend(); err != nil { 884 return nil, err 885 } 886 return x, nil 887 } 888 889 type Executor_StatsClient interface { 890 Recv() (*StatsResponse, error) 891 grpc.ClientStream 892 } 893 894 type executorStatsClient struct { 895 grpc.ClientStream 896 } 897 898 func (x *executorStatsClient) Recv() (*StatsResponse, error) { 899 m := new(StatsResponse) 900 if err := x.ClientStream.RecvMsg(m); err != nil { 901 return nil, err 902 } 903 return m, nil 904 } 905 906 func (c *executorClient) Signal(ctx context.Context, in *SignalRequest, opts ...grpc.CallOption) (*SignalResponse, error) { 907 out := new(SignalResponse) 908 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Signal", in, out, opts...) 909 if err != nil { 910 return nil, err 911 } 912 return out, nil 913 } 914 915 func (c *executorClient) Exec(ctx context.Context, in *ExecRequest, opts ...grpc.CallOption) (*ExecResponse, error) { 916 out := new(ExecResponse) 917 err := c.cc.Invoke(ctx, "/hashicorp.nomad.plugins.executor.proto.Executor/Exec", in, out, opts...) 918 if err != nil { 919 return nil, err 920 } 921 return out, nil 922 } 923 924 func (c *executorClient) ExecStreaming(ctx context.Context, opts ...grpc.CallOption) (Executor_ExecStreamingClient, error) { 925 stream, err := c.cc.NewStream(ctx, &_Executor_serviceDesc.Streams[1], "/hashicorp.nomad.plugins.executor.proto.Executor/ExecStreaming", opts...) 926 if err != nil { 927 return nil, err 928 } 929 x := &executorExecStreamingClient{stream} 930 return x, nil 931 } 932 933 type Executor_ExecStreamingClient interface { 934 Send(*proto1.ExecTaskStreamingRequest) error 935 Recv() (*proto1.ExecTaskStreamingResponse, error) 936 grpc.ClientStream 937 } 938 939 type executorExecStreamingClient struct { 940 grpc.ClientStream 941 } 942 943 func (x *executorExecStreamingClient) Send(m *proto1.ExecTaskStreamingRequest) error { 944 return x.ClientStream.SendMsg(m) 945 } 946 947 func (x *executorExecStreamingClient) Recv() (*proto1.ExecTaskStreamingResponse, error) { 948 m := new(proto1.ExecTaskStreamingResponse) 949 if err := x.ClientStream.RecvMsg(m); err != nil { 950 return nil, err 951 } 952 return m, nil 953 } 954 955 // ExecutorServer is the server API for Executor service. 956 type ExecutorServer interface { 957 Launch(context.Context, *LaunchRequest) (*LaunchResponse, error) 958 Wait(context.Context, *WaitRequest) (*WaitResponse, error) 959 Shutdown(context.Context, *ShutdownRequest) (*ShutdownResponse, error) 960 UpdateResources(context.Context, *UpdateResourcesRequest) (*UpdateResourcesResponse, error) 961 Version(context.Context, *VersionRequest) (*VersionResponse, error) 962 Stats(*StatsRequest, Executor_StatsServer) error 963 Signal(context.Context, *SignalRequest) (*SignalResponse, error) 964 Exec(context.Context, *ExecRequest) (*ExecResponse, error) 965 ExecStreaming(Executor_ExecStreamingServer) error 966 } 967 968 func RegisterExecutorServer(s *grpc.Server, srv ExecutorServer) { 969 s.RegisterService(&_Executor_serviceDesc, srv) 970 } 971 972 func _Executor_Launch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 973 in := new(LaunchRequest) 974 if err := dec(in); err != nil { 975 return nil, err 976 } 977 if interceptor == nil { 978 return srv.(ExecutorServer).Launch(ctx, in) 979 } 980 info := &grpc.UnaryServerInfo{ 981 Server: srv, 982 FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Launch", 983 } 984 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 985 return srv.(ExecutorServer).Launch(ctx, req.(*LaunchRequest)) 986 } 987 return interceptor(ctx, in, info, handler) 988 } 989 990 func _Executor_Wait_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 991 in := new(WaitRequest) 992 if err := dec(in); err != nil { 993 return nil, err 994 } 995 if interceptor == nil { 996 return srv.(ExecutorServer).Wait(ctx, in) 997 } 998 info := &grpc.UnaryServerInfo{ 999 Server: srv, 1000 FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Wait", 1001 } 1002 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1003 return srv.(ExecutorServer).Wait(ctx, req.(*WaitRequest)) 1004 } 1005 return interceptor(ctx, in, info, handler) 1006 } 1007 1008 func _Executor_Shutdown_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1009 in := new(ShutdownRequest) 1010 if err := dec(in); err != nil { 1011 return nil, err 1012 } 1013 if interceptor == nil { 1014 return srv.(ExecutorServer).Shutdown(ctx, in) 1015 } 1016 info := &grpc.UnaryServerInfo{ 1017 Server: srv, 1018 FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Shutdown", 1019 } 1020 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1021 return srv.(ExecutorServer).Shutdown(ctx, req.(*ShutdownRequest)) 1022 } 1023 return interceptor(ctx, in, info, handler) 1024 } 1025 1026 func _Executor_UpdateResources_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1027 in := new(UpdateResourcesRequest) 1028 if err := dec(in); err != nil { 1029 return nil, err 1030 } 1031 if interceptor == nil { 1032 return srv.(ExecutorServer).UpdateResources(ctx, in) 1033 } 1034 info := &grpc.UnaryServerInfo{ 1035 Server: srv, 1036 FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/UpdateResources", 1037 } 1038 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1039 return srv.(ExecutorServer).UpdateResources(ctx, req.(*UpdateResourcesRequest)) 1040 } 1041 return interceptor(ctx, in, info, handler) 1042 } 1043 1044 func _Executor_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1045 in := new(VersionRequest) 1046 if err := dec(in); err != nil { 1047 return nil, err 1048 } 1049 if interceptor == nil { 1050 return srv.(ExecutorServer).Version(ctx, in) 1051 } 1052 info := &grpc.UnaryServerInfo{ 1053 Server: srv, 1054 FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Version", 1055 } 1056 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1057 return srv.(ExecutorServer).Version(ctx, req.(*VersionRequest)) 1058 } 1059 return interceptor(ctx, in, info, handler) 1060 } 1061 1062 func _Executor_Stats_Handler(srv interface{}, stream grpc.ServerStream) error { 1063 m := new(StatsRequest) 1064 if err := stream.RecvMsg(m); err != nil { 1065 return err 1066 } 1067 return srv.(ExecutorServer).Stats(m, &executorStatsServer{stream}) 1068 } 1069 1070 type Executor_StatsServer interface { 1071 Send(*StatsResponse) error 1072 grpc.ServerStream 1073 } 1074 1075 type executorStatsServer struct { 1076 grpc.ServerStream 1077 } 1078 1079 func (x *executorStatsServer) Send(m *StatsResponse) error { 1080 return x.ServerStream.SendMsg(m) 1081 } 1082 1083 func _Executor_Signal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1084 in := new(SignalRequest) 1085 if err := dec(in); err != nil { 1086 return nil, err 1087 } 1088 if interceptor == nil { 1089 return srv.(ExecutorServer).Signal(ctx, in) 1090 } 1091 info := &grpc.UnaryServerInfo{ 1092 Server: srv, 1093 FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Signal", 1094 } 1095 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1096 return srv.(ExecutorServer).Signal(ctx, req.(*SignalRequest)) 1097 } 1098 return interceptor(ctx, in, info, handler) 1099 } 1100 1101 func _Executor_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1102 in := new(ExecRequest) 1103 if err := dec(in); err != nil { 1104 return nil, err 1105 } 1106 if interceptor == nil { 1107 return srv.(ExecutorServer).Exec(ctx, in) 1108 } 1109 info := &grpc.UnaryServerInfo{ 1110 Server: srv, 1111 FullMethod: "/hashicorp.nomad.plugins.executor.proto.Executor/Exec", 1112 } 1113 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1114 return srv.(ExecutorServer).Exec(ctx, req.(*ExecRequest)) 1115 } 1116 return interceptor(ctx, in, info, handler) 1117 } 1118 1119 func _Executor_ExecStreaming_Handler(srv interface{}, stream grpc.ServerStream) error { 1120 return srv.(ExecutorServer).ExecStreaming(&executorExecStreamingServer{stream}) 1121 } 1122 1123 type Executor_ExecStreamingServer interface { 1124 Send(*proto1.ExecTaskStreamingResponse) error 1125 Recv() (*proto1.ExecTaskStreamingRequest, error) 1126 grpc.ServerStream 1127 } 1128 1129 type executorExecStreamingServer struct { 1130 grpc.ServerStream 1131 } 1132 1133 func (x *executorExecStreamingServer) Send(m *proto1.ExecTaskStreamingResponse) error { 1134 return x.ServerStream.SendMsg(m) 1135 } 1136 1137 func (x *executorExecStreamingServer) Recv() (*proto1.ExecTaskStreamingRequest, error) { 1138 m := new(proto1.ExecTaskStreamingRequest) 1139 if err := x.ServerStream.RecvMsg(m); err != nil { 1140 return nil, err 1141 } 1142 return m, nil 1143 } 1144 1145 var _Executor_serviceDesc = grpc.ServiceDesc{ 1146 ServiceName: "hashicorp.nomad.plugins.executor.proto.Executor", 1147 HandlerType: (*ExecutorServer)(nil), 1148 Methods: []grpc.MethodDesc{ 1149 { 1150 MethodName: "Launch", 1151 Handler: _Executor_Launch_Handler, 1152 }, 1153 { 1154 MethodName: "Wait", 1155 Handler: _Executor_Wait_Handler, 1156 }, 1157 { 1158 MethodName: "Shutdown", 1159 Handler: _Executor_Shutdown_Handler, 1160 }, 1161 { 1162 MethodName: "UpdateResources", 1163 Handler: _Executor_UpdateResources_Handler, 1164 }, 1165 { 1166 MethodName: "Version", 1167 Handler: _Executor_Version_Handler, 1168 }, 1169 { 1170 MethodName: "Signal", 1171 Handler: _Executor_Signal_Handler, 1172 }, 1173 { 1174 MethodName: "Exec", 1175 Handler: _Executor_Exec_Handler, 1176 }, 1177 }, 1178 Streams: []grpc.StreamDesc{ 1179 { 1180 StreamName: "Stats", 1181 Handler: _Executor_Stats_Handler, 1182 ServerStreams: true, 1183 }, 1184 { 1185 StreamName: "ExecStreaming", 1186 Handler: _Executor_ExecStreaming_Handler, 1187 ServerStreams: true, 1188 ClientStreams: true, 1189 }, 1190 }, 1191 Metadata: "drivers/shared/executor/proto/executor.proto", 1192 } 1193 1194 func init() { 1195 proto.RegisterFile("drivers/shared/executor/proto/executor.proto", fileDescriptor_executor_5ea6ca9df3b0f07e) 1196 } 1197 1198 var fileDescriptor_executor_5ea6ca9df3b0f07e = []byte{ 1199 // 919 bytes of a gzipped FileDescriptorProto 1200 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x5f, 0x6f, 0xdc, 0x44, 1201 0x10, 0xaf, 0xeb, 0xdc, 0xbf, 0xb9, 0xbb, 0x24, 0x5a, 0xa1, 0xe0, 0x9a, 0x87, 0x1e, 0x7e, 0xa0, 1202 0x27, 0x28, 0xbe, 0x28, 0xfd, 0xc7, 0x0b, 0x14, 0x91, 0x14, 0x5e, 0x42, 0x15, 0x39, 0x85, 0x4a, 1203 0x3c, 0x70, 0x6c, 0xec, 0xc5, 0x5e, 0xe5, 0xce, 0x6b, 0x76, 0xd7, 0x47, 0x90, 0x90, 0x78, 0xe2, 1204 0x1b, 0x80, 0xc4, 0xe7, 0xe4, 0x13, 0xa0, 0xfd, 0xe7, 0xdc, 0xa5, 0xa5, 0xf2, 0x15, 0xf1, 0x74, 1205 0x3b, 0xe3, 0xf9, 0xfd, 0x66, 0x66, 0x77, 0xe6, 0x77, 0x70, 0x3f, 0xe3, 0x74, 0x45, 0xb8, 0x98, 1206 0x89, 0x02, 0x73, 0x92, 0xcd, 0xc8, 0x15, 0x49, 0x6b, 0xc9, 0xf8, 0xac, 0xe2, 0x4c, 0xb2, 0xc6, 1207 0x8c, 0xb5, 0x89, 0x3e, 0x28, 0xb0, 0x28, 0x68, 0xca, 0x78, 0x15, 0x97, 0x6c, 0x89, 0xb3, 0xb8, 1208 0x5a, 0xd4, 0x39, 0x2d, 0x45, 0xbc, 0x19, 0x17, 0xde, 0xcd, 0x19, 0xcb, 0x17, 0xc4, 0x90, 0x5c, 1209 0xd4, 0x3f, 0xce, 0x24, 0x5d, 0x12, 0x21, 0xf1, 0xb2, 0xb2, 0x01, 0x9f, 0xe6, 0x54, 0x16, 0xf5, 1210 0x45, 0x9c, 0xb2, 0xe5, 0xac, 0xe1, 0x9c, 0x69, 0xce, 0x99, 0xe5, 0x9c, 0xb9, 0xca, 0x4c, 0x25, 1211 0xc6, 0x32, 0xf0, 0xe8, 0x6f, 0x1f, 0xc6, 0xa7, 0xb8, 0x2e, 0xd3, 0x22, 0x21, 0x3f, 0xd5, 0x44, 1212 0x48, 0xb4, 0x0f, 0x7e, 0xba, 0xcc, 0x02, 0x6f, 0xe2, 0x4d, 0x07, 0x89, 0x3a, 0x22, 0x04, 0x3b, 1213 0x98, 0xe7, 0x22, 0xb8, 0x3d, 0xf1, 0xa7, 0x83, 0x44, 0x9f, 0xd1, 0x73, 0x18, 0x70, 0x22, 0x58, 1214 0xcd, 0x53, 0x22, 0x02, 0x7f, 0xe2, 0x4d, 0x87, 0x47, 0x87, 0xf1, 0xbf, 0xf5, 0x64, 0xf3, 0x9b, 1215 0x94, 0x71, 0xe2, 0x70, 0xc9, 0x35, 0x05, 0xba, 0x0b, 0x43, 0x21, 0x33, 0x56, 0xcb, 0x79, 0x85, 1216 0x65, 0x11, 0xec, 0xe8, 0xec, 0x60, 0x5c, 0x67, 0x58, 0x16, 0x36, 0x80, 0x70, 0x6e, 0x02, 0x3a, 1217 0x4d, 0x00, 0xe1, 0x5c, 0x07, 0xec, 0x83, 0x4f, 0xca, 0x55, 0xd0, 0xd5, 0x45, 0xaa, 0xa3, 0xaa, 1218 0xbb, 0x16, 0x84, 0x07, 0x3d, 0x1d, 0xab, 0xcf, 0xe8, 0x0e, 0xf4, 0x25, 0x16, 0x97, 0xf3, 0x8c, 1219 0xf2, 0xa0, 0xaf, 0xfd, 0x3d, 0x65, 0x9f, 0x50, 0x8e, 0xee, 0xc1, 0x9e, 0xab, 0x67, 0xbe, 0xa0, 1220 0x4b, 0x2a, 0x45, 0x30, 0x98, 0x78, 0xd3, 0x7e, 0xb2, 0xeb, 0xdc, 0xa7, 0xda, 0x8b, 0x0e, 0xe1, 1221 0x9d, 0x0b, 0x2c, 0x68, 0x3a, 0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