github.com/projecteru2/core@v0.0.0-20240321043226-06bcc1c23f58/rpc/gen/core_grpc.pb.go (about) 1 // Code generated by protoc-gen-go-grpc. DO NOT EDIT. 2 // versions: 3 // - protoc-gen-go-grpc v1.2.0 4 // - protoc v3.12.4 5 // source: rpc/gen/core.proto 6 7 package pb 8 9 import ( 10 context "context" 11 grpc "google.golang.org/grpc" 12 codes "google.golang.org/grpc/codes" 13 status "google.golang.org/grpc/status" 14 ) 15 16 // This is a compile-time assertion to ensure that this generated file 17 // is compatible with the grpc package it is being compiled against. 18 // Requires gRPC-Go v1.32.0 or later. 19 const _ = grpc.SupportPackageIsVersion7 20 21 // CoreRPCClient is the client API for CoreRPC service. 22 // 23 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. 24 type CoreRPCClient interface { 25 Info(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*CoreInfo, error) 26 WatchServiceStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (CoreRPC_WatchServiceStatusClient, error) 27 ListNetworks(ctx context.Context, in *ListNetworkOptions, opts ...grpc.CallOption) (*Networks, error) 28 ConnectNetwork(ctx context.Context, in *ConnectNetworkOptions, opts ...grpc.CallOption) (*Network, error) 29 DisconnectNetwork(ctx context.Context, in *DisconnectNetworkOptions, opts ...grpc.CallOption) (*Empty, error) 30 AddPod(ctx context.Context, in *AddPodOptions, opts ...grpc.CallOption) (*Pod, error) 31 RemovePod(ctx context.Context, in *RemovePodOptions, opts ...grpc.CallOption) (*Empty, error) 32 GetPod(ctx context.Context, in *GetPodOptions, opts ...grpc.CallOption) (*Pod, error) 33 ListPods(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Pods, error) 34 GetPodResource(ctx context.Context, in *GetPodOptions, opts ...grpc.CallOption) (CoreRPC_GetPodResourceClient, error) 35 GetNodeResource(ctx context.Context, in *GetNodeResourceOptions, opts ...grpc.CallOption) (*NodeResource, error) 36 AddNode(ctx context.Context, in *AddNodeOptions, opts ...grpc.CallOption) (*Node, error) 37 RemoveNode(ctx context.Context, in *RemoveNodeOptions, opts ...grpc.CallOption) (*Empty, error) 38 ListPodNodes(ctx context.Context, in *ListNodesOptions, opts ...grpc.CallOption) (CoreRPC_ListPodNodesClient, error) 39 GetNode(ctx context.Context, in *GetNodeOptions, opts ...grpc.CallOption) (*Node, error) 40 GetNodeEngineInfo(ctx context.Context, in *GetNodeOptions, opts ...grpc.CallOption) (*Engine, error) 41 SetNode(ctx context.Context, in *SetNodeOptions, opts ...grpc.CallOption) (*Node, error) 42 GetNodeStatus(ctx context.Context, in *GetNodeStatusOptions, opts ...grpc.CallOption) (*NodeStatusStreamMessage, error) 43 SetNodeStatus(ctx context.Context, in *SetNodeStatusOptions, opts ...grpc.CallOption) (*Empty, error) 44 NodeStatusStream(ctx context.Context, in *Empty, opts ...grpc.CallOption) (CoreRPC_NodeStatusStreamClient, error) 45 GetWorkloadsStatus(ctx context.Context, in *WorkloadIDs, opts ...grpc.CallOption) (*WorkloadsStatus, error) 46 SetWorkloadsStatus(ctx context.Context, in *SetWorkloadsStatusOptions, opts ...grpc.CallOption) (*WorkloadsStatus, error) 47 WorkloadStatusStream(ctx context.Context, in *WorkloadStatusStreamOptions, opts ...grpc.CallOption) (CoreRPC_WorkloadStatusStreamClient, error) 48 CalculateCapacity(ctx context.Context, in *DeployOptions, opts ...grpc.CallOption) (*CapacityMessage, error) 49 GetWorkload(ctx context.Context, in *WorkloadID, opts ...grpc.CallOption) (*Workload, error) 50 GetWorkloads(ctx context.Context, in *WorkloadIDs, opts ...grpc.CallOption) (*Workloads, error) 51 ListWorkloads(ctx context.Context, in *ListWorkloadsOptions, opts ...grpc.CallOption) (CoreRPC_ListWorkloadsClient, error) 52 ListNodeWorkloads(ctx context.Context, in *GetNodeOptions, opts ...grpc.CallOption) (*Workloads, error) 53 Copy(ctx context.Context, in *CopyOptions, opts ...grpc.CallOption) (CoreRPC_CopyClient, error) 54 Send(ctx context.Context, in *SendOptions, opts ...grpc.CallOption) (CoreRPC_SendClient, error) 55 SendLargeFile(ctx context.Context, opts ...grpc.CallOption) (CoreRPC_SendLargeFileClient, error) 56 BuildImage(ctx context.Context, in *BuildImageOptions, opts ...grpc.CallOption) (CoreRPC_BuildImageClient, error) 57 CacheImage(ctx context.Context, in *CacheImageOptions, opts ...grpc.CallOption) (CoreRPC_CacheImageClient, error) 58 RemoveImage(ctx context.Context, in *RemoveImageOptions, opts ...grpc.CallOption) (CoreRPC_RemoveImageClient, error) 59 ListImage(ctx context.Context, in *ListImageOptions, opts ...grpc.CallOption) (CoreRPC_ListImageClient, error) 60 CreateWorkload(ctx context.Context, in *DeployOptions, opts ...grpc.CallOption) (CoreRPC_CreateWorkloadClient, error) 61 ReplaceWorkload(ctx context.Context, in *ReplaceOptions, opts ...grpc.CallOption) (CoreRPC_ReplaceWorkloadClient, error) 62 RemoveWorkload(ctx context.Context, in *RemoveWorkloadOptions, opts ...grpc.CallOption) (CoreRPC_RemoveWorkloadClient, error) 63 DissociateWorkload(ctx context.Context, in *DissociateWorkloadOptions, opts ...grpc.CallOption) (CoreRPC_DissociateWorkloadClient, error) 64 ControlWorkload(ctx context.Context, in *ControlWorkloadOptions, opts ...grpc.CallOption) (CoreRPC_ControlWorkloadClient, error) 65 ExecuteWorkload(ctx context.Context, opts ...grpc.CallOption) (CoreRPC_ExecuteWorkloadClient, error) 66 ReallocResource(ctx context.Context, in *ReallocOptions, opts ...grpc.CallOption) (*ReallocResourceMessage, error) 67 LogStream(ctx context.Context, in *LogStreamOptions, opts ...grpc.CallOption) (CoreRPC_LogStreamClient, error) 68 RunAndWait(ctx context.Context, opts ...grpc.CallOption) (CoreRPC_RunAndWaitClient, error) 69 RawEngine(ctx context.Context, in *RawEngineOptions, opts ...grpc.CallOption) (*RawEngineMessage, error) 70 } 71 72 type coreRPCClient struct { 73 cc grpc.ClientConnInterface 74 } 75 76 func NewCoreRPCClient(cc grpc.ClientConnInterface) CoreRPCClient { 77 return &coreRPCClient{cc} 78 } 79 80 func (c *coreRPCClient) Info(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*CoreInfo, error) { 81 out := new(CoreInfo) 82 err := c.cc.Invoke(ctx, "/pb.CoreRPC/Info", in, out, opts...) 83 if err != nil { 84 return nil, err 85 } 86 return out, nil 87 } 88 89 func (c *coreRPCClient) WatchServiceStatus(ctx context.Context, in *Empty, opts ...grpc.CallOption) (CoreRPC_WatchServiceStatusClient, error) { 90 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[0], "/pb.CoreRPC/WatchServiceStatus", opts...) 91 if err != nil { 92 return nil, err 93 } 94 x := &coreRPCWatchServiceStatusClient{stream} 95 if err := x.ClientStream.SendMsg(in); err != nil { 96 return nil, err 97 } 98 if err := x.ClientStream.CloseSend(); err != nil { 99 return nil, err 100 } 101 return x, nil 102 } 103 104 type CoreRPC_WatchServiceStatusClient interface { 105 Recv() (*ServiceStatus, error) 106 grpc.ClientStream 107 } 108 109 type coreRPCWatchServiceStatusClient struct { 110 grpc.ClientStream 111 } 112 113 func (x *coreRPCWatchServiceStatusClient) Recv() (*ServiceStatus, error) { 114 m := new(ServiceStatus) 115 if err := x.ClientStream.RecvMsg(m); err != nil { 116 return nil, err 117 } 118 return m, nil 119 } 120 121 func (c *coreRPCClient) ListNetworks(ctx context.Context, in *ListNetworkOptions, opts ...grpc.CallOption) (*Networks, error) { 122 out := new(Networks) 123 err := c.cc.Invoke(ctx, "/pb.CoreRPC/ListNetworks", in, out, opts...) 124 if err != nil { 125 return nil, err 126 } 127 return out, nil 128 } 129 130 func (c *coreRPCClient) ConnectNetwork(ctx context.Context, in *ConnectNetworkOptions, opts ...grpc.CallOption) (*Network, error) { 131 out := new(Network) 132 err := c.cc.Invoke(ctx, "/pb.CoreRPC/ConnectNetwork", in, out, opts...) 133 if err != nil { 134 return nil, err 135 } 136 return out, nil 137 } 138 139 func (c *coreRPCClient) DisconnectNetwork(ctx context.Context, in *DisconnectNetworkOptions, opts ...grpc.CallOption) (*Empty, error) { 140 out := new(Empty) 141 err := c.cc.Invoke(ctx, "/pb.CoreRPC/DisconnectNetwork", in, out, opts...) 142 if err != nil { 143 return nil, err 144 } 145 return out, nil 146 } 147 148 func (c *coreRPCClient) AddPod(ctx context.Context, in *AddPodOptions, opts ...grpc.CallOption) (*Pod, error) { 149 out := new(Pod) 150 err := c.cc.Invoke(ctx, "/pb.CoreRPC/AddPod", in, out, opts...) 151 if err != nil { 152 return nil, err 153 } 154 return out, nil 155 } 156 157 func (c *coreRPCClient) RemovePod(ctx context.Context, in *RemovePodOptions, opts ...grpc.CallOption) (*Empty, error) { 158 out := new(Empty) 159 err := c.cc.Invoke(ctx, "/pb.CoreRPC/RemovePod", in, out, opts...) 160 if err != nil { 161 return nil, err 162 } 163 return out, nil 164 } 165 166 func (c *coreRPCClient) GetPod(ctx context.Context, in *GetPodOptions, opts ...grpc.CallOption) (*Pod, error) { 167 out := new(Pod) 168 err := c.cc.Invoke(ctx, "/pb.CoreRPC/GetPod", in, out, opts...) 169 if err != nil { 170 return nil, err 171 } 172 return out, nil 173 } 174 175 func (c *coreRPCClient) ListPods(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Pods, error) { 176 out := new(Pods) 177 err := c.cc.Invoke(ctx, "/pb.CoreRPC/ListPods", in, out, opts...) 178 if err != nil { 179 return nil, err 180 } 181 return out, nil 182 } 183 184 func (c *coreRPCClient) GetPodResource(ctx context.Context, in *GetPodOptions, opts ...grpc.CallOption) (CoreRPC_GetPodResourceClient, error) { 185 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[1], "/pb.CoreRPC/GetPodResource", opts...) 186 if err != nil { 187 return nil, err 188 } 189 x := &coreRPCGetPodResourceClient{stream} 190 if err := x.ClientStream.SendMsg(in); err != nil { 191 return nil, err 192 } 193 if err := x.ClientStream.CloseSend(); err != nil { 194 return nil, err 195 } 196 return x, nil 197 } 198 199 type CoreRPC_GetPodResourceClient interface { 200 Recv() (*NodeResource, error) 201 grpc.ClientStream 202 } 203 204 type coreRPCGetPodResourceClient struct { 205 grpc.ClientStream 206 } 207 208 func (x *coreRPCGetPodResourceClient) Recv() (*NodeResource, error) { 209 m := new(NodeResource) 210 if err := x.ClientStream.RecvMsg(m); err != nil { 211 return nil, err 212 } 213 return m, nil 214 } 215 216 func (c *coreRPCClient) GetNodeResource(ctx context.Context, in *GetNodeResourceOptions, opts ...grpc.CallOption) (*NodeResource, error) { 217 out := new(NodeResource) 218 err := c.cc.Invoke(ctx, "/pb.CoreRPC/GetNodeResource", in, out, opts...) 219 if err != nil { 220 return nil, err 221 } 222 return out, nil 223 } 224 225 func (c *coreRPCClient) AddNode(ctx context.Context, in *AddNodeOptions, opts ...grpc.CallOption) (*Node, error) { 226 out := new(Node) 227 err := c.cc.Invoke(ctx, "/pb.CoreRPC/AddNode", in, out, opts...) 228 if err != nil { 229 return nil, err 230 } 231 return out, nil 232 } 233 234 func (c *coreRPCClient) RemoveNode(ctx context.Context, in *RemoveNodeOptions, opts ...grpc.CallOption) (*Empty, error) { 235 out := new(Empty) 236 err := c.cc.Invoke(ctx, "/pb.CoreRPC/RemoveNode", in, out, opts...) 237 if err != nil { 238 return nil, err 239 } 240 return out, nil 241 } 242 243 func (c *coreRPCClient) ListPodNodes(ctx context.Context, in *ListNodesOptions, opts ...grpc.CallOption) (CoreRPC_ListPodNodesClient, error) { 244 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[2], "/pb.CoreRPC/ListPodNodes", opts...) 245 if err != nil { 246 return nil, err 247 } 248 x := &coreRPCListPodNodesClient{stream} 249 if err := x.ClientStream.SendMsg(in); err != nil { 250 return nil, err 251 } 252 if err := x.ClientStream.CloseSend(); err != nil { 253 return nil, err 254 } 255 return x, nil 256 } 257 258 type CoreRPC_ListPodNodesClient interface { 259 Recv() (*Node, error) 260 grpc.ClientStream 261 } 262 263 type coreRPCListPodNodesClient struct { 264 grpc.ClientStream 265 } 266 267 func (x *coreRPCListPodNodesClient) Recv() (*Node, error) { 268 m := new(Node) 269 if err := x.ClientStream.RecvMsg(m); err != nil { 270 return nil, err 271 } 272 return m, nil 273 } 274 275 func (c *coreRPCClient) GetNode(ctx context.Context, in *GetNodeOptions, opts ...grpc.CallOption) (*Node, error) { 276 out := new(Node) 277 err := c.cc.Invoke(ctx, "/pb.CoreRPC/GetNode", in, out, opts...) 278 if err != nil { 279 return nil, err 280 } 281 return out, nil 282 } 283 284 func (c *coreRPCClient) GetNodeEngineInfo(ctx context.Context, in *GetNodeOptions, opts ...grpc.CallOption) (*Engine, error) { 285 out := new(Engine) 286 err := c.cc.Invoke(ctx, "/pb.CoreRPC/GetNodeEngineInfo", in, out, opts...) 287 if err != nil { 288 return nil, err 289 } 290 return out, nil 291 } 292 293 func (c *coreRPCClient) SetNode(ctx context.Context, in *SetNodeOptions, opts ...grpc.CallOption) (*Node, error) { 294 out := new(Node) 295 err := c.cc.Invoke(ctx, "/pb.CoreRPC/SetNode", in, out, opts...) 296 if err != nil { 297 return nil, err 298 } 299 return out, nil 300 } 301 302 func (c *coreRPCClient) GetNodeStatus(ctx context.Context, in *GetNodeStatusOptions, opts ...grpc.CallOption) (*NodeStatusStreamMessage, error) { 303 out := new(NodeStatusStreamMessage) 304 err := c.cc.Invoke(ctx, "/pb.CoreRPC/GetNodeStatus", in, out, opts...) 305 if err != nil { 306 return nil, err 307 } 308 return out, nil 309 } 310 311 func (c *coreRPCClient) SetNodeStatus(ctx context.Context, in *SetNodeStatusOptions, opts ...grpc.CallOption) (*Empty, error) { 312 out := new(Empty) 313 err := c.cc.Invoke(ctx, "/pb.CoreRPC/SetNodeStatus", in, out, opts...) 314 if err != nil { 315 return nil, err 316 } 317 return out, nil 318 } 319 320 func (c *coreRPCClient) NodeStatusStream(ctx context.Context, in *Empty, opts ...grpc.CallOption) (CoreRPC_NodeStatusStreamClient, error) { 321 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[3], "/pb.CoreRPC/NodeStatusStream", opts...) 322 if err != nil { 323 return nil, err 324 } 325 x := &coreRPCNodeStatusStreamClient{stream} 326 if err := x.ClientStream.SendMsg(in); err != nil { 327 return nil, err 328 } 329 if err := x.ClientStream.CloseSend(); err != nil { 330 return nil, err 331 } 332 return x, nil 333 } 334 335 type CoreRPC_NodeStatusStreamClient interface { 336 Recv() (*NodeStatusStreamMessage, error) 337 grpc.ClientStream 338 } 339 340 type coreRPCNodeStatusStreamClient struct { 341 grpc.ClientStream 342 } 343 344 func (x *coreRPCNodeStatusStreamClient) Recv() (*NodeStatusStreamMessage, error) { 345 m := new(NodeStatusStreamMessage) 346 if err := x.ClientStream.RecvMsg(m); err != nil { 347 return nil, err 348 } 349 return m, nil 350 } 351 352 func (c *coreRPCClient) GetWorkloadsStatus(ctx context.Context, in *WorkloadIDs, opts ...grpc.CallOption) (*WorkloadsStatus, error) { 353 out := new(WorkloadsStatus) 354 err := c.cc.Invoke(ctx, "/pb.CoreRPC/GetWorkloadsStatus", in, out, opts...) 355 if err != nil { 356 return nil, err 357 } 358 return out, nil 359 } 360 361 func (c *coreRPCClient) SetWorkloadsStatus(ctx context.Context, in *SetWorkloadsStatusOptions, opts ...grpc.CallOption) (*WorkloadsStatus, error) { 362 out := new(WorkloadsStatus) 363 err := c.cc.Invoke(ctx, "/pb.CoreRPC/SetWorkloadsStatus", in, out, opts...) 364 if err != nil { 365 return nil, err 366 } 367 return out, nil 368 } 369 370 func (c *coreRPCClient) WorkloadStatusStream(ctx context.Context, in *WorkloadStatusStreamOptions, opts ...grpc.CallOption) (CoreRPC_WorkloadStatusStreamClient, error) { 371 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[4], "/pb.CoreRPC/WorkloadStatusStream", opts...) 372 if err != nil { 373 return nil, err 374 } 375 x := &coreRPCWorkloadStatusStreamClient{stream} 376 if err := x.ClientStream.SendMsg(in); err != nil { 377 return nil, err 378 } 379 if err := x.ClientStream.CloseSend(); err != nil { 380 return nil, err 381 } 382 return x, nil 383 } 384 385 type CoreRPC_WorkloadStatusStreamClient interface { 386 Recv() (*WorkloadStatusStreamMessage, error) 387 grpc.ClientStream 388 } 389 390 type coreRPCWorkloadStatusStreamClient struct { 391 grpc.ClientStream 392 } 393 394 func (x *coreRPCWorkloadStatusStreamClient) Recv() (*WorkloadStatusStreamMessage, error) { 395 m := new(WorkloadStatusStreamMessage) 396 if err := x.ClientStream.RecvMsg(m); err != nil { 397 return nil, err 398 } 399 return m, nil 400 } 401 402 func (c *coreRPCClient) CalculateCapacity(ctx context.Context, in *DeployOptions, opts ...grpc.CallOption) (*CapacityMessage, error) { 403 out := new(CapacityMessage) 404 err := c.cc.Invoke(ctx, "/pb.CoreRPC/CalculateCapacity", in, out, opts...) 405 if err != nil { 406 return nil, err 407 } 408 return out, nil 409 } 410 411 func (c *coreRPCClient) GetWorkload(ctx context.Context, in *WorkloadID, opts ...grpc.CallOption) (*Workload, error) { 412 out := new(Workload) 413 err := c.cc.Invoke(ctx, "/pb.CoreRPC/GetWorkload", in, out, opts...) 414 if err != nil { 415 return nil, err 416 } 417 return out, nil 418 } 419 420 func (c *coreRPCClient) GetWorkloads(ctx context.Context, in *WorkloadIDs, opts ...grpc.CallOption) (*Workloads, error) { 421 out := new(Workloads) 422 err := c.cc.Invoke(ctx, "/pb.CoreRPC/GetWorkloads", in, out, opts...) 423 if err != nil { 424 return nil, err 425 } 426 return out, nil 427 } 428 429 func (c *coreRPCClient) ListWorkloads(ctx context.Context, in *ListWorkloadsOptions, opts ...grpc.CallOption) (CoreRPC_ListWorkloadsClient, error) { 430 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[5], "/pb.CoreRPC/ListWorkloads", opts...) 431 if err != nil { 432 return nil, err 433 } 434 x := &coreRPCListWorkloadsClient{stream} 435 if err := x.ClientStream.SendMsg(in); err != nil { 436 return nil, err 437 } 438 if err := x.ClientStream.CloseSend(); err != nil { 439 return nil, err 440 } 441 return x, nil 442 } 443 444 type CoreRPC_ListWorkloadsClient interface { 445 Recv() (*Workload, error) 446 grpc.ClientStream 447 } 448 449 type coreRPCListWorkloadsClient struct { 450 grpc.ClientStream 451 } 452 453 func (x *coreRPCListWorkloadsClient) Recv() (*Workload, error) { 454 m := new(Workload) 455 if err := x.ClientStream.RecvMsg(m); err != nil { 456 return nil, err 457 } 458 return m, nil 459 } 460 461 func (c *coreRPCClient) ListNodeWorkloads(ctx context.Context, in *GetNodeOptions, opts ...grpc.CallOption) (*Workloads, error) { 462 out := new(Workloads) 463 err := c.cc.Invoke(ctx, "/pb.CoreRPC/ListNodeWorkloads", in, out, opts...) 464 if err != nil { 465 return nil, err 466 } 467 return out, nil 468 } 469 470 func (c *coreRPCClient) Copy(ctx context.Context, in *CopyOptions, opts ...grpc.CallOption) (CoreRPC_CopyClient, error) { 471 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[6], "/pb.CoreRPC/Copy", opts...) 472 if err != nil { 473 return nil, err 474 } 475 x := &coreRPCCopyClient{stream} 476 if err := x.ClientStream.SendMsg(in); err != nil { 477 return nil, err 478 } 479 if err := x.ClientStream.CloseSend(); err != nil { 480 return nil, err 481 } 482 return x, nil 483 } 484 485 type CoreRPC_CopyClient interface { 486 Recv() (*CopyMessage, error) 487 grpc.ClientStream 488 } 489 490 type coreRPCCopyClient struct { 491 grpc.ClientStream 492 } 493 494 func (x *coreRPCCopyClient) Recv() (*CopyMessage, error) { 495 m := new(CopyMessage) 496 if err := x.ClientStream.RecvMsg(m); err != nil { 497 return nil, err 498 } 499 return m, nil 500 } 501 502 func (c *coreRPCClient) Send(ctx context.Context, in *SendOptions, opts ...grpc.CallOption) (CoreRPC_SendClient, error) { 503 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[7], "/pb.CoreRPC/Send", opts...) 504 if err != nil { 505 return nil, err 506 } 507 x := &coreRPCSendClient{stream} 508 if err := x.ClientStream.SendMsg(in); err != nil { 509 return nil, err 510 } 511 if err := x.ClientStream.CloseSend(); err != nil { 512 return nil, err 513 } 514 return x, nil 515 } 516 517 type CoreRPC_SendClient interface { 518 Recv() (*SendMessage, error) 519 grpc.ClientStream 520 } 521 522 type coreRPCSendClient struct { 523 grpc.ClientStream 524 } 525 526 func (x *coreRPCSendClient) Recv() (*SendMessage, error) { 527 m := new(SendMessage) 528 if err := x.ClientStream.RecvMsg(m); err != nil { 529 return nil, err 530 } 531 return m, nil 532 } 533 534 func (c *coreRPCClient) SendLargeFile(ctx context.Context, opts ...grpc.CallOption) (CoreRPC_SendLargeFileClient, error) { 535 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[8], "/pb.CoreRPC/SendLargeFile", opts...) 536 if err != nil { 537 return nil, err 538 } 539 x := &coreRPCSendLargeFileClient{stream} 540 return x, nil 541 } 542 543 type CoreRPC_SendLargeFileClient interface { 544 Send(*FileOptions) error 545 Recv() (*SendMessage, error) 546 grpc.ClientStream 547 } 548 549 type coreRPCSendLargeFileClient struct { 550 grpc.ClientStream 551 } 552 553 func (x *coreRPCSendLargeFileClient) Send(m *FileOptions) error { 554 return x.ClientStream.SendMsg(m) 555 } 556 557 func (x *coreRPCSendLargeFileClient) Recv() (*SendMessage, error) { 558 m := new(SendMessage) 559 if err := x.ClientStream.RecvMsg(m); err != nil { 560 return nil, err 561 } 562 return m, nil 563 } 564 565 func (c *coreRPCClient) BuildImage(ctx context.Context, in *BuildImageOptions, opts ...grpc.CallOption) (CoreRPC_BuildImageClient, error) { 566 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[9], "/pb.CoreRPC/BuildImage", opts...) 567 if err != nil { 568 return nil, err 569 } 570 x := &coreRPCBuildImageClient{stream} 571 if err := x.ClientStream.SendMsg(in); err != nil { 572 return nil, err 573 } 574 if err := x.ClientStream.CloseSend(); err != nil { 575 return nil, err 576 } 577 return x, nil 578 } 579 580 type CoreRPC_BuildImageClient interface { 581 Recv() (*BuildImageMessage, error) 582 grpc.ClientStream 583 } 584 585 type coreRPCBuildImageClient struct { 586 grpc.ClientStream 587 } 588 589 func (x *coreRPCBuildImageClient) Recv() (*BuildImageMessage, error) { 590 m := new(BuildImageMessage) 591 if err := x.ClientStream.RecvMsg(m); err != nil { 592 return nil, err 593 } 594 return m, nil 595 } 596 597 func (c *coreRPCClient) CacheImage(ctx context.Context, in *CacheImageOptions, opts ...grpc.CallOption) (CoreRPC_CacheImageClient, error) { 598 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[10], "/pb.CoreRPC/CacheImage", opts...) 599 if err != nil { 600 return nil, err 601 } 602 x := &coreRPCCacheImageClient{stream} 603 if err := x.ClientStream.SendMsg(in); err != nil { 604 return nil, err 605 } 606 if err := x.ClientStream.CloseSend(); err != nil { 607 return nil, err 608 } 609 return x, nil 610 } 611 612 type CoreRPC_CacheImageClient interface { 613 Recv() (*CacheImageMessage, error) 614 grpc.ClientStream 615 } 616 617 type coreRPCCacheImageClient struct { 618 grpc.ClientStream 619 } 620 621 func (x *coreRPCCacheImageClient) Recv() (*CacheImageMessage, error) { 622 m := new(CacheImageMessage) 623 if err := x.ClientStream.RecvMsg(m); err != nil { 624 return nil, err 625 } 626 return m, nil 627 } 628 629 func (c *coreRPCClient) RemoveImage(ctx context.Context, in *RemoveImageOptions, opts ...grpc.CallOption) (CoreRPC_RemoveImageClient, error) { 630 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[11], "/pb.CoreRPC/RemoveImage", opts...) 631 if err != nil { 632 return nil, err 633 } 634 x := &coreRPCRemoveImageClient{stream} 635 if err := x.ClientStream.SendMsg(in); err != nil { 636 return nil, err 637 } 638 if err := x.ClientStream.CloseSend(); err != nil { 639 return nil, err 640 } 641 return x, nil 642 } 643 644 type CoreRPC_RemoveImageClient interface { 645 Recv() (*RemoveImageMessage, error) 646 grpc.ClientStream 647 } 648 649 type coreRPCRemoveImageClient struct { 650 grpc.ClientStream 651 } 652 653 func (x *coreRPCRemoveImageClient) Recv() (*RemoveImageMessage, error) { 654 m := new(RemoveImageMessage) 655 if err := x.ClientStream.RecvMsg(m); err != nil { 656 return nil, err 657 } 658 return m, nil 659 } 660 661 func (c *coreRPCClient) ListImage(ctx context.Context, in *ListImageOptions, opts ...grpc.CallOption) (CoreRPC_ListImageClient, error) { 662 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[12], "/pb.CoreRPC/ListImage", opts...) 663 if err != nil { 664 return nil, err 665 } 666 x := &coreRPCListImageClient{stream} 667 if err := x.ClientStream.SendMsg(in); err != nil { 668 return nil, err 669 } 670 if err := x.ClientStream.CloseSend(); err != nil { 671 return nil, err 672 } 673 return x, nil 674 } 675 676 type CoreRPC_ListImageClient interface { 677 Recv() (*ListImageMessage, error) 678 grpc.ClientStream 679 } 680 681 type coreRPCListImageClient struct { 682 grpc.ClientStream 683 } 684 685 func (x *coreRPCListImageClient) Recv() (*ListImageMessage, error) { 686 m := new(ListImageMessage) 687 if err := x.ClientStream.RecvMsg(m); err != nil { 688 return nil, err 689 } 690 return m, nil 691 } 692 693 func (c *coreRPCClient) CreateWorkload(ctx context.Context, in *DeployOptions, opts ...grpc.CallOption) (CoreRPC_CreateWorkloadClient, error) { 694 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[13], "/pb.CoreRPC/CreateWorkload", opts...) 695 if err != nil { 696 return nil, err 697 } 698 x := &coreRPCCreateWorkloadClient{stream} 699 if err := x.ClientStream.SendMsg(in); err != nil { 700 return nil, err 701 } 702 if err := x.ClientStream.CloseSend(); err != nil { 703 return nil, err 704 } 705 return x, nil 706 } 707 708 type CoreRPC_CreateWorkloadClient interface { 709 Recv() (*CreateWorkloadMessage, error) 710 grpc.ClientStream 711 } 712 713 type coreRPCCreateWorkloadClient struct { 714 grpc.ClientStream 715 } 716 717 func (x *coreRPCCreateWorkloadClient) Recv() (*CreateWorkloadMessage, error) { 718 m := new(CreateWorkloadMessage) 719 if err := x.ClientStream.RecvMsg(m); err != nil { 720 return nil, err 721 } 722 return m, nil 723 } 724 725 func (c *coreRPCClient) ReplaceWorkload(ctx context.Context, in *ReplaceOptions, opts ...grpc.CallOption) (CoreRPC_ReplaceWorkloadClient, error) { 726 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[14], "/pb.CoreRPC/ReplaceWorkload", opts...) 727 if err != nil { 728 return nil, err 729 } 730 x := &coreRPCReplaceWorkloadClient{stream} 731 if err := x.ClientStream.SendMsg(in); err != nil { 732 return nil, err 733 } 734 if err := x.ClientStream.CloseSend(); err != nil { 735 return nil, err 736 } 737 return x, nil 738 } 739 740 type CoreRPC_ReplaceWorkloadClient interface { 741 Recv() (*ReplaceWorkloadMessage, error) 742 grpc.ClientStream 743 } 744 745 type coreRPCReplaceWorkloadClient struct { 746 grpc.ClientStream 747 } 748 749 func (x *coreRPCReplaceWorkloadClient) Recv() (*ReplaceWorkloadMessage, error) { 750 m := new(ReplaceWorkloadMessage) 751 if err := x.ClientStream.RecvMsg(m); err != nil { 752 return nil, err 753 } 754 return m, nil 755 } 756 757 func (c *coreRPCClient) RemoveWorkload(ctx context.Context, in *RemoveWorkloadOptions, opts ...grpc.CallOption) (CoreRPC_RemoveWorkloadClient, error) { 758 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[15], "/pb.CoreRPC/RemoveWorkload", opts...) 759 if err != nil { 760 return nil, err 761 } 762 x := &coreRPCRemoveWorkloadClient{stream} 763 if err := x.ClientStream.SendMsg(in); err != nil { 764 return nil, err 765 } 766 if err := x.ClientStream.CloseSend(); err != nil { 767 return nil, err 768 } 769 return x, nil 770 } 771 772 type CoreRPC_RemoveWorkloadClient interface { 773 Recv() (*RemoveWorkloadMessage, error) 774 grpc.ClientStream 775 } 776 777 type coreRPCRemoveWorkloadClient struct { 778 grpc.ClientStream 779 } 780 781 func (x *coreRPCRemoveWorkloadClient) Recv() (*RemoveWorkloadMessage, error) { 782 m := new(RemoveWorkloadMessage) 783 if err := x.ClientStream.RecvMsg(m); err != nil { 784 return nil, err 785 } 786 return m, nil 787 } 788 789 func (c *coreRPCClient) DissociateWorkload(ctx context.Context, in *DissociateWorkloadOptions, opts ...grpc.CallOption) (CoreRPC_DissociateWorkloadClient, error) { 790 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[16], "/pb.CoreRPC/DissociateWorkload", opts...) 791 if err != nil { 792 return nil, err 793 } 794 x := &coreRPCDissociateWorkloadClient{stream} 795 if err := x.ClientStream.SendMsg(in); err != nil { 796 return nil, err 797 } 798 if err := x.ClientStream.CloseSend(); err != nil { 799 return nil, err 800 } 801 return x, nil 802 } 803 804 type CoreRPC_DissociateWorkloadClient interface { 805 Recv() (*DissociateWorkloadMessage, error) 806 grpc.ClientStream 807 } 808 809 type coreRPCDissociateWorkloadClient struct { 810 grpc.ClientStream 811 } 812 813 func (x *coreRPCDissociateWorkloadClient) Recv() (*DissociateWorkloadMessage, error) { 814 m := new(DissociateWorkloadMessage) 815 if err := x.ClientStream.RecvMsg(m); err != nil { 816 return nil, err 817 } 818 return m, nil 819 } 820 821 func (c *coreRPCClient) ControlWorkload(ctx context.Context, in *ControlWorkloadOptions, opts ...grpc.CallOption) (CoreRPC_ControlWorkloadClient, error) { 822 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[17], "/pb.CoreRPC/ControlWorkload", opts...) 823 if err != nil { 824 return nil, err 825 } 826 x := &coreRPCControlWorkloadClient{stream} 827 if err := x.ClientStream.SendMsg(in); err != nil { 828 return nil, err 829 } 830 if err := x.ClientStream.CloseSend(); err != nil { 831 return nil, err 832 } 833 return x, nil 834 } 835 836 type CoreRPC_ControlWorkloadClient interface { 837 Recv() (*ControlWorkloadMessage, error) 838 grpc.ClientStream 839 } 840 841 type coreRPCControlWorkloadClient struct { 842 grpc.ClientStream 843 } 844 845 func (x *coreRPCControlWorkloadClient) Recv() (*ControlWorkloadMessage, error) { 846 m := new(ControlWorkloadMessage) 847 if err := x.ClientStream.RecvMsg(m); err != nil { 848 return nil, err 849 } 850 return m, nil 851 } 852 853 func (c *coreRPCClient) ExecuteWorkload(ctx context.Context, opts ...grpc.CallOption) (CoreRPC_ExecuteWorkloadClient, error) { 854 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[18], "/pb.CoreRPC/ExecuteWorkload", opts...) 855 if err != nil { 856 return nil, err 857 } 858 x := &coreRPCExecuteWorkloadClient{stream} 859 return x, nil 860 } 861 862 type CoreRPC_ExecuteWorkloadClient interface { 863 Send(*ExecuteWorkloadOptions) error 864 Recv() (*AttachWorkloadMessage, error) 865 grpc.ClientStream 866 } 867 868 type coreRPCExecuteWorkloadClient struct { 869 grpc.ClientStream 870 } 871 872 func (x *coreRPCExecuteWorkloadClient) Send(m *ExecuteWorkloadOptions) error { 873 return x.ClientStream.SendMsg(m) 874 } 875 876 func (x *coreRPCExecuteWorkloadClient) Recv() (*AttachWorkloadMessage, error) { 877 m := new(AttachWorkloadMessage) 878 if err := x.ClientStream.RecvMsg(m); err != nil { 879 return nil, err 880 } 881 return m, nil 882 } 883 884 func (c *coreRPCClient) ReallocResource(ctx context.Context, in *ReallocOptions, opts ...grpc.CallOption) (*ReallocResourceMessage, error) { 885 out := new(ReallocResourceMessage) 886 err := c.cc.Invoke(ctx, "/pb.CoreRPC/ReallocResource", in, out, opts...) 887 if err != nil { 888 return nil, err 889 } 890 return out, nil 891 } 892 893 func (c *coreRPCClient) LogStream(ctx context.Context, in *LogStreamOptions, opts ...grpc.CallOption) (CoreRPC_LogStreamClient, error) { 894 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[19], "/pb.CoreRPC/LogStream", opts...) 895 if err != nil { 896 return nil, err 897 } 898 x := &coreRPCLogStreamClient{stream} 899 if err := x.ClientStream.SendMsg(in); err != nil { 900 return nil, err 901 } 902 if err := x.ClientStream.CloseSend(); err != nil { 903 return nil, err 904 } 905 return x, nil 906 } 907 908 type CoreRPC_LogStreamClient interface { 909 Recv() (*LogStreamMessage, error) 910 grpc.ClientStream 911 } 912 913 type coreRPCLogStreamClient struct { 914 grpc.ClientStream 915 } 916 917 func (x *coreRPCLogStreamClient) Recv() (*LogStreamMessage, error) { 918 m := new(LogStreamMessage) 919 if err := x.ClientStream.RecvMsg(m); err != nil { 920 return nil, err 921 } 922 return m, nil 923 } 924 925 func (c *coreRPCClient) RunAndWait(ctx context.Context, opts ...grpc.CallOption) (CoreRPC_RunAndWaitClient, error) { 926 stream, err := c.cc.NewStream(ctx, &CoreRPC_ServiceDesc.Streams[20], "/pb.CoreRPC/RunAndWait", opts...) 927 if err != nil { 928 return nil, err 929 } 930 x := &coreRPCRunAndWaitClient{stream} 931 return x, nil 932 } 933 934 type CoreRPC_RunAndWaitClient interface { 935 Send(*RunAndWaitOptions) error 936 Recv() (*AttachWorkloadMessage, error) 937 grpc.ClientStream 938 } 939 940 type coreRPCRunAndWaitClient struct { 941 grpc.ClientStream 942 } 943 944 func (x *coreRPCRunAndWaitClient) Send(m *RunAndWaitOptions) error { 945 return x.ClientStream.SendMsg(m) 946 } 947 948 func (x *coreRPCRunAndWaitClient) Recv() (*AttachWorkloadMessage, error) { 949 m := new(AttachWorkloadMessage) 950 if err := x.ClientStream.RecvMsg(m); err != nil { 951 return nil, err 952 } 953 return m, nil 954 } 955 956 func (c *coreRPCClient) RawEngine(ctx context.Context, in *RawEngineOptions, opts ...grpc.CallOption) (*RawEngineMessage, error) { 957 out := new(RawEngineMessage) 958 err := c.cc.Invoke(ctx, "/pb.CoreRPC/RawEngine", in, out, opts...) 959 if err != nil { 960 return nil, err 961 } 962 return out, nil 963 } 964 965 // CoreRPCServer is the server API for CoreRPC service. 966 // All implementations should embed UnimplementedCoreRPCServer 967 // for forward compatibility 968 type CoreRPCServer interface { 969 Info(context.Context, *Empty) (*CoreInfo, error) 970 WatchServiceStatus(*Empty, CoreRPC_WatchServiceStatusServer) error 971 ListNetworks(context.Context, *ListNetworkOptions) (*Networks, error) 972 ConnectNetwork(context.Context, *ConnectNetworkOptions) (*Network, error) 973 DisconnectNetwork(context.Context, *DisconnectNetworkOptions) (*Empty, error) 974 AddPod(context.Context, *AddPodOptions) (*Pod, error) 975 RemovePod(context.Context, *RemovePodOptions) (*Empty, error) 976 GetPod(context.Context, *GetPodOptions) (*Pod, error) 977 ListPods(context.Context, *Empty) (*Pods, error) 978 GetPodResource(*GetPodOptions, CoreRPC_GetPodResourceServer) error 979 GetNodeResource(context.Context, *GetNodeResourceOptions) (*NodeResource, error) 980 AddNode(context.Context, *AddNodeOptions) (*Node, error) 981 RemoveNode(context.Context, *RemoveNodeOptions) (*Empty, error) 982 ListPodNodes(*ListNodesOptions, CoreRPC_ListPodNodesServer) error 983 GetNode(context.Context, *GetNodeOptions) (*Node, error) 984 GetNodeEngineInfo(context.Context, *GetNodeOptions) (*Engine, error) 985 SetNode(context.Context, *SetNodeOptions) (*Node, error) 986 GetNodeStatus(context.Context, *GetNodeStatusOptions) (*NodeStatusStreamMessage, error) 987 SetNodeStatus(context.Context, *SetNodeStatusOptions) (*Empty, error) 988 NodeStatusStream(*Empty, CoreRPC_NodeStatusStreamServer) error 989 GetWorkloadsStatus(context.Context, *WorkloadIDs) (*WorkloadsStatus, error) 990 SetWorkloadsStatus(context.Context, *SetWorkloadsStatusOptions) (*WorkloadsStatus, error) 991 WorkloadStatusStream(*WorkloadStatusStreamOptions, CoreRPC_WorkloadStatusStreamServer) error 992 CalculateCapacity(context.Context, *DeployOptions) (*CapacityMessage, error) 993 GetWorkload(context.Context, *WorkloadID) (*Workload, error) 994 GetWorkloads(context.Context, *WorkloadIDs) (*Workloads, error) 995 ListWorkloads(*ListWorkloadsOptions, CoreRPC_ListWorkloadsServer) error 996 ListNodeWorkloads(context.Context, *GetNodeOptions) (*Workloads, error) 997 Copy(*CopyOptions, CoreRPC_CopyServer) error 998 Send(*SendOptions, CoreRPC_SendServer) error 999 SendLargeFile(CoreRPC_SendLargeFileServer) error 1000 BuildImage(*BuildImageOptions, CoreRPC_BuildImageServer) error 1001 CacheImage(*CacheImageOptions, CoreRPC_CacheImageServer) error 1002 RemoveImage(*RemoveImageOptions, CoreRPC_RemoveImageServer) error 1003 ListImage(*ListImageOptions, CoreRPC_ListImageServer) error 1004 CreateWorkload(*DeployOptions, CoreRPC_CreateWorkloadServer) error 1005 ReplaceWorkload(*ReplaceOptions, CoreRPC_ReplaceWorkloadServer) error 1006 RemoveWorkload(*RemoveWorkloadOptions, CoreRPC_RemoveWorkloadServer) error 1007 DissociateWorkload(*DissociateWorkloadOptions, CoreRPC_DissociateWorkloadServer) error 1008 ControlWorkload(*ControlWorkloadOptions, CoreRPC_ControlWorkloadServer) error 1009 ExecuteWorkload(CoreRPC_ExecuteWorkloadServer) error 1010 ReallocResource(context.Context, *ReallocOptions) (*ReallocResourceMessage, error) 1011 LogStream(*LogStreamOptions, CoreRPC_LogStreamServer) error 1012 RunAndWait(CoreRPC_RunAndWaitServer) error 1013 RawEngine(context.Context, *RawEngineOptions) (*RawEngineMessage, error) 1014 } 1015 1016 // UnimplementedCoreRPCServer should be embedded to have forward compatible implementations. 1017 type UnimplementedCoreRPCServer struct { 1018 } 1019 1020 func (UnimplementedCoreRPCServer) Info(context.Context, *Empty) (*CoreInfo, error) { 1021 return nil, status.Errorf(codes.Unimplemented, "method Info not implemented") 1022 } 1023 func (UnimplementedCoreRPCServer) WatchServiceStatus(*Empty, CoreRPC_WatchServiceStatusServer) error { 1024 return status.Errorf(codes.Unimplemented, "method WatchServiceStatus not implemented") 1025 } 1026 func (UnimplementedCoreRPCServer) ListNetworks(context.Context, *ListNetworkOptions) (*Networks, error) { 1027 return nil, status.Errorf(codes.Unimplemented, "method ListNetworks not implemented") 1028 } 1029 func (UnimplementedCoreRPCServer) ConnectNetwork(context.Context, *ConnectNetworkOptions) (*Network, error) { 1030 return nil, status.Errorf(codes.Unimplemented, "method ConnectNetwork not implemented") 1031 } 1032 func (UnimplementedCoreRPCServer) DisconnectNetwork(context.Context, *DisconnectNetworkOptions) (*Empty, error) { 1033 return nil, status.Errorf(codes.Unimplemented, "method DisconnectNetwork not implemented") 1034 } 1035 func (UnimplementedCoreRPCServer) AddPod(context.Context, *AddPodOptions) (*Pod, error) { 1036 return nil, status.Errorf(codes.Unimplemented, "method AddPod not implemented") 1037 } 1038 func (UnimplementedCoreRPCServer) RemovePod(context.Context, *RemovePodOptions) (*Empty, error) { 1039 return nil, status.Errorf(codes.Unimplemented, "method RemovePod not implemented") 1040 } 1041 func (UnimplementedCoreRPCServer) GetPod(context.Context, *GetPodOptions) (*Pod, error) { 1042 return nil, status.Errorf(codes.Unimplemented, "method GetPod not implemented") 1043 } 1044 func (UnimplementedCoreRPCServer) ListPods(context.Context, *Empty) (*Pods, error) { 1045 return nil, status.Errorf(codes.Unimplemented, "method ListPods not implemented") 1046 } 1047 func (UnimplementedCoreRPCServer) GetPodResource(*GetPodOptions, CoreRPC_GetPodResourceServer) error { 1048 return status.Errorf(codes.Unimplemented, "method GetPodResource not implemented") 1049 } 1050 func (UnimplementedCoreRPCServer) GetNodeResource(context.Context, *GetNodeResourceOptions) (*NodeResource, error) { 1051 return nil, status.Errorf(codes.Unimplemented, "method GetNodeResource not implemented") 1052 } 1053 func (UnimplementedCoreRPCServer) AddNode(context.Context, *AddNodeOptions) (*Node, error) { 1054 return nil, status.Errorf(codes.Unimplemented, "method AddNode not implemented") 1055 } 1056 func (UnimplementedCoreRPCServer) RemoveNode(context.Context, *RemoveNodeOptions) (*Empty, error) { 1057 return nil, status.Errorf(codes.Unimplemented, "method RemoveNode not implemented") 1058 } 1059 func (UnimplementedCoreRPCServer) ListPodNodes(*ListNodesOptions, CoreRPC_ListPodNodesServer) error { 1060 return status.Errorf(codes.Unimplemented, "method ListPodNodes not implemented") 1061 } 1062 func (UnimplementedCoreRPCServer) GetNode(context.Context, *GetNodeOptions) (*Node, error) { 1063 return nil, status.Errorf(codes.Unimplemented, "method GetNode not implemented") 1064 } 1065 func (UnimplementedCoreRPCServer) GetNodeEngineInfo(context.Context, *GetNodeOptions) (*Engine, error) { 1066 return nil, status.Errorf(codes.Unimplemented, "method GetNodeEngineInfo not implemented") 1067 } 1068 func (UnimplementedCoreRPCServer) SetNode(context.Context, *SetNodeOptions) (*Node, error) { 1069 return nil, status.Errorf(codes.Unimplemented, "method SetNode not implemented") 1070 } 1071 func (UnimplementedCoreRPCServer) GetNodeStatus(context.Context, *GetNodeStatusOptions) (*NodeStatusStreamMessage, error) { 1072 return nil, status.Errorf(codes.Unimplemented, "method GetNodeStatus not implemented") 1073 } 1074 func (UnimplementedCoreRPCServer) SetNodeStatus(context.Context, *SetNodeStatusOptions) (*Empty, error) { 1075 return nil, status.Errorf(codes.Unimplemented, "method SetNodeStatus not implemented") 1076 } 1077 func (UnimplementedCoreRPCServer) NodeStatusStream(*Empty, CoreRPC_NodeStatusStreamServer) error { 1078 return status.Errorf(codes.Unimplemented, "method NodeStatusStream not implemented") 1079 } 1080 func (UnimplementedCoreRPCServer) GetWorkloadsStatus(context.Context, *WorkloadIDs) (*WorkloadsStatus, error) { 1081 return nil, status.Errorf(codes.Unimplemented, "method GetWorkloadsStatus not implemented") 1082 } 1083 func (UnimplementedCoreRPCServer) SetWorkloadsStatus(context.Context, *SetWorkloadsStatusOptions) (*WorkloadsStatus, error) { 1084 return nil, status.Errorf(codes.Unimplemented, "method SetWorkloadsStatus not implemented") 1085 } 1086 func (UnimplementedCoreRPCServer) WorkloadStatusStream(*WorkloadStatusStreamOptions, CoreRPC_WorkloadStatusStreamServer) error { 1087 return status.Errorf(codes.Unimplemented, "method WorkloadStatusStream not implemented") 1088 } 1089 func (UnimplementedCoreRPCServer) CalculateCapacity(context.Context, *DeployOptions) (*CapacityMessage, error) { 1090 return nil, status.Errorf(codes.Unimplemented, "method CalculateCapacity not implemented") 1091 } 1092 func (UnimplementedCoreRPCServer) GetWorkload(context.Context, *WorkloadID) (*Workload, error) { 1093 return nil, status.Errorf(codes.Unimplemented, "method GetWorkload not implemented") 1094 } 1095 func (UnimplementedCoreRPCServer) GetWorkloads(context.Context, *WorkloadIDs) (*Workloads, error) { 1096 return nil, status.Errorf(codes.Unimplemented, "method GetWorkloads not implemented") 1097 } 1098 func (UnimplementedCoreRPCServer) ListWorkloads(*ListWorkloadsOptions, CoreRPC_ListWorkloadsServer) error { 1099 return status.Errorf(codes.Unimplemented, "method ListWorkloads not implemented") 1100 } 1101 func (UnimplementedCoreRPCServer) ListNodeWorkloads(context.Context, *GetNodeOptions) (*Workloads, error) { 1102 return nil, status.Errorf(codes.Unimplemented, "method ListNodeWorkloads not implemented") 1103 } 1104 func (UnimplementedCoreRPCServer) Copy(*CopyOptions, CoreRPC_CopyServer) error { 1105 return status.Errorf(codes.Unimplemented, "method Copy not implemented") 1106 } 1107 func (UnimplementedCoreRPCServer) Send(*SendOptions, CoreRPC_SendServer) error { 1108 return status.Errorf(codes.Unimplemented, "method Send not implemented") 1109 } 1110 func (UnimplementedCoreRPCServer) SendLargeFile(CoreRPC_SendLargeFileServer) error { 1111 return status.Errorf(codes.Unimplemented, "method SendLargeFile not implemented") 1112 } 1113 func (UnimplementedCoreRPCServer) BuildImage(*BuildImageOptions, CoreRPC_BuildImageServer) error { 1114 return status.Errorf(codes.Unimplemented, "method BuildImage not implemented") 1115 } 1116 func (UnimplementedCoreRPCServer) CacheImage(*CacheImageOptions, CoreRPC_CacheImageServer) error { 1117 return status.Errorf(codes.Unimplemented, "method CacheImage not implemented") 1118 } 1119 func (UnimplementedCoreRPCServer) RemoveImage(*RemoveImageOptions, CoreRPC_RemoveImageServer) error { 1120 return status.Errorf(codes.Unimplemented, "method RemoveImage not implemented") 1121 } 1122 func (UnimplementedCoreRPCServer) ListImage(*ListImageOptions, CoreRPC_ListImageServer) error { 1123 return status.Errorf(codes.Unimplemented, "method ListImage not implemented") 1124 } 1125 func (UnimplementedCoreRPCServer) CreateWorkload(*DeployOptions, CoreRPC_CreateWorkloadServer) error { 1126 return status.Errorf(codes.Unimplemented, "method CreateWorkload not implemented") 1127 } 1128 func (UnimplementedCoreRPCServer) ReplaceWorkload(*ReplaceOptions, CoreRPC_ReplaceWorkloadServer) error { 1129 return status.Errorf(codes.Unimplemented, "method ReplaceWorkload not implemented") 1130 } 1131 func (UnimplementedCoreRPCServer) RemoveWorkload(*RemoveWorkloadOptions, CoreRPC_RemoveWorkloadServer) error { 1132 return status.Errorf(codes.Unimplemented, "method RemoveWorkload not implemented") 1133 } 1134 func (UnimplementedCoreRPCServer) DissociateWorkload(*DissociateWorkloadOptions, CoreRPC_DissociateWorkloadServer) error { 1135 return status.Errorf(codes.Unimplemented, "method DissociateWorkload not implemented") 1136 } 1137 func (UnimplementedCoreRPCServer) ControlWorkload(*ControlWorkloadOptions, CoreRPC_ControlWorkloadServer) error { 1138 return status.Errorf(codes.Unimplemented, "method ControlWorkload not implemented") 1139 } 1140 func (UnimplementedCoreRPCServer) ExecuteWorkload(CoreRPC_ExecuteWorkloadServer) error { 1141 return status.Errorf(codes.Unimplemented, "method ExecuteWorkload not implemented") 1142 } 1143 func (UnimplementedCoreRPCServer) ReallocResource(context.Context, *ReallocOptions) (*ReallocResourceMessage, error) { 1144 return nil, status.Errorf(codes.Unimplemented, "method ReallocResource not implemented") 1145 } 1146 func (UnimplementedCoreRPCServer) LogStream(*LogStreamOptions, CoreRPC_LogStreamServer) error { 1147 return status.Errorf(codes.Unimplemented, "method LogStream not implemented") 1148 } 1149 func (UnimplementedCoreRPCServer) RunAndWait(CoreRPC_RunAndWaitServer) error { 1150 return status.Errorf(codes.Unimplemented, "method RunAndWait not implemented") 1151 } 1152 func (UnimplementedCoreRPCServer) RawEngine(context.Context, *RawEngineOptions) (*RawEngineMessage, error) { 1153 return nil, status.Errorf(codes.Unimplemented, "method RawEngine not implemented") 1154 } 1155 1156 // UnsafeCoreRPCServer may be embedded to opt out of forward compatibility for this service. 1157 // Use of this interface is not recommended, as added methods to CoreRPCServer will 1158 // result in compilation errors. 1159 type UnsafeCoreRPCServer interface { 1160 mustEmbedUnimplementedCoreRPCServer() 1161 } 1162 1163 func RegisterCoreRPCServer(s grpc.ServiceRegistrar, srv CoreRPCServer) { 1164 s.RegisterService(&CoreRPC_ServiceDesc, srv) 1165 } 1166 1167 func _CoreRPC_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1168 in := new(Empty) 1169 if err := dec(in); err != nil { 1170 return nil, err 1171 } 1172 if interceptor == nil { 1173 return srv.(CoreRPCServer).Info(ctx, in) 1174 } 1175 info := &grpc.UnaryServerInfo{ 1176 Server: srv, 1177 FullMethod: "/pb.CoreRPC/Info", 1178 } 1179 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1180 return srv.(CoreRPCServer).Info(ctx, req.(*Empty)) 1181 } 1182 return interceptor(ctx, in, info, handler) 1183 } 1184 1185 func _CoreRPC_WatchServiceStatus_Handler(srv interface{}, stream grpc.ServerStream) error { 1186 m := new(Empty) 1187 if err := stream.RecvMsg(m); err != nil { 1188 return err 1189 } 1190 return srv.(CoreRPCServer).WatchServiceStatus(m, &coreRPCWatchServiceStatusServer{stream}) 1191 } 1192 1193 type CoreRPC_WatchServiceStatusServer interface { 1194 Send(*ServiceStatus) error 1195 grpc.ServerStream 1196 } 1197 1198 type coreRPCWatchServiceStatusServer struct { 1199 grpc.ServerStream 1200 } 1201 1202 func (x *coreRPCWatchServiceStatusServer) Send(m *ServiceStatus) error { 1203 return x.ServerStream.SendMsg(m) 1204 } 1205 1206 func _CoreRPC_ListNetworks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1207 in := new(ListNetworkOptions) 1208 if err := dec(in); err != nil { 1209 return nil, err 1210 } 1211 if interceptor == nil { 1212 return srv.(CoreRPCServer).ListNetworks(ctx, in) 1213 } 1214 info := &grpc.UnaryServerInfo{ 1215 Server: srv, 1216 FullMethod: "/pb.CoreRPC/ListNetworks", 1217 } 1218 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1219 return srv.(CoreRPCServer).ListNetworks(ctx, req.(*ListNetworkOptions)) 1220 } 1221 return interceptor(ctx, in, info, handler) 1222 } 1223 1224 func _CoreRPC_ConnectNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1225 in := new(ConnectNetworkOptions) 1226 if err := dec(in); err != nil { 1227 return nil, err 1228 } 1229 if interceptor == nil { 1230 return srv.(CoreRPCServer).ConnectNetwork(ctx, in) 1231 } 1232 info := &grpc.UnaryServerInfo{ 1233 Server: srv, 1234 FullMethod: "/pb.CoreRPC/ConnectNetwork", 1235 } 1236 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1237 return srv.(CoreRPCServer).ConnectNetwork(ctx, req.(*ConnectNetworkOptions)) 1238 } 1239 return interceptor(ctx, in, info, handler) 1240 } 1241 1242 func _CoreRPC_DisconnectNetwork_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1243 in := new(DisconnectNetworkOptions) 1244 if err := dec(in); err != nil { 1245 return nil, err 1246 } 1247 if interceptor == nil { 1248 return srv.(CoreRPCServer).DisconnectNetwork(ctx, in) 1249 } 1250 info := &grpc.UnaryServerInfo{ 1251 Server: srv, 1252 FullMethod: "/pb.CoreRPC/DisconnectNetwork", 1253 } 1254 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1255 return srv.(CoreRPCServer).DisconnectNetwork(ctx, req.(*DisconnectNetworkOptions)) 1256 } 1257 return interceptor(ctx, in, info, handler) 1258 } 1259 1260 func _CoreRPC_AddPod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1261 in := new(AddPodOptions) 1262 if err := dec(in); err != nil { 1263 return nil, err 1264 } 1265 if interceptor == nil { 1266 return srv.(CoreRPCServer).AddPod(ctx, in) 1267 } 1268 info := &grpc.UnaryServerInfo{ 1269 Server: srv, 1270 FullMethod: "/pb.CoreRPC/AddPod", 1271 } 1272 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1273 return srv.(CoreRPCServer).AddPod(ctx, req.(*AddPodOptions)) 1274 } 1275 return interceptor(ctx, in, info, handler) 1276 } 1277 1278 func _CoreRPC_RemovePod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1279 in := new(RemovePodOptions) 1280 if err := dec(in); err != nil { 1281 return nil, err 1282 } 1283 if interceptor == nil { 1284 return srv.(CoreRPCServer).RemovePod(ctx, in) 1285 } 1286 info := &grpc.UnaryServerInfo{ 1287 Server: srv, 1288 FullMethod: "/pb.CoreRPC/RemovePod", 1289 } 1290 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1291 return srv.(CoreRPCServer).RemovePod(ctx, req.(*RemovePodOptions)) 1292 } 1293 return interceptor(ctx, in, info, handler) 1294 } 1295 1296 func _CoreRPC_GetPod_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1297 in := new(GetPodOptions) 1298 if err := dec(in); err != nil { 1299 return nil, err 1300 } 1301 if interceptor == nil { 1302 return srv.(CoreRPCServer).GetPod(ctx, in) 1303 } 1304 info := &grpc.UnaryServerInfo{ 1305 Server: srv, 1306 FullMethod: "/pb.CoreRPC/GetPod", 1307 } 1308 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1309 return srv.(CoreRPCServer).GetPod(ctx, req.(*GetPodOptions)) 1310 } 1311 return interceptor(ctx, in, info, handler) 1312 } 1313 1314 func _CoreRPC_ListPods_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1315 in := new(Empty) 1316 if err := dec(in); err != nil { 1317 return nil, err 1318 } 1319 if interceptor == nil { 1320 return srv.(CoreRPCServer).ListPods(ctx, in) 1321 } 1322 info := &grpc.UnaryServerInfo{ 1323 Server: srv, 1324 FullMethod: "/pb.CoreRPC/ListPods", 1325 } 1326 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1327 return srv.(CoreRPCServer).ListPods(ctx, req.(*Empty)) 1328 } 1329 return interceptor(ctx, in, info, handler) 1330 } 1331 1332 func _CoreRPC_GetPodResource_Handler(srv interface{}, stream grpc.ServerStream) error { 1333 m := new(GetPodOptions) 1334 if err := stream.RecvMsg(m); err != nil { 1335 return err 1336 } 1337 return srv.(CoreRPCServer).GetPodResource(m, &coreRPCGetPodResourceServer{stream}) 1338 } 1339 1340 type CoreRPC_GetPodResourceServer interface { 1341 Send(*NodeResource) error 1342 grpc.ServerStream 1343 } 1344 1345 type coreRPCGetPodResourceServer struct { 1346 grpc.ServerStream 1347 } 1348 1349 func (x *coreRPCGetPodResourceServer) Send(m *NodeResource) error { 1350 return x.ServerStream.SendMsg(m) 1351 } 1352 1353 func _CoreRPC_GetNodeResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1354 in := new(GetNodeResourceOptions) 1355 if err := dec(in); err != nil { 1356 return nil, err 1357 } 1358 if interceptor == nil { 1359 return srv.(CoreRPCServer).GetNodeResource(ctx, in) 1360 } 1361 info := &grpc.UnaryServerInfo{ 1362 Server: srv, 1363 FullMethod: "/pb.CoreRPC/GetNodeResource", 1364 } 1365 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1366 return srv.(CoreRPCServer).GetNodeResource(ctx, req.(*GetNodeResourceOptions)) 1367 } 1368 return interceptor(ctx, in, info, handler) 1369 } 1370 1371 func _CoreRPC_AddNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1372 in := new(AddNodeOptions) 1373 if err := dec(in); err != nil { 1374 return nil, err 1375 } 1376 if interceptor == nil { 1377 return srv.(CoreRPCServer).AddNode(ctx, in) 1378 } 1379 info := &grpc.UnaryServerInfo{ 1380 Server: srv, 1381 FullMethod: "/pb.CoreRPC/AddNode", 1382 } 1383 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1384 return srv.(CoreRPCServer).AddNode(ctx, req.(*AddNodeOptions)) 1385 } 1386 return interceptor(ctx, in, info, handler) 1387 } 1388 1389 func _CoreRPC_RemoveNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1390 in := new(RemoveNodeOptions) 1391 if err := dec(in); err != nil { 1392 return nil, err 1393 } 1394 if interceptor == nil { 1395 return srv.(CoreRPCServer).RemoveNode(ctx, in) 1396 } 1397 info := &grpc.UnaryServerInfo{ 1398 Server: srv, 1399 FullMethod: "/pb.CoreRPC/RemoveNode", 1400 } 1401 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1402 return srv.(CoreRPCServer).RemoveNode(ctx, req.(*RemoveNodeOptions)) 1403 } 1404 return interceptor(ctx, in, info, handler) 1405 } 1406 1407 func _CoreRPC_ListPodNodes_Handler(srv interface{}, stream grpc.ServerStream) error { 1408 m := new(ListNodesOptions) 1409 if err := stream.RecvMsg(m); err != nil { 1410 return err 1411 } 1412 return srv.(CoreRPCServer).ListPodNodes(m, &coreRPCListPodNodesServer{stream}) 1413 } 1414 1415 type CoreRPC_ListPodNodesServer interface { 1416 Send(*Node) error 1417 grpc.ServerStream 1418 } 1419 1420 type coreRPCListPodNodesServer struct { 1421 grpc.ServerStream 1422 } 1423 1424 func (x *coreRPCListPodNodesServer) Send(m *Node) error { 1425 return x.ServerStream.SendMsg(m) 1426 } 1427 1428 func _CoreRPC_GetNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1429 in := new(GetNodeOptions) 1430 if err := dec(in); err != nil { 1431 return nil, err 1432 } 1433 if interceptor == nil { 1434 return srv.(CoreRPCServer).GetNode(ctx, in) 1435 } 1436 info := &grpc.UnaryServerInfo{ 1437 Server: srv, 1438 FullMethod: "/pb.CoreRPC/GetNode", 1439 } 1440 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1441 return srv.(CoreRPCServer).GetNode(ctx, req.(*GetNodeOptions)) 1442 } 1443 return interceptor(ctx, in, info, handler) 1444 } 1445 1446 func _CoreRPC_GetNodeEngineInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1447 in := new(GetNodeOptions) 1448 if err := dec(in); err != nil { 1449 return nil, err 1450 } 1451 if interceptor == nil { 1452 return srv.(CoreRPCServer).GetNodeEngineInfo(ctx, in) 1453 } 1454 info := &grpc.UnaryServerInfo{ 1455 Server: srv, 1456 FullMethod: "/pb.CoreRPC/GetNodeEngineInfo", 1457 } 1458 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1459 return srv.(CoreRPCServer).GetNodeEngineInfo(ctx, req.(*GetNodeOptions)) 1460 } 1461 return interceptor(ctx, in, info, handler) 1462 } 1463 1464 func _CoreRPC_SetNode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1465 in := new(SetNodeOptions) 1466 if err := dec(in); err != nil { 1467 return nil, err 1468 } 1469 if interceptor == nil { 1470 return srv.(CoreRPCServer).SetNode(ctx, in) 1471 } 1472 info := &grpc.UnaryServerInfo{ 1473 Server: srv, 1474 FullMethod: "/pb.CoreRPC/SetNode", 1475 } 1476 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1477 return srv.(CoreRPCServer).SetNode(ctx, req.(*SetNodeOptions)) 1478 } 1479 return interceptor(ctx, in, info, handler) 1480 } 1481 1482 func _CoreRPC_GetNodeStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1483 in := new(GetNodeStatusOptions) 1484 if err := dec(in); err != nil { 1485 return nil, err 1486 } 1487 if interceptor == nil { 1488 return srv.(CoreRPCServer).GetNodeStatus(ctx, in) 1489 } 1490 info := &grpc.UnaryServerInfo{ 1491 Server: srv, 1492 FullMethod: "/pb.CoreRPC/GetNodeStatus", 1493 } 1494 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1495 return srv.(CoreRPCServer).GetNodeStatus(ctx, req.(*GetNodeStatusOptions)) 1496 } 1497 return interceptor(ctx, in, info, handler) 1498 } 1499 1500 func _CoreRPC_SetNodeStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1501 in := new(SetNodeStatusOptions) 1502 if err := dec(in); err != nil { 1503 return nil, err 1504 } 1505 if interceptor == nil { 1506 return srv.(CoreRPCServer).SetNodeStatus(ctx, in) 1507 } 1508 info := &grpc.UnaryServerInfo{ 1509 Server: srv, 1510 FullMethod: "/pb.CoreRPC/SetNodeStatus", 1511 } 1512 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1513 return srv.(CoreRPCServer).SetNodeStatus(ctx, req.(*SetNodeStatusOptions)) 1514 } 1515 return interceptor(ctx, in, info, handler) 1516 } 1517 1518 func _CoreRPC_NodeStatusStream_Handler(srv interface{}, stream grpc.ServerStream) error { 1519 m := new(Empty) 1520 if err := stream.RecvMsg(m); err != nil { 1521 return err 1522 } 1523 return srv.(CoreRPCServer).NodeStatusStream(m, &coreRPCNodeStatusStreamServer{stream}) 1524 } 1525 1526 type CoreRPC_NodeStatusStreamServer interface { 1527 Send(*NodeStatusStreamMessage) error 1528 grpc.ServerStream 1529 } 1530 1531 type coreRPCNodeStatusStreamServer struct { 1532 grpc.ServerStream 1533 } 1534 1535 func (x *coreRPCNodeStatusStreamServer) Send(m *NodeStatusStreamMessage) error { 1536 return x.ServerStream.SendMsg(m) 1537 } 1538 1539 func _CoreRPC_GetWorkloadsStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1540 in := new(WorkloadIDs) 1541 if err := dec(in); err != nil { 1542 return nil, err 1543 } 1544 if interceptor == nil { 1545 return srv.(CoreRPCServer).GetWorkloadsStatus(ctx, in) 1546 } 1547 info := &grpc.UnaryServerInfo{ 1548 Server: srv, 1549 FullMethod: "/pb.CoreRPC/GetWorkloadsStatus", 1550 } 1551 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1552 return srv.(CoreRPCServer).GetWorkloadsStatus(ctx, req.(*WorkloadIDs)) 1553 } 1554 return interceptor(ctx, in, info, handler) 1555 } 1556 1557 func _CoreRPC_SetWorkloadsStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1558 in := new(SetWorkloadsStatusOptions) 1559 if err := dec(in); err != nil { 1560 return nil, err 1561 } 1562 if interceptor == nil { 1563 return srv.(CoreRPCServer).SetWorkloadsStatus(ctx, in) 1564 } 1565 info := &grpc.UnaryServerInfo{ 1566 Server: srv, 1567 FullMethod: "/pb.CoreRPC/SetWorkloadsStatus", 1568 } 1569 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1570 return srv.(CoreRPCServer).SetWorkloadsStatus(ctx, req.(*SetWorkloadsStatusOptions)) 1571 } 1572 return interceptor(ctx, in, info, handler) 1573 } 1574 1575 func _CoreRPC_WorkloadStatusStream_Handler(srv interface{}, stream grpc.ServerStream) error { 1576 m := new(WorkloadStatusStreamOptions) 1577 if err := stream.RecvMsg(m); err != nil { 1578 return err 1579 } 1580 return srv.(CoreRPCServer).WorkloadStatusStream(m, &coreRPCWorkloadStatusStreamServer{stream}) 1581 } 1582 1583 type CoreRPC_WorkloadStatusStreamServer interface { 1584 Send(*WorkloadStatusStreamMessage) error 1585 grpc.ServerStream 1586 } 1587 1588 type coreRPCWorkloadStatusStreamServer struct { 1589 grpc.ServerStream 1590 } 1591 1592 func (x *coreRPCWorkloadStatusStreamServer) Send(m *WorkloadStatusStreamMessage) error { 1593 return x.ServerStream.SendMsg(m) 1594 } 1595 1596 func _CoreRPC_CalculateCapacity_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1597 in := new(DeployOptions) 1598 if err := dec(in); err != nil { 1599 return nil, err 1600 } 1601 if interceptor == nil { 1602 return srv.(CoreRPCServer).CalculateCapacity(ctx, in) 1603 } 1604 info := &grpc.UnaryServerInfo{ 1605 Server: srv, 1606 FullMethod: "/pb.CoreRPC/CalculateCapacity", 1607 } 1608 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1609 return srv.(CoreRPCServer).CalculateCapacity(ctx, req.(*DeployOptions)) 1610 } 1611 return interceptor(ctx, in, info, handler) 1612 } 1613 1614 func _CoreRPC_GetWorkload_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1615 in := new(WorkloadID) 1616 if err := dec(in); err != nil { 1617 return nil, err 1618 } 1619 if interceptor == nil { 1620 return srv.(CoreRPCServer).GetWorkload(ctx, in) 1621 } 1622 info := &grpc.UnaryServerInfo{ 1623 Server: srv, 1624 FullMethod: "/pb.CoreRPC/GetWorkload", 1625 } 1626 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1627 return srv.(CoreRPCServer).GetWorkload(ctx, req.(*WorkloadID)) 1628 } 1629 return interceptor(ctx, in, info, handler) 1630 } 1631 1632 func _CoreRPC_GetWorkloads_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1633 in := new(WorkloadIDs) 1634 if err := dec(in); err != nil { 1635 return nil, err 1636 } 1637 if interceptor == nil { 1638 return srv.(CoreRPCServer).GetWorkloads(ctx, in) 1639 } 1640 info := &grpc.UnaryServerInfo{ 1641 Server: srv, 1642 FullMethod: "/pb.CoreRPC/GetWorkloads", 1643 } 1644 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1645 return srv.(CoreRPCServer).GetWorkloads(ctx, req.(*WorkloadIDs)) 1646 } 1647 return interceptor(ctx, in, info, handler) 1648 } 1649 1650 func _CoreRPC_ListWorkloads_Handler(srv interface{}, stream grpc.ServerStream) error { 1651 m := new(ListWorkloadsOptions) 1652 if err := stream.RecvMsg(m); err != nil { 1653 return err 1654 } 1655 return srv.(CoreRPCServer).ListWorkloads(m, &coreRPCListWorkloadsServer{stream}) 1656 } 1657 1658 type CoreRPC_ListWorkloadsServer interface { 1659 Send(*Workload) error 1660 grpc.ServerStream 1661 } 1662 1663 type coreRPCListWorkloadsServer struct { 1664 grpc.ServerStream 1665 } 1666 1667 func (x *coreRPCListWorkloadsServer) Send(m *Workload) error { 1668 return x.ServerStream.SendMsg(m) 1669 } 1670 1671 func _CoreRPC_ListNodeWorkloads_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1672 in := new(GetNodeOptions) 1673 if err := dec(in); err != nil { 1674 return nil, err 1675 } 1676 if interceptor == nil { 1677 return srv.(CoreRPCServer).ListNodeWorkloads(ctx, in) 1678 } 1679 info := &grpc.UnaryServerInfo{ 1680 Server: srv, 1681 FullMethod: "/pb.CoreRPC/ListNodeWorkloads", 1682 } 1683 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1684 return srv.(CoreRPCServer).ListNodeWorkloads(ctx, req.(*GetNodeOptions)) 1685 } 1686 return interceptor(ctx, in, info, handler) 1687 } 1688 1689 func _CoreRPC_Copy_Handler(srv interface{}, stream grpc.ServerStream) error { 1690 m := new(CopyOptions) 1691 if err := stream.RecvMsg(m); err != nil { 1692 return err 1693 } 1694 return srv.(CoreRPCServer).Copy(m, &coreRPCCopyServer{stream}) 1695 } 1696 1697 type CoreRPC_CopyServer interface { 1698 Send(*CopyMessage) error 1699 grpc.ServerStream 1700 } 1701 1702 type coreRPCCopyServer struct { 1703 grpc.ServerStream 1704 } 1705 1706 func (x *coreRPCCopyServer) Send(m *CopyMessage) error { 1707 return x.ServerStream.SendMsg(m) 1708 } 1709 1710 func _CoreRPC_Send_Handler(srv interface{}, stream grpc.ServerStream) error { 1711 m := new(SendOptions) 1712 if err := stream.RecvMsg(m); err != nil { 1713 return err 1714 } 1715 return srv.(CoreRPCServer).Send(m, &coreRPCSendServer{stream}) 1716 } 1717 1718 type CoreRPC_SendServer interface { 1719 Send(*SendMessage) error 1720 grpc.ServerStream 1721 } 1722 1723 type coreRPCSendServer struct { 1724 grpc.ServerStream 1725 } 1726 1727 func (x *coreRPCSendServer) Send(m *SendMessage) error { 1728 return x.ServerStream.SendMsg(m) 1729 } 1730 1731 func _CoreRPC_SendLargeFile_Handler(srv interface{}, stream grpc.ServerStream) error { 1732 return srv.(CoreRPCServer).SendLargeFile(&coreRPCSendLargeFileServer{stream}) 1733 } 1734 1735 type CoreRPC_SendLargeFileServer interface { 1736 Send(*SendMessage) error 1737 Recv() (*FileOptions, error) 1738 grpc.ServerStream 1739 } 1740 1741 type coreRPCSendLargeFileServer struct { 1742 grpc.ServerStream 1743 } 1744 1745 func (x *coreRPCSendLargeFileServer) Send(m *SendMessage) error { 1746 return x.ServerStream.SendMsg(m) 1747 } 1748 1749 func (x *coreRPCSendLargeFileServer) Recv() (*FileOptions, error) { 1750 m := new(FileOptions) 1751 if err := x.ServerStream.RecvMsg(m); err != nil { 1752 return nil, err 1753 } 1754 return m, nil 1755 } 1756 1757 func _CoreRPC_BuildImage_Handler(srv interface{}, stream grpc.ServerStream) error { 1758 m := new(BuildImageOptions) 1759 if err := stream.RecvMsg(m); err != nil { 1760 return err 1761 } 1762 return srv.(CoreRPCServer).BuildImage(m, &coreRPCBuildImageServer{stream}) 1763 } 1764 1765 type CoreRPC_BuildImageServer interface { 1766 Send(*BuildImageMessage) error 1767 grpc.ServerStream 1768 } 1769 1770 type coreRPCBuildImageServer struct { 1771 grpc.ServerStream 1772 } 1773 1774 func (x *coreRPCBuildImageServer) Send(m *BuildImageMessage) error { 1775 return x.ServerStream.SendMsg(m) 1776 } 1777 1778 func _CoreRPC_CacheImage_Handler(srv interface{}, stream grpc.ServerStream) error { 1779 m := new(CacheImageOptions) 1780 if err := stream.RecvMsg(m); err != nil { 1781 return err 1782 } 1783 return srv.(CoreRPCServer).CacheImage(m, &coreRPCCacheImageServer{stream}) 1784 } 1785 1786 type CoreRPC_CacheImageServer interface { 1787 Send(*CacheImageMessage) error 1788 grpc.ServerStream 1789 } 1790 1791 type coreRPCCacheImageServer struct { 1792 grpc.ServerStream 1793 } 1794 1795 func (x *coreRPCCacheImageServer) Send(m *CacheImageMessage) error { 1796 return x.ServerStream.SendMsg(m) 1797 } 1798 1799 func _CoreRPC_RemoveImage_Handler(srv interface{}, stream grpc.ServerStream) error { 1800 m := new(RemoveImageOptions) 1801 if err := stream.RecvMsg(m); err != nil { 1802 return err 1803 } 1804 return srv.(CoreRPCServer).RemoveImage(m, &coreRPCRemoveImageServer{stream}) 1805 } 1806 1807 type CoreRPC_RemoveImageServer interface { 1808 Send(*RemoveImageMessage) error 1809 grpc.ServerStream 1810 } 1811 1812 type coreRPCRemoveImageServer struct { 1813 grpc.ServerStream 1814 } 1815 1816 func (x *coreRPCRemoveImageServer) Send(m *RemoveImageMessage) error { 1817 return x.ServerStream.SendMsg(m) 1818 } 1819 1820 func _CoreRPC_ListImage_Handler(srv interface{}, stream grpc.ServerStream) error { 1821 m := new(ListImageOptions) 1822 if err := stream.RecvMsg(m); err != nil { 1823 return err 1824 } 1825 return srv.(CoreRPCServer).ListImage(m, &coreRPCListImageServer{stream}) 1826 } 1827 1828 type CoreRPC_ListImageServer interface { 1829 Send(*ListImageMessage) error 1830 grpc.ServerStream 1831 } 1832 1833 type coreRPCListImageServer struct { 1834 grpc.ServerStream 1835 } 1836 1837 func (x *coreRPCListImageServer) Send(m *ListImageMessage) error { 1838 return x.ServerStream.SendMsg(m) 1839 } 1840 1841 func _CoreRPC_CreateWorkload_Handler(srv interface{}, stream grpc.ServerStream) error { 1842 m := new(DeployOptions) 1843 if err := stream.RecvMsg(m); err != nil { 1844 return err 1845 } 1846 return srv.(CoreRPCServer).CreateWorkload(m, &coreRPCCreateWorkloadServer{stream}) 1847 } 1848 1849 type CoreRPC_CreateWorkloadServer interface { 1850 Send(*CreateWorkloadMessage) error 1851 grpc.ServerStream 1852 } 1853 1854 type coreRPCCreateWorkloadServer struct { 1855 grpc.ServerStream 1856 } 1857 1858 func (x *coreRPCCreateWorkloadServer) Send(m *CreateWorkloadMessage) error { 1859 return x.ServerStream.SendMsg(m) 1860 } 1861 1862 func _CoreRPC_ReplaceWorkload_Handler(srv interface{}, stream grpc.ServerStream) error { 1863 m := new(ReplaceOptions) 1864 if err := stream.RecvMsg(m); err != nil { 1865 return err 1866 } 1867 return srv.(CoreRPCServer).ReplaceWorkload(m, &coreRPCReplaceWorkloadServer{stream}) 1868 } 1869 1870 type CoreRPC_ReplaceWorkloadServer interface { 1871 Send(*ReplaceWorkloadMessage) error 1872 grpc.ServerStream 1873 } 1874 1875 type coreRPCReplaceWorkloadServer struct { 1876 grpc.ServerStream 1877 } 1878 1879 func (x *coreRPCReplaceWorkloadServer) Send(m *ReplaceWorkloadMessage) error { 1880 return x.ServerStream.SendMsg(m) 1881 } 1882 1883 func _CoreRPC_RemoveWorkload_Handler(srv interface{}, stream grpc.ServerStream) error { 1884 m := new(RemoveWorkloadOptions) 1885 if err := stream.RecvMsg(m); err != nil { 1886 return err 1887 } 1888 return srv.(CoreRPCServer).RemoveWorkload(m, &coreRPCRemoveWorkloadServer{stream}) 1889 } 1890 1891 type CoreRPC_RemoveWorkloadServer interface { 1892 Send(*RemoveWorkloadMessage) error 1893 grpc.ServerStream 1894 } 1895 1896 type coreRPCRemoveWorkloadServer struct { 1897 grpc.ServerStream 1898 } 1899 1900 func (x *coreRPCRemoveWorkloadServer) Send(m *RemoveWorkloadMessage) error { 1901 return x.ServerStream.SendMsg(m) 1902 } 1903 1904 func _CoreRPC_DissociateWorkload_Handler(srv interface{}, stream grpc.ServerStream) error { 1905 m := new(DissociateWorkloadOptions) 1906 if err := stream.RecvMsg(m); err != nil { 1907 return err 1908 } 1909 return srv.(CoreRPCServer).DissociateWorkload(m, &coreRPCDissociateWorkloadServer{stream}) 1910 } 1911 1912 type CoreRPC_DissociateWorkloadServer interface { 1913 Send(*DissociateWorkloadMessage) error 1914 grpc.ServerStream 1915 } 1916 1917 type coreRPCDissociateWorkloadServer struct { 1918 grpc.ServerStream 1919 } 1920 1921 func (x *coreRPCDissociateWorkloadServer) Send(m *DissociateWorkloadMessage) error { 1922 return x.ServerStream.SendMsg(m) 1923 } 1924 1925 func _CoreRPC_ControlWorkload_Handler(srv interface{}, stream grpc.ServerStream) error { 1926 m := new(ControlWorkloadOptions) 1927 if err := stream.RecvMsg(m); err != nil { 1928 return err 1929 } 1930 return srv.(CoreRPCServer).ControlWorkload(m, &coreRPCControlWorkloadServer{stream}) 1931 } 1932 1933 type CoreRPC_ControlWorkloadServer interface { 1934 Send(*ControlWorkloadMessage) error 1935 grpc.ServerStream 1936 } 1937 1938 type coreRPCControlWorkloadServer struct { 1939 grpc.ServerStream 1940 } 1941 1942 func (x *coreRPCControlWorkloadServer) Send(m *ControlWorkloadMessage) error { 1943 return x.ServerStream.SendMsg(m) 1944 } 1945 1946 func _CoreRPC_ExecuteWorkload_Handler(srv interface{}, stream grpc.ServerStream) error { 1947 return srv.(CoreRPCServer).ExecuteWorkload(&coreRPCExecuteWorkloadServer{stream}) 1948 } 1949 1950 type CoreRPC_ExecuteWorkloadServer interface { 1951 Send(*AttachWorkloadMessage) error 1952 Recv() (*ExecuteWorkloadOptions, error) 1953 grpc.ServerStream 1954 } 1955 1956 type coreRPCExecuteWorkloadServer struct { 1957 grpc.ServerStream 1958 } 1959 1960 func (x *coreRPCExecuteWorkloadServer) Send(m *AttachWorkloadMessage) error { 1961 return x.ServerStream.SendMsg(m) 1962 } 1963 1964 func (x *coreRPCExecuteWorkloadServer) Recv() (*ExecuteWorkloadOptions, error) { 1965 m := new(ExecuteWorkloadOptions) 1966 if err := x.ServerStream.RecvMsg(m); err != nil { 1967 return nil, err 1968 } 1969 return m, nil 1970 } 1971 1972 func _CoreRPC_ReallocResource_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1973 in := new(ReallocOptions) 1974 if err := dec(in); err != nil { 1975 return nil, err 1976 } 1977 if interceptor == nil { 1978 return srv.(CoreRPCServer).ReallocResource(ctx, in) 1979 } 1980 info := &grpc.UnaryServerInfo{ 1981 Server: srv, 1982 FullMethod: "/pb.CoreRPC/ReallocResource", 1983 } 1984 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1985 return srv.(CoreRPCServer).ReallocResource(ctx, req.(*ReallocOptions)) 1986 } 1987 return interceptor(ctx, in, info, handler) 1988 } 1989 1990 func _CoreRPC_LogStream_Handler(srv interface{}, stream grpc.ServerStream) error { 1991 m := new(LogStreamOptions) 1992 if err := stream.RecvMsg(m); err != nil { 1993 return err 1994 } 1995 return srv.(CoreRPCServer).LogStream(m, &coreRPCLogStreamServer{stream}) 1996 } 1997 1998 type CoreRPC_LogStreamServer interface { 1999 Send(*LogStreamMessage) error 2000 grpc.ServerStream 2001 } 2002 2003 type coreRPCLogStreamServer struct { 2004 grpc.ServerStream 2005 } 2006 2007 func (x *coreRPCLogStreamServer) Send(m *LogStreamMessage) error { 2008 return x.ServerStream.SendMsg(m) 2009 } 2010 2011 func _CoreRPC_RunAndWait_Handler(srv interface{}, stream grpc.ServerStream) error { 2012 return srv.(CoreRPCServer).RunAndWait(&coreRPCRunAndWaitServer{stream}) 2013 } 2014 2015 type CoreRPC_RunAndWaitServer interface { 2016 Send(*AttachWorkloadMessage) error 2017 Recv() (*RunAndWaitOptions, error) 2018 grpc.ServerStream 2019 } 2020 2021 type coreRPCRunAndWaitServer struct { 2022 grpc.ServerStream 2023 } 2024 2025 func (x *coreRPCRunAndWaitServer) Send(m *AttachWorkloadMessage) error { 2026 return x.ServerStream.SendMsg(m) 2027 } 2028 2029 func (x *coreRPCRunAndWaitServer) Recv() (*RunAndWaitOptions, error) { 2030 m := new(RunAndWaitOptions) 2031 if err := x.ServerStream.RecvMsg(m); err != nil { 2032 return nil, err 2033 } 2034 return m, nil 2035 } 2036 2037 func _CoreRPC_RawEngine_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2038 in := new(RawEngineOptions) 2039 if err := dec(in); err != nil { 2040 return nil, err 2041 } 2042 if interceptor == nil { 2043 return srv.(CoreRPCServer).RawEngine(ctx, in) 2044 } 2045 info := &grpc.UnaryServerInfo{ 2046 Server: srv, 2047 FullMethod: "/pb.CoreRPC/RawEngine", 2048 } 2049 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2050 return srv.(CoreRPCServer).RawEngine(ctx, req.(*RawEngineOptions)) 2051 } 2052 return interceptor(ctx, in, info, handler) 2053 } 2054 2055 // CoreRPC_ServiceDesc is the grpc.ServiceDesc for CoreRPC service. 2056 // It's only intended for direct use with grpc.RegisterService, 2057 // and not to be introspected or modified (even as a copy) 2058 var CoreRPC_ServiceDesc = grpc.ServiceDesc{ 2059 ServiceName: "pb.CoreRPC", 2060 HandlerType: (*CoreRPCServer)(nil), 2061 Methods: []grpc.MethodDesc{ 2062 { 2063 MethodName: "Info", 2064 Handler: _CoreRPC_Info_Handler, 2065 }, 2066 { 2067 MethodName: "ListNetworks", 2068 Handler: _CoreRPC_ListNetworks_Handler, 2069 }, 2070 { 2071 MethodName: "ConnectNetwork", 2072 Handler: _CoreRPC_ConnectNetwork_Handler, 2073 }, 2074 { 2075 MethodName: "DisconnectNetwork", 2076 Handler: _CoreRPC_DisconnectNetwork_Handler, 2077 }, 2078 { 2079 MethodName: "AddPod", 2080 Handler: _CoreRPC_AddPod_Handler, 2081 }, 2082 { 2083 MethodName: "RemovePod", 2084 Handler: _CoreRPC_RemovePod_Handler, 2085 }, 2086 { 2087 MethodName: "GetPod", 2088 Handler: _CoreRPC_GetPod_Handler, 2089 }, 2090 { 2091 MethodName: "ListPods", 2092 Handler: _CoreRPC_ListPods_Handler, 2093 }, 2094 { 2095 MethodName: "GetNodeResource", 2096 Handler: _CoreRPC_GetNodeResource_Handler, 2097 }, 2098 { 2099 MethodName: "AddNode", 2100 Handler: _CoreRPC_AddNode_Handler, 2101 }, 2102 { 2103 MethodName: "RemoveNode", 2104 Handler: _CoreRPC_RemoveNode_Handler, 2105 }, 2106 { 2107 MethodName: "GetNode", 2108 Handler: _CoreRPC_GetNode_Handler, 2109 }, 2110 { 2111 MethodName: "GetNodeEngineInfo", 2112 Handler: _CoreRPC_GetNodeEngineInfo_Handler, 2113 }, 2114 { 2115 MethodName: "SetNode", 2116 Handler: _CoreRPC_SetNode_Handler, 2117 }, 2118 { 2119 MethodName: "GetNodeStatus", 2120 Handler: _CoreRPC_GetNodeStatus_Handler, 2121 }, 2122 { 2123 MethodName: "SetNodeStatus", 2124 Handler: _CoreRPC_SetNodeStatus_Handler, 2125 }, 2126 { 2127 MethodName: "GetWorkloadsStatus", 2128 Handler: _CoreRPC_GetWorkloadsStatus_Handler, 2129 }, 2130 { 2131 MethodName: "SetWorkloadsStatus", 2132 Handler: _CoreRPC_SetWorkloadsStatus_Handler, 2133 }, 2134 { 2135 MethodName: "CalculateCapacity", 2136 Handler: _CoreRPC_CalculateCapacity_Handler, 2137 }, 2138 { 2139 MethodName: "GetWorkload", 2140 Handler: _CoreRPC_GetWorkload_Handler, 2141 }, 2142 { 2143 MethodName: "GetWorkloads", 2144 Handler: _CoreRPC_GetWorkloads_Handler, 2145 }, 2146 { 2147 MethodName: "ListNodeWorkloads", 2148 Handler: _CoreRPC_ListNodeWorkloads_Handler, 2149 }, 2150 { 2151 MethodName: "ReallocResource", 2152 Handler: _CoreRPC_ReallocResource_Handler, 2153 }, 2154 { 2155 MethodName: "RawEngine", 2156 Handler: _CoreRPC_RawEngine_Handler, 2157 }, 2158 }, 2159 Streams: []grpc.StreamDesc{ 2160 { 2161 StreamName: "WatchServiceStatus", 2162 Handler: _CoreRPC_WatchServiceStatus_Handler, 2163 ServerStreams: true, 2164 }, 2165 { 2166 StreamName: "GetPodResource", 2167 Handler: _CoreRPC_GetPodResource_Handler, 2168 ServerStreams: true, 2169 }, 2170 { 2171 StreamName: "ListPodNodes", 2172 Handler: _CoreRPC_ListPodNodes_Handler, 2173 ServerStreams: true, 2174 }, 2175 { 2176 StreamName: "NodeStatusStream", 2177 Handler: _CoreRPC_NodeStatusStream_Handler, 2178 ServerStreams: true, 2179 }, 2180 { 2181 StreamName: "WorkloadStatusStream", 2182 Handler: _CoreRPC_WorkloadStatusStream_Handler, 2183 ServerStreams: true, 2184 }, 2185 { 2186 StreamName: "ListWorkloads", 2187 Handler: _CoreRPC_ListWorkloads_Handler, 2188 ServerStreams: true, 2189 }, 2190 { 2191 StreamName: "Copy", 2192 Handler: _CoreRPC_Copy_Handler, 2193 ServerStreams: true, 2194 }, 2195 { 2196 StreamName: "Send", 2197 Handler: _CoreRPC_Send_Handler, 2198 ServerStreams: true, 2199 }, 2200 { 2201 StreamName: "SendLargeFile", 2202 Handler: _CoreRPC_SendLargeFile_Handler, 2203 ServerStreams: true, 2204 ClientStreams: true, 2205 }, 2206 { 2207 StreamName: "BuildImage", 2208 Handler: _CoreRPC_BuildImage_Handler, 2209 ServerStreams: true, 2210 }, 2211 { 2212 StreamName: "CacheImage", 2213 Handler: _CoreRPC_CacheImage_Handler, 2214 ServerStreams: true, 2215 }, 2216 { 2217 StreamName: "RemoveImage", 2218 Handler: _CoreRPC_RemoveImage_Handler, 2219 ServerStreams: true, 2220 }, 2221 { 2222 StreamName: "ListImage", 2223 Handler: _CoreRPC_ListImage_Handler, 2224 ServerStreams: true, 2225 }, 2226 { 2227 StreamName: "CreateWorkload", 2228 Handler: _CoreRPC_CreateWorkload_Handler, 2229 ServerStreams: true, 2230 }, 2231 { 2232 StreamName: "ReplaceWorkload", 2233 Handler: _CoreRPC_ReplaceWorkload_Handler, 2234 ServerStreams: true, 2235 }, 2236 { 2237 StreamName: "RemoveWorkload", 2238 Handler: _CoreRPC_RemoveWorkload_Handler, 2239 ServerStreams: true, 2240 }, 2241 { 2242 StreamName: "DissociateWorkload", 2243 Handler: _CoreRPC_DissociateWorkload_Handler, 2244 ServerStreams: true, 2245 }, 2246 { 2247 StreamName: "ControlWorkload", 2248 Handler: _CoreRPC_ControlWorkload_Handler, 2249 ServerStreams: true, 2250 }, 2251 { 2252 StreamName: "ExecuteWorkload", 2253 Handler: _CoreRPC_ExecuteWorkload_Handler, 2254 ServerStreams: true, 2255 ClientStreams: true, 2256 }, 2257 { 2258 StreamName: "LogStream", 2259 Handler: _CoreRPC_LogStream_Handler, 2260 ServerStreams: true, 2261 }, 2262 { 2263 StreamName: "RunAndWait", 2264 Handler: _CoreRPC_RunAndWait_Handler, 2265 ServerStreams: true, 2266 ClientStreams: true, 2267 }, 2268 }, 2269 Metadata: "rpc/gen/core.proto", 2270 }