github.com/demonoid81/containerd@v1.3.4/api/services/tasks/v1/tasks.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/containerd/containerd/api/services/tasks/v1/tasks.proto 3 4 package tasks 5 6 import ( 7 context "context" 8 fmt "fmt" 9 types "github.com/containerd/containerd/api/types" 10 task "github.com/containerd/containerd/api/types/task" 11 proto "github.com/gogo/protobuf/proto" 12 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 13 types1 "github.com/gogo/protobuf/types" 14 github_com_opencontainers_go_digest "github.com/opencontainers/go-digest" 15 grpc "google.golang.org/grpc" 16 io "io" 17 math "math" 18 reflect "reflect" 19 strings "strings" 20 time "time" 21 ) 22 23 // Reference imports to suppress errors if they are not otherwise used. 24 var _ = proto.Marshal 25 var _ = fmt.Errorf 26 var _ = math.Inf 27 var _ = time.Kitchen 28 29 // This is a compile-time assertion to ensure that this generated file 30 // is compatible with the proto package it is being compiled against. 31 // A compilation error at this line likely means your copy of the 32 // proto package needs to be updated. 33 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 34 35 type CreateTaskRequest struct { 36 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 37 // RootFS provides the pre-chroot mounts to perform in the shim before 38 // executing the container task. 39 // 40 // These are for mounts that cannot be performed in the user namespace. 41 // Typically, these mounts should be resolved from snapshots specified on 42 // the container object. 43 Rootfs []*types.Mount `protobuf:"bytes,3,rep,name=rootfs,proto3" json:"rootfs,omitempty"` 44 Stdin string `protobuf:"bytes,4,opt,name=stdin,proto3" json:"stdin,omitempty"` 45 Stdout string `protobuf:"bytes,5,opt,name=stdout,proto3" json:"stdout,omitempty"` 46 Stderr string `protobuf:"bytes,6,opt,name=stderr,proto3" json:"stderr,omitempty"` 47 Terminal bool `protobuf:"varint,7,opt,name=terminal,proto3" json:"terminal,omitempty"` 48 Checkpoint *types.Descriptor `protobuf:"bytes,8,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` 49 Options *types1.Any `protobuf:"bytes,9,opt,name=options,proto3" json:"options,omitempty"` 50 XXX_NoUnkeyedLiteral struct{} `json:"-"` 51 XXX_unrecognized []byte `json:"-"` 52 XXX_sizecache int32 `json:"-"` 53 } 54 55 func (m *CreateTaskRequest) Reset() { *m = CreateTaskRequest{} } 56 func (*CreateTaskRequest) ProtoMessage() {} 57 func (*CreateTaskRequest) Descriptor() ([]byte, []int) { 58 return fileDescriptor_310e7127b8a26f14, []int{0} 59 } 60 func (m *CreateTaskRequest) XXX_Unmarshal(b []byte) error { 61 return m.Unmarshal(b) 62 } 63 func (m *CreateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 64 if deterministic { 65 return xxx_messageInfo_CreateTaskRequest.Marshal(b, m, deterministic) 66 } else { 67 b = b[:cap(b)] 68 n, err := m.MarshalTo(b) 69 if err != nil { 70 return nil, err 71 } 72 return b[:n], nil 73 } 74 } 75 func (m *CreateTaskRequest) XXX_Merge(src proto.Message) { 76 xxx_messageInfo_CreateTaskRequest.Merge(m, src) 77 } 78 func (m *CreateTaskRequest) XXX_Size() int { 79 return m.Size() 80 } 81 func (m *CreateTaskRequest) XXX_DiscardUnknown() { 82 xxx_messageInfo_CreateTaskRequest.DiscardUnknown(m) 83 } 84 85 var xxx_messageInfo_CreateTaskRequest proto.InternalMessageInfo 86 87 type CreateTaskResponse struct { 88 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 89 Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` 90 XXX_NoUnkeyedLiteral struct{} `json:"-"` 91 XXX_unrecognized []byte `json:"-"` 92 XXX_sizecache int32 `json:"-"` 93 } 94 95 func (m *CreateTaskResponse) Reset() { *m = CreateTaskResponse{} } 96 func (*CreateTaskResponse) ProtoMessage() {} 97 func (*CreateTaskResponse) Descriptor() ([]byte, []int) { 98 return fileDescriptor_310e7127b8a26f14, []int{1} 99 } 100 func (m *CreateTaskResponse) XXX_Unmarshal(b []byte) error { 101 return m.Unmarshal(b) 102 } 103 func (m *CreateTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 104 if deterministic { 105 return xxx_messageInfo_CreateTaskResponse.Marshal(b, m, deterministic) 106 } else { 107 b = b[:cap(b)] 108 n, err := m.MarshalTo(b) 109 if err != nil { 110 return nil, err 111 } 112 return b[:n], nil 113 } 114 } 115 func (m *CreateTaskResponse) XXX_Merge(src proto.Message) { 116 xxx_messageInfo_CreateTaskResponse.Merge(m, src) 117 } 118 func (m *CreateTaskResponse) XXX_Size() int { 119 return m.Size() 120 } 121 func (m *CreateTaskResponse) XXX_DiscardUnknown() { 122 xxx_messageInfo_CreateTaskResponse.DiscardUnknown(m) 123 } 124 125 var xxx_messageInfo_CreateTaskResponse proto.InternalMessageInfo 126 127 type StartRequest struct { 128 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 129 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 130 XXX_NoUnkeyedLiteral struct{} `json:"-"` 131 XXX_unrecognized []byte `json:"-"` 132 XXX_sizecache int32 `json:"-"` 133 } 134 135 func (m *StartRequest) Reset() { *m = StartRequest{} } 136 func (*StartRequest) ProtoMessage() {} 137 func (*StartRequest) Descriptor() ([]byte, []int) { 138 return fileDescriptor_310e7127b8a26f14, []int{2} 139 } 140 func (m *StartRequest) XXX_Unmarshal(b []byte) error { 141 return m.Unmarshal(b) 142 } 143 func (m *StartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 144 if deterministic { 145 return xxx_messageInfo_StartRequest.Marshal(b, m, deterministic) 146 } else { 147 b = b[:cap(b)] 148 n, err := m.MarshalTo(b) 149 if err != nil { 150 return nil, err 151 } 152 return b[:n], nil 153 } 154 } 155 func (m *StartRequest) XXX_Merge(src proto.Message) { 156 xxx_messageInfo_StartRequest.Merge(m, src) 157 } 158 func (m *StartRequest) XXX_Size() int { 159 return m.Size() 160 } 161 func (m *StartRequest) XXX_DiscardUnknown() { 162 xxx_messageInfo_StartRequest.DiscardUnknown(m) 163 } 164 165 var xxx_messageInfo_StartRequest proto.InternalMessageInfo 166 167 type StartResponse struct { 168 Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` 169 XXX_NoUnkeyedLiteral struct{} `json:"-"` 170 XXX_unrecognized []byte `json:"-"` 171 XXX_sizecache int32 `json:"-"` 172 } 173 174 func (m *StartResponse) Reset() { *m = StartResponse{} } 175 func (*StartResponse) ProtoMessage() {} 176 func (*StartResponse) Descriptor() ([]byte, []int) { 177 return fileDescriptor_310e7127b8a26f14, []int{3} 178 } 179 func (m *StartResponse) XXX_Unmarshal(b []byte) error { 180 return m.Unmarshal(b) 181 } 182 func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 183 if deterministic { 184 return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic) 185 } else { 186 b = b[:cap(b)] 187 n, err := m.MarshalTo(b) 188 if err != nil { 189 return nil, err 190 } 191 return b[:n], nil 192 } 193 } 194 func (m *StartResponse) XXX_Merge(src proto.Message) { 195 xxx_messageInfo_StartResponse.Merge(m, src) 196 } 197 func (m *StartResponse) XXX_Size() int { 198 return m.Size() 199 } 200 func (m *StartResponse) XXX_DiscardUnknown() { 201 xxx_messageInfo_StartResponse.DiscardUnknown(m) 202 } 203 204 var xxx_messageInfo_StartResponse proto.InternalMessageInfo 205 206 type DeleteTaskRequest struct { 207 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 208 XXX_NoUnkeyedLiteral struct{} `json:"-"` 209 XXX_unrecognized []byte `json:"-"` 210 XXX_sizecache int32 `json:"-"` 211 } 212 213 func (m *DeleteTaskRequest) Reset() { *m = DeleteTaskRequest{} } 214 func (*DeleteTaskRequest) ProtoMessage() {} 215 func (*DeleteTaskRequest) Descriptor() ([]byte, []int) { 216 return fileDescriptor_310e7127b8a26f14, []int{4} 217 } 218 func (m *DeleteTaskRequest) XXX_Unmarshal(b []byte) error { 219 return m.Unmarshal(b) 220 } 221 func (m *DeleteTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 222 if deterministic { 223 return xxx_messageInfo_DeleteTaskRequest.Marshal(b, m, deterministic) 224 } else { 225 b = b[:cap(b)] 226 n, err := m.MarshalTo(b) 227 if err != nil { 228 return nil, err 229 } 230 return b[:n], nil 231 } 232 } 233 func (m *DeleteTaskRequest) XXX_Merge(src proto.Message) { 234 xxx_messageInfo_DeleteTaskRequest.Merge(m, src) 235 } 236 func (m *DeleteTaskRequest) XXX_Size() int { 237 return m.Size() 238 } 239 func (m *DeleteTaskRequest) XXX_DiscardUnknown() { 240 xxx_messageInfo_DeleteTaskRequest.DiscardUnknown(m) 241 } 242 243 var xxx_messageInfo_DeleteTaskRequest proto.InternalMessageInfo 244 245 type DeleteResponse struct { 246 ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 247 Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` 248 ExitStatus uint32 `protobuf:"varint,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 249 ExitedAt time.Time `protobuf:"bytes,4,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 250 XXX_NoUnkeyedLiteral struct{} `json:"-"` 251 XXX_unrecognized []byte `json:"-"` 252 XXX_sizecache int32 `json:"-"` 253 } 254 255 func (m *DeleteResponse) Reset() { *m = DeleteResponse{} } 256 func (*DeleteResponse) ProtoMessage() {} 257 func (*DeleteResponse) Descriptor() ([]byte, []int) { 258 return fileDescriptor_310e7127b8a26f14, []int{5} 259 } 260 func (m *DeleteResponse) XXX_Unmarshal(b []byte) error { 261 return m.Unmarshal(b) 262 } 263 func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 264 if deterministic { 265 return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic) 266 } else { 267 b = b[:cap(b)] 268 n, err := m.MarshalTo(b) 269 if err != nil { 270 return nil, err 271 } 272 return b[:n], nil 273 } 274 } 275 func (m *DeleteResponse) XXX_Merge(src proto.Message) { 276 xxx_messageInfo_DeleteResponse.Merge(m, src) 277 } 278 func (m *DeleteResponse) XXX_Size() int { 279 return m.Size() 280 } 281 func (m *DeleteResponse) XXX_DiscardUnknown() { 282 xxx_messageInfo_DeleteResponse.DiscardUnknown(m) 283 } 284 285 var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo 286 287 type DeleteProcessRequest struct { 288 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 289 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 290 XXX_NoUnkeyedLiteral struct{} `json:"-"` 291 XXX_unrecognized []byte `json:"-"` 292 XXX_sizecache int32 `json:"-"` 293 } 294 295 func (m *DeleteProcessRequest) Reset() { *m = DeleteProcessRequest{} } 296 func (*DeleteProcessRequest) ProtoMessage() {} 297 func (*DeleteProcessRequest) Descriptor() ([]byte, []int) { 298 return fileDescriptor_310e7127b8a26f14, []int{6} 299 } 300 func (m *DeleteProcessRequest) XXX_Unmarshal(b []byte) error { 301 return m.Unmarshal(b) 302 } 303 func (m *DeleteProcessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 304 if deterministic { 305 return xxx_messageInfo_DeleteProcessRequest.Marshal(b, m, deterministic) 306 } else { 307 b = b[:cap(b)] 308 n, err := m.MarshalTo(b) 309 if err != nil { 310 return nil, err 311 } 312 return b[:n], nil 313 } 314 } 315 func (m *DeleteProcessRequest) XXX_Merge(src proto.Message) { 316 xxx_messageInfo_DeleteProcessRequest.Merge(m, src) 317 } 318 func (m *DeleteProcessRequest) XXX_Size() int { 319 return m.Size() 320 } 321 func (m *DeleteProcessRequest) XXX_DiscardUnknown() { 322 xxx_messageInfo_DeleteProcessRequest.DiscardUnknown(m) 323 } 324 325 var xxx_messageInfo_DeleteProcessRequest proto.InternalMessageInfo 326 327 type GetRequest struct { 328 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 329 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 330 XXX_NoUnkeyedLiteral struct{} `json:"-"` 331 XXX_unrecognized []byte `json:"-"` 332 XXX_sizecache int32 `json:"-"` 333 } 334 335 func (m *GetRequest) Reset() { *m = GetRequest{} } 336 func (*GetRequest) ProtoMessage() {} 337 func (*GetRequest) Descriptor() ([]byte, []int) { 338 return fileDescriptor_310e7127b8a26f14, []int{7} 339 } 340 func (m *GetRequest) XXX_Unmarshal(b []byte) error { 341 return m.Unmarshal(b) 342 } 343 func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 344 if deterministic { 345 return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) 346 } else { 347 b = b[:cap(b)] 348 n, err := m.MarshalTo(b) 349 if err != nil { 350 return nil, err 351 } 352 return b[:n], nil 353 } 354 } 355 func (m *GetRequest) XXX_Merge(src proto.Message) { 356 xxx_messageInfo_GetRequest.Merge(m, src) 357 } 358 func (m *GetRequest) XXX_Size() int { 359 return m.Size() 360 } 361 func (m *GetRequest) XXX_DiscardUnknown() { 362 xxx_messageInfo_GetRequest.DiscardUnknown(m) 363 } 364 365 var xxx_messageInfo_GetRequest proto.InternalMessageInfo 366 367 type GetResponse struct { 368 Process *task.Process `protobuf:"bytes,1,opt,name=process,proto3" json:"process,omitempty"` 369 XXX_NoUnkeyedLiteral struct{} `json:"-"` 370 XXX_unrecognized []byte `json:"-"` 371 XXX_sizecache int32 `json:"-"` 372 } 373 374 func (m *GetResponse) Reset() { *m = GetResponse{} } 375 func (*GetResponse) ProtoMessage() {} 376 func (*GetResponse) Descriptor() ([]byte, []int) { 377 return fileDescriptor_310e7127b8a26f14, []int{8} 378 } 379 func (m *GetResponse) XXX_Unmarshal(b []byte) error { 380 return m.Unmarshal(b) 381 } 382 func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 383 if deterministic { 384 return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) 385 } else { 386 b = b[:cap(b)] 387 n, err := m.MarshalTo(b) 388 if err != nil { 389 return nil, err 390 } 391 return b[:n], nil 392 } 393 } 394 func (m *GetResponse) XXX_Merge(src proto.Message) { 395 xxx_messageInfo_GetResponse.Merge(m, src) 396 } 397 func (m *GetResponse) XXX_Size() int { 398 return m.Size() 399 } 400 func (m *GetResponse) XXX_DiscardUnknown() { 401 xxx_messageInfo_GetResponse.DiscardUnknown(m) 402 } 403 404 var xxx_messageInfo_GetResponse proto.InternalMessageInfo 405 406 type ListTasksRequest struct { 407 Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` 408 XXX_NoUnkeyedLiteral struct{} `json:"-"` 409 XXX_unrecognized []byte `json:"-"` 410 XXX_sizecache int32 `json:"-"` 411 } 412 413 func (m *ListTasksRequest) Reset() { *m = ListTasksRequest{} } 414 func (*ListTasksRequest) ProtoMessage() {} 415 func (*ListTasksRequest) Descriptor() ([]byte, []int) { 416 return fileDescriptor_310e7127b8a26f14, []int{9} 417 } 418 func (m *ListTasksRequest) XXX_Unmarshal(b []byte) error { 419 return m.Unmarshal(b) 420 } 421 func (m *ListTasksRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 422 if deterministic { 423 return xxx_messageInfo_ListTasksRequest.Marshal(b, m, deterministic) 424 } else { 425 b = b[:cap(b)] 426 n, err := m.MarshalTo(b) 427 if err != nil { 428 return nil, err 429 } 430 return b[:n], nil 431 } 432 } 433 func (m *ListTasksRequest) XXX_Merge(src proto.Message) { 434 xxx_messageInfo_ListTasksRequest.Merge(m, src) 435 } 436 func (m *ListTasksRequest) XXX_Size() int { 437 return m.Size() 438 } 439 func (m *ListTasksRequest) XXX_DiscardUnknown() { 440 xxx_messageInfo_ListTasksRequest.DiscardUnknown(m) 441 } 442 443 var xxx_messageInfo_ListTasksRequest proto.InternalMessageInfo 444 445 type ListTasksResponse struct { 446 Tasks []*task.Process `protobuf:"bytes,1,rep,name=tasks,proto3" json:"tasks,omitempty"` 447 XXX_NoUnkeyedLiteral struct{} `json:"-"` 448 XXX_unrecognized []byte `json:"-"` 449 XXX_sizecache int32 `json:"-"` 450 } 451 452 func (m *ListTasksResponse) Reset() { *m = ListTasksResponse{} } 453 func (*ListTasksResponse) ProtoMessage() {} 454 func (*ListTasksResponse) Descriptor() ([]byte, []int) { 455 return fileDescriptor_310e7127b8a26f14, []int{10} 456 } 457 func (m *ListTasksResponse) XXX_Unmarshal(b []byte) error { 458 return m.Unmarshal(b) 459 } 460 func (m *ListTasksResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 461 if deterministic { 462 return xxx_messageInfo_ListTasksResponse.Marshal(b, m, deterministic) 463 } else { 464 b = b[:cap(b)] 465 n, err := m.MarshalTo(b) 466 if err != nil { 467 return nil, err 468 } 469 return b[:n], nil 470 } 471 } 472 func (m *ListTasksResponse) XXX_Merge(src proto.Message) { 473 xxx_messageInfo_ListTasksResponse.Merge(m, src) 474 } 475 func (m *ListTasksResponse) XXX_Size() int { 476 return m.Size() 477 } 478 func (m *ListTasksResponse) XXX_DiscardUnknown() { 479 xxx_messageInfo_ListTasksResponse.DiscardUnknown(m) 480 } 481 482 var xxx_messageInfo_ListTasksResponse proto.InternalMessageInfo 483 484 type KillRequest struct { 485 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 486 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 487 Signal uint32 `protobuf:"varint,3,opt,name=signal,proto3" json:"signal,omitempty"` 488 All bool `protobuf:"varint,4,opt,name=all,proto3" json:"all,omitempty"` 489 XXX_NoUnkeyedLiteral struct{} `json:"-"` 490 XXX_unrecognized []byte `json:"-"` 491 XXX_sizecache int32 `json:"-"` 492 } 493 494 func (m *KillRequest) Reset() { *m = KillRequest{} } 495 func (*KillRequest) ProtoMessage() {} 496 func (*KillRequest) Descriptor() ([]byte, []int) { 497 return fileDescriptor_310e7127b8a26f14, []int{11} 498 } 499 func (m *KillRequest) XXX_Unmarshal(b []byte) error { 500 return m.Unmarshal(b) 501 } 502 func (m *KillRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 503 if deterministic { 504 return xxx_messageInfo_KillRequest.Marshal(b, m, deterministic) 505 } else { 506 b = b[:cap(b)] 507 n, err := m.MarshalTo(b) 508 if err != nil { 509 return nil, err 510 } 511 return b[:n], nil 512 } 513 } 514 func (m *KillRequest) XXX_Merge(src proto.Message) { 515 xxx_messageInfo_KillRequest.Merge(m, src) 516 } 517 func (m *KillRequest) XXX_Size() int { 518 return m.Size() 519 } 520 func (m *KillRequest) XXX_DiscardUnknown() { 521 xxx_messageInfo_KillRequest.DiscardUnknown(m) 522 } 523 524 var xxx_messageInfo_KillRequest proto.InternalMessageInfo 525 526 type ExecProcessRequest struct { 527 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 528 Stdin string `protobuf:"bytes,2,opt,name=stdin,proto3" json:"stdin,omitempty"` 529 Stdout string `protobuf:"bytes,3,opt,name=stdout,proto3" json:"stdout,omitempty"` 530 Stderr string `protobuf:"bytes,4,opt,name=stderr,proto3" json:"stderr,omitempty"` 531 Terminal bool `protobuf:"varint,5,opt,name=terminal,proto3" json:"terminal,omitempty"` 532 // Spec for starting a process in the target container. 533 // 534 // For runc, this is a process spec, for example. 535 Spec *types1.Any `protobuf:"bytes,6,opt,name=spec,proto3" json:"spec,omitempty"` 536 // id of the exec process 537 ExecID string `protobuf:"bytes,7,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 538 XXX_NoUnkeyedLiteral struct{} `json:"-"` 539 XXX_unrecognized []byte `json:"-"` 540 XXX_sizecache int32 `json:"-"` 541 } 542 543 func (m *ExecProcessRequest) Reset() { *m = ExecProcessRequest{} } 544 func (*ExecProcessRequest) ProtoMessage() {} 545 func (*ExecProcessRequest) Descriptor() ([]byte, []int) { 546 return fileDescriptor_310e7127b8a26f14, []int{12} 547 } 548 func (m *ExecProcessRequest) XXX_Unmarshal(b []byte) error { 549 return m.Unmarshal(b) 550 } 551 func (m *ExecProcessRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 552 if deterministic { 553 return xxx_messageInfo_ExecProcessRequest.Marshal(b, m, deterministic) 554 } else { 555 b = b[:cap(b)] 556 n, err := m.MarshalTo(b) 557 if err != nil { 558 return nil, err 559 } 560 return b[:n], nil 561 } 562 } 563 func (m *ExecProcessRequest) XXX_Merge(src proto.Message) { 564 xxx_messageInfo_ExecProcessRequest.Merge(m, src) 565 } 566 func (m *ExecProcessRequest) XXX_Size() int { 567 return m.Size() 568 } 569 func (m *ExecProcessRequest) XXX_DiscardUnknown() { 570 xxx_messageInfo_ExecProcessRequest.DiscardUnknown(m) 571 } 572 573 var xxx_messageInfo_ExecProcessRequest proto.InternalMessageInfo 574 575 type ExecProcessResponse struct { 576 XXX_NoUnkeyedLiteral struct{} `json:"-"` 577 XXX_unrecognized []byte `json:"-"` 578 XXX_sizecache int32 `json:"-"` 579 } 580 581 func (m *ExecProcessResponse) Reset() { *m = ExecProcessResponse{} } 582 func (*ExecProcessResponse) ProtoMessage() {} 583 func (*ExecProcessResponse) Descriptor() ([]byte, []int) { 584 return fileDescriptor_310e7127b8a26f14, []int{13} 585 } 586 func (m *ExecProcessResponse) XXX_Unmarshal(b []byte) error { 587 return m.Unmarshal(b) 588 } 589 func (m *ExecProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 590 if deterministic { 591 return xxx_messageInfo_ExecProcessResponse.Marshal(b, m, deterministic) 592 } else { 593 b = b[:cap(b)] 594 n, err := m.MarshalTo(b) 595 if err != nil { 596 return nil, err 597 } 598 return b[:n], nil 599 } 600 } 601 func (m *ExecProcessResponse) XXX_Merge(src proto.Message) { 602 xxx_messageInfo_ExecProcessResponse.Merge(m, src) 603 } 604 func (m *ExecProcessResponse) XXX_Size() int { 605 return m.Size() 606 } 607 func (m *ExecProcessResponse) XXX_DiscardUnknown() { 608 xxx_messageInfo_ExecProcessResponse.DiscardUnknown(m) 609 } 610 611 var xxx_messageInfo_ExecProcessResponse proto.InternalMessageInfo 612 613 type ResizePtyRequest struct { 614 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 615 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 616 Width uint32 `protobuf:"varint,3,opt,name=width,proto3" json:"width,omitempty"` 617 Height uint32 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` 618 XXX_NoUnkeyedLiteral struct{} `json:"-"` 619 XXX_unrecognized []byte `json:"-"` 620 XXX_sizecache int32 `json:"-"` 621 } 622 623 func (m *ResizePtyRequest) Reset() { *m = ResizePtyRequest{} } 624 func (*ResizePtyRequest) ProtoMessage() {} 625 func (*ResizePtyRequest) Descriptor() ([]byte, []int) { 626 return fileDescriptor_310e7127b8a26f14, []int{14} 627 } 628 func (m *ResizePtyRequest) XXX_Unmarshal(b []byte) error { 629 return m.Unmarshal(b) 630 } 631 func (m *ResizePtyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 632 if deterministic { 633 return xxx_messageInfo_ResizePtyRequest.Marshal(b, m, deterministic) 634 } else { 635 b = b[:cap(b)] 636 n, err := m.MarshalTo(b) 637 if err != nil { 638 return nil, err 639 } 640 return b[:n], nil 641 } 642 } 643 func (m *ResizePtyRequest) XXX_Merge(src proto.Message) { 644 xxx_messageInfo_ResizePtyRequest.Merge(m, src) 645 } 646 func (m *ResizePtyRequest) XXX_Size() int { 647 return m.Size() 648 } 649 func (m *ResizePtyRequest) XXX_DiscardUnknown() { 650 xxx_messageInfo_ResizePtyRequest.DiscardUnknown(m) 651 } 652 653 var xxx_messageInfo_ResizePtyRequest proto.InternalMessageInfo 654 655 type CloseIORequest struct { 656 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 657 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 658 Stdin bool `protobuf:"varint,3,opt,name=stdin,proto3" json:"stdin,omitempty"` 659 XXX_NoUnkeyedLiteral struct{} `json:"-"` 660 XXX_unrecognized []byte `json:"-"` 661 XXX_sizecache int32 `json:"-"` 662 } 663 664 func (m *CloseIORequest) Reset() { *m = CloseIORequest{} } 665 func (*CloseIORequest) ProtoMessage() {} 666 func (*CloseIORequest) Descriptor() ([]byte, []int) { 667 return fileDescriptor_310e7127b8a26f14, []int{15} 668 } 669 func (m *CloseIORequest) XXX_Unmarshal(b []byte) error { 670 return m.Unmarshal(b) 671 } 672 func (m *CloseIORequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 673 if deterministic { 674 return xxx_messageInfo_CloseIORequest.Marshal(b, m, deterministic) 675 } else { 676 b = b[:cap(b)] 677 n, err := m.MarshalTo(b) 678 if err != nil { 679 return nil, err 680 } 681 return b[:n], nil 682 } 683 } 684 func (m *CloseIORequest) XXX_Merge(src proto.Message) { 685 xxx_messageInfo_CloseIORequest.Merge(m, src) 686 } 687 func (m *CloseIORequest) XXX_Size() int { 688 return m.Size() 689 } 690 func (m *CloseIORequest) XXX_DiscardUnknown() { 691 xxx_messageInfo_CloseIORequest.DiscardUnknown(m) 692 } 693 694 var xxx_messageInfo_CloseIORequest proto.InternalMessageInfo 695 696 type PauseTaskRequest struct { 697 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 698 XXX_NoUnkeyedLiteral struct{} `json:"-"` 699 XXX_unrecognized []byte `json:"-"` 700 XXX_sizecache int32 `json:"-"` 701 } 702 703 func (m *PauseTaskRequest) Reset() { *m = PauseTaskRequest{} } 704 func (*PauseTaskRequest) ProtoMessage() {} 705 func (*PauseTaskRequest) Descriptor() ([]byte, []int) { 706 return fileDescriptor_310e7127b8a26f14, []int{16} 707 } 708 func (m *PauseTaskRequest) XXX_Unmarshal(b []byte) error { 709 return m.Unmarshal(b) 710 } 711 func (m *PauseTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 712 if deterministic { 713 return xxx_messageInfo_PauseTaskRequest.Marshal(b, m, deterministic) 714 } else { 715 b = b[:cap(b)] 716 n, err := m.MarshalTo(b) 717 if err != nil { 718 return nil, err 719 } 720 return b[:n], nil 721 } 722 } 723 func (m *PauseTaskRequest) XXX_Merge(src proto.Message) { 724 xxx_messageInfo_PauseTaskRequest.Merge(m, src) 725 } 726 func (m *PauseTaskRequest) XXX_Size() int { 727 return m.Size() 728 } 729 func (m *PauseTaskRequest) XXX_DiscardUnknown() { 730 xxx_messageInfo_PauseTaskRequest.DiscardUnknown(m) 731 } 732 733 var xxx_messageInfo_PauseTaskRequest proto.InternalMessageInfo 734 735 type ResumeTaskRequest struct { 736 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 737 XXX_NoUnkeyedLiteral struct{} `json:"-"` 738 XXX_unrecognized []byte `json:"-"` 739 XXX_sizecache int32 `json:"-"` 740 } 741 742 func (m *ResumeTaskRequest) Reset() { *m = ResumeTaskRequest{} } 743 func (*ResumeTaskRequest) ProtoMessage() {} 744 func (*ResumeTaskRequest) Descriptor() ([]byte, []int) { 745 return fileDescriptor_310e7127b8a26f14, []int{17} 746 } 747 func (m *ResumeTaskRequest) XXX_Unmarshal(b []byte) error { 748 return m.Unmarshal(b) 749 } 750 func (m *ResumeTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 751 if deterministic { 752 return xxx_messageInfo_ResumeTaskRequest.Marshal(b, m, deterministic) 753 } else { 754 b = b[:cap(b)] 755 n, err := m.MarshalTo(b) 756 if err != nil { 757 return nil, err 758 } 759 return b[:n], nil 760 } 761 } 762 func (m *ResumeTaskRequest) XXX_Merge(src proto.Message) { 763 xxx_messageInfo_ResumeTaskRequest.Merge(m, src) 764 } 765 func (m *ResumeTaskRequest) XXX_Size() int { 766 return m.Size() 767 } 768 func (m *ResumeTaskRequest) XXX_DiscardUnknown() { 769 xxx_messageInfo_ResumeTaskRequest.DiscardUnknown(m) 770 } 771 772 var xxx_messageInfo_ResumeTaskRequest proto.InternalMessageInfo 773 774 type ListPidsRequest struct { 775 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 776 XXX_NoUnkeyedLiteral struct{} `json:"-"` 777 XXX_unrecognized []byte `json:"-"` 778 XXX_sizecache int32 `json:"-"` 779 } 780 781 func (m *ListPidsRequest) Reset() { *m = ListPidsRequest{} } 782 func (*ListPidsRequest) ProtoMessage() {} 783 func (*ListPidsRequest) Descriptor() ([]byte, []int) { 784 return fileDescriptor_310e7127b8a26f14, []int{18} 785 } 786 func (m *ListPidsRequest) XXX_Unmarshal(b []byte) error { 787 return m.Unmarshal(b) 788 } 789 func (m *ListPidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 790 if deterministic { 791 return xxx_messageInfo_ListPidsRequest.Marshal(b, m, deterministic) 792 } else { 793 b = b[:cap(b)] 794 n, err := m.MarshalTo(b) 795 if err != nil { 796 return nil, err 797 } 798 return b[:n], nil 799 } 800 } 801 func (m *ListPidsRequest) XXX_Merge(src proto.Message) { 802 xxx_messageInfo_ListPidsRequest.Merge(m, src) 803 } 804 func (m *ListPidsRequest) XXX_Size() int { 805 return m.Size() 806 } 807 func (m *ListPidsRequest) XXX_DiscardUnknown() { 808 xxx_messageInfo_ListPidsRequest.DiscardUnknown(m) 809 } 810 811 var xxx_messageInfo_ListPidsRequest proto.InternalMessageInfo 812 813 type ListPidsResponse struct { 814 // Processes includes the process ID and additional process information 815 Processes []*task.ProcessInfo `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"` 816 XXX_NoUnkeyedLiteral struct{} `json:"-"` 817 XXX_unrecognized []byte `json:"-"` 818 XXX_sizecache int32 `json:"-"` 819 } 820 821 func (m *ListPidsResponse) Reset() { *m = ListPidsResponse{} } 822 func (*ListPidsResponse) ProtoMessage() {} 823 func (*ListPidsResponse) Descriptor() ([]byte, []int) { 824 return fileDescriptor_310e7127b8a26f14, []int{19} 825 } 826 func (m *ListPidsResponse) XXX_Unmarshal(b []byte) error { 827 return m.Unmarshal(b) 828 } 829 func (m *ListPidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 830 if deterministic { 831 return xxx_messageInfo_ListPidsResponse.Marshal(b, m, deterministic) 832 } else { 833 b = b[:cap(b)] 834 n, err := m.MarshalTo(b) 835 if err != nil { 836 return nil, err 837 } 838 return b[:n], nil 839 } 840 } 841 func (m *ListPidsResponse) XXX_Merge(src proto.Message) { 842 xxx_messageInfo_ListPidsResponse.Merge(m, src) 843 } 844 func (m *ListPidsResponse) XXX_Size() int { 845 return m.Size() 846 } 847 func (m *ListPidsResponse) XXX_DiscardUnknown() { 848 xxx_messageInfo_ListPidsResponse.DiscardUnknown(m) 849 } 850 851 var xxx_messageInfo_ListPidsResponse proto.InternalMessageInfo 852 853 type CheckpointTaskRequest struct { 854 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 855 ParentCheckpoint github_com_opencontainers_go_digest.Digest `protobuf:"bytes,2,opt,name=parent_checkpoint,json=parentCheckpoint,proto3,customtype=github.com/opencontainers/go-digest.Digest" json:"parent_checkpoint"` 856 Options *types1.Any `protobuf:"bytes,3,opt,name=options,proto3" json:"options,omitempty"` 857 XXX_NoUnkeyedLiteral struct{} `json:"-"` 858 XXX_unrecognized []byte `json:"-"` 859 XXX_sizecache int32 `json:"-"` 860 } 861 862 func (m *CheckpointTaskRequest) Reset() { *m = CheckpointTaskRequest{} } 863 func (*CheckpointTaskRequest) ProtoMessage() {} 864 func (*CheckpointTaskRequest) Descriptor() ([]byte, []int) { 865 return fileDescriptor_310e7127b8a26f14, []int{20} 866 } 867 func (m *CheckpointTaskRequest) XXX_Unmarshal(b []byte) error { 868 return m.Unmarshal(b) 869 } 870 func (m *CheckpointTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 871 if deterministic { 872 return xxx_messageInfo_CheckpointTaskRequest.Marshal(b, m, deterministic) 873 } else { 874 b = b[:cap(b)] 875 n, err := m.MarshalTo(b) 876 if err != nil { 877 return nil, err 878 } 879 return b[:n], nil 880 } 881 } 882 func (m *CheckpointTaskRequest) XXX_Merge(src proto.Message) { 883 xxx_messageInfo_CheckpointTaskRequest.Merge(m, src) 884 } 885 func (m *CheckpointTaskRequest) XXX_Size() int { 886 return m.Size() 887 } 888 func (m *CheckpointTaskRequest) XXX_DiscardUnknown() { 889 xxx_messageInfo_CheckpointTaskRequest.DiscardUnknown(m) 890 } 891 892 var xxx_messageInfo_CheckpointTaskRequest proto.InternalMessageInfo 893 894 type CheckpointTaskResponse struct { 895 Descriptors []*types.Descriptor `protobuf:"bytes,1,rep,name=descriptors,proto3" json:"descriptors,omitempty"` 896 XXX_NoUnkeyedLiteral struct{} `json:"-"` 897 XXX_unrecognized []byte `json:"-"` 898 XXX_sizecache int32 `json:"-"` 899 } 900 901 func (m *CheckpointTaskResponse) Reset() { *m = CheckpointTaskResponse{} } 902 func (*CheckpointTaskResponse) ProtoMessage() {} 903 func (*CheckpointTaskResponse) Descriptor() ([]byte, []int) { 904 return fileDescriptor_310e7127b8a26f14, []int{21} 905 } 906 func (m *CheckpointTaskResponse) XXX_Unmarshal(b []byte) error { 907 return m.Unmarshal(b) 908 } 909 func (m *CheckpointTaskResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 910 if deterministic { 911 return xxx_messageInfo_CheckpointTaskResponse.Marshal(b, m, deterministic) 912 } else { 913 b = b[:cap(b)] 914 n, err := m.MarshalTo(b) 915 if err != nil { 916 return nil, err 917 } 918 return b[:n], nil 919 } 920 } 921 func (m *CheckpointTaskResponse) XXX_Merge(src proto.Message) { 922 xxx_messageInfo_CheckpointTaskResponse.Merge(m, src) 923 } 924 func (m *CheckpointTaskResponse) XXX_Size() int { 925 return m.Size() 926 } 927 func (m *CheckpointTaskResponse) XXX_DiscardUnknown() { 928 xxx_messageInfo_CheckpointTaskResponse.DiscardUnknown(m) 929 } 930 931 var xxx_messageInfo_CheckpointTaskResponse proto.InternalMessageInfo 932 933 type UpdateTaskRequest struct { 934 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 935 Resources *types1.Any `protobuf:"bytes,2,opt,name=resources,proto3" json:"resources,omitempty"` 936 XXX_NoUnkeyedLiteral struct{} `json:"-"` 937 XXX_unrecognized []byte `json:"-"` 938 XXX_sizecache int32 `json:"-"` 939 } 940 941 func (m *UpdateTaskRequest) Reset() { *m = UpdateTaskRequest{} } 942 func (*UpdateTaskRequest) ProtoMessage() {} 943 func (*UpdateTaskRequest) Descriptor() ([]byte, []int) { 944 return fileDescriptor_310e7127b8a26f14, []int{22} 945 } 946 func (m *UpdateTaskRequest) XXX_Unmarshal(b []byte) error { 947 return m.Unmarshal(b) 948 } 949 func (m *UpdateTaskRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 950 if deterministic { 951 return xxx_messageInfo_UpdateTaskRequest.Marshal(b, m, deterministic) 952 } else { 953 b = b[:cap(b)] 954 n, err := m.MarshalTo(b) 955 if err != nil { 956 return nil, err 957 } 958 return b[:n], nil 959 } 960 } 961 func (m *UpdateTaskRequest) XXX_Merge(src proto.Message) { 962 xxx_messageInfo_UpdateTaskRequest.Merge(m, src) 963 } 964 func (m *UpdateTaskRequest) XXX_Size() int { 965 return m.Size() 966 } 967 func (m *UpdateTaskRequest) XXX_DiscardUnknown() { 968 xxx_messageInfo_UpdateTaskRequest.DiscardUnknown(m) 969 } 970 971 var xxx_messageInfo_UpdateTaskRequest proto.InternalMessageInfo 972 973 type MetricsRequest struct { 974 Filters []string `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` 975 XXX_NoUnkeyedLiteral struct{} `json:"-"` 976 XXX_unrecognized []byte `json:"-"` 977 XXX_sizecache int32 `json:"-"` 978 } 979 980 func (m *MetricsRequest) Reset() { *m = MetricsRequest{} } 981 func (*MetricsRequest) ProtoMessage() {} 982 func (*MetricsRequest) Descriptor() ([]byte, []int) { 983 return fileDescriptor_310e7127b8a26f14, []int{23} 984 } 985 func (m *MetricsRequest) XXX_Unmarshal(b []byte) error { 986 return m.Unmarshal(b) 987 } 988 func (m *MetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 989 if deterministic { 990 return xxx_messageInfo_MetricsRequest.Marshal(b, m, deterministic) 991 } else { 992 b = b[:cap(b)] 993 n, err := m.MarshalTo(b) 994 if err != nil { 995 return nil, err 996 } 997 return b[:n], nil 998 } 999 } 1000 func (m *MetricsRequest) XXX_Merge(src proto.Message) { 1001 xxx_messageInfo_MetricsRequest.Merge(m, src) 1002 } 1003 func (m *MetricsRequest) XXX_Size() int { 1004 return m.Size() 1005 } 1006 func (m *MetricsRequest) XXX_DiscardUnknown() { 1007 xxx_messageInfo_MetricsRequest.DiscardUnknown(m) 1008 } 1009 1010 var xxx_messageInfo_MetricsRequest proto.InternalMessageInfo 1011 1012 type MetricsResponse struct { 1013 Metrics []*types.Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"` 1014 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1015 XXX_unrecognized []byte `json:"-"` 1016 XXX_sizecache int32 `json:"-"` 1017 } 1018 1019 func (m *MetricsResponse) Reset() { *m = MetricsResponse{} } 1020 func (*MetricsResponse) ProtoMessage() {} 1021 func (*MetricsResponse) Descriptor() ([]byte, []int) { 1022 return fileDescriptor_310e7127b8a26f14, []int{24} 1023 } 1024 func (m *MetricsResponse) XXX_Unmarshal(b []byte) error { 1025 return m.Unmarshal(b) 1026 } 1027 func (m *MetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1028 if deterministic { 1029 return xxx_messageInfo_MetricsResponse.Marshal(b, m, deterministic) 1030 } else { 1031 b = b[:cap(b)] 1032 n, err := m.MarshalTo(b) 1033 if err != nil { 1034 return nil, err 1035 } 1036 return b[:n], nil 1037 } 1038 } 1039 func (m *MetricsResponse) XXX_Merge(src proto.Message) { 1040 xxx_messageInfo_MetricsResponse.Merge(m, src) 1041 } 1042 func (m *MetricsResponse) XXX_Size() int { 1043 return m.Size() 1044 } 1045 func (m *MetricsResponse) XXX_DiscardUnknown() { 1046 xxx_messageInfo_MetricsResponse.DiscardUnknown(m) 1047 } 1048 1049 var xxx_messageInfo_MetricsResponse proto.InternalMessageInfo 1050 1051 type WaitRequest struct { 1052 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 1053 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 1054 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1055 XXX_unrecognized []byte `json:"-"` 1056 XXX_sizecache int32 `json:"-"` 1057 } 1058 1059 func (m *WaitRequest) Reset() { *m = WaitRequest{} } 1060 func (*WaitRequest) ProtoMessage() {} 1061 func (*WaitRequest) Descriptor() ([]byte, []int) { 1062 return fileDescriptor_310e7127b8a26f14, []int{25} 1063 } 1064 func (m *WaitRequest) XXX_Unmarshal(b []byte) error { 1065 return m.Unmarshal(b) 1066 } 1067 func (m *WaitRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1068 if deterministic { 1069 return xxx_messageInfo_WaitRequest.Marshal(b, m, deterministic) 1070 } else { 1071 b = b[:cap(b)] 1072 n, err := m.MarshalTo(b) 1073 if err != nil { 1074 return nil, err 1075 } 1076 return b[:n], nil 1077 } 1078 } 1079 func (m *WaitRequest) XXX_Merge(src proto.Message) { 1080 xxx_messageInfo_WaitRequest.Merge(m, src) 1081 } 1082 func (m *WaitRequest) XXX_Size() int { 1083 return m.Size() 1084 } 1085 func (m *WaitRequest) XXX_DiscardUnknown() { 1086 xxx_messageInfo_WaitRequest.DiscardUnknown(m) 1087 } 1088 1089 var xxx_messageInfo_WaitRequest proto.InternalMessageInfo 1090 1091 type WaitResponse struct { 1092 ExitStatus uint32 `protobuf:"varint,1,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 1093 ExitedAt time.Time `protobuf:"bytes,2,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 1094 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1095 XXX_unrecognized []byte `json:"-"` 1096 XXX_sizecache int32 `json:"-"` 1097 } 1098 1099 func (m *WaitResponse) Reset() { *m = WaitResponse{} } 1100 func (*WaitResponse) ProtoMessage() {} 1101 func (*WaitResponse) Descriptor() ([]byte, []int) { 1102 return fileDescriptor_310e7127b8a26f14, []int{26} 1103 } 1104 func (m *WaitResponse) XXX_Unmarshal(b []byte) error { 1105 return m.Unmarshal(b) 1106 } 1107 func (m *WaitResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1108 if deterministic { 1109 return xxx_messageInfo_WaitResponse.Marshal(b, m, deterministic) 1110 } else { 1111 b = b[:cap(b)] 1112 n, err := m.MarshalTo(b) 1113 if err != nil { 1114 return nil, err 1115 } 1116 return b[:n], nil 1117 } 1118 } 1119 func (m *WaitResponse) XXX_Merge(src proto.Message) { 1120 xxx_messageInfo_WaitResponse.Merge(m, src) 1121 } 1122 func (m *WaitResponse) XXX_Size() int { 1123 return m.Size() 1124 } 1125 func (m *WaitResponse) XXX_DiscardUnknown() { 1126 xxx_messageInfo_WaitResponse.DiscardUnknown(m) 1127 } 1128 1129 var xxx_messageInfo_WaitResponse proto.InternalMessageInfo 1130 1131 func init() { 1132 proto.RegisterType((*CreateTaskRequest)(nil), "containerd.services.tasks.v1.CreateTaskRequest") 1133 proto.RegisterType((*CreateTaskResponse)(nil), "containerd.services.tasks.v1.CreateTaskResponse") 1134 proto.RegisterType((*StartRequest)(nil), "containerd.services.tasks.v1.StartRequest") 1135 proto.RegisterType((*StartResponse)(nil), "containerd.services.tasks.v1.StartResponse") 1136 proto.RegisterType((*DeleteTaskRequest)(nil), "containerd.services.tasks.v1.DeleteTaskRequest") 1137 proto.RegisterType((*DeleteResponse)(nil), "containerd.services.tasks.v1.DeleteResponse") 1138 proto.RegisterType((*DeleteProcessRequest)(nil), "containerd.services.tasks.v1.DeleteProcessRequest") 1139 proto.RegisterType((*GetRequest)(nil), "containerd.services.tasks.v1.GetRequest") 1140 proto.RegisterType((*GetResponse)(nil), "containerd.services.tasks.v1.GetResponse") 1141 proto.RegisterType((*ListTasksRequest)(nil), "containerd.services.tasks.v1.ListTasksRequest") 1142 proto.RegisterType((*ListTasksResponse)(nil), "containerd.services.tasks.v1.ListTasksResponse") 1143 proto.RegisterType((*KillRequest)(nil), "containerd.services.tasks.v1.KillRequest") 1144 proto.RegisterType((*ExecProcessRequest)(nil), "containerd.services.tasks.v1.ExecProcessRequest") 1145 proto.RegisterType((*ExecProcessResponse)(nil), "containerd.services.tasks.v1.ExecProcessResponse") 1146 proto.RegisterType((*ResizePtyRequest)(nil), "containerd.services.tasks.v1.ResizePtyRequest") 1147 proto.RegisterType((*CloseIORequest)(nil), "containerd.services.tasks.v1.CloseIORequest") 1148 proto.RegisterType((*PauseTaskRequest)(nil), "containerd.services.tasks.v1.PauseTaskRequest") 1149 proto.RegisterType((*ResumeTaskRequest)(nil), "containerd.services.tasks.v1.ResumeTaskRequest") 1150 proto.RegisterType((*ListPidsRequest)(nil), "containerd.services.tasks.v1.ListPidsRequest") 1151 proto.RegisterType((*ListPidsResponse)(nil), "containerd.services.tasks.v1.ListPidsResponse") 1152 proto.RegisterType((*CheckpointTaskRequest)(nil), "containerd.services.tasks.v1.CheckpointTaskRequest") 1153 proto.RegisterType((*CheckpointTaskResponse)(nil), "containerd.services.tasks.v1.CheckpointTaskResponse") 1154 proto.RegisterType((*UpdateTaskRequest)(nil), "containerd.services.tasks.v1.UpdateTaskRequest") 1155 proto.RegisterType((*MetricsRequest)(nil), "containerd.services.tasks.v1.MetricsRequest") 1156 proto.RegisterType((*MetricsResponse)(nil), "containerd.services.tasks.v1.MetricsResponse") 1157 proto.RegisterType((*WaitRequest)(nil), "containerd.services.tasks.v1.WaitRequest") 1158 proto.RegisterType((*WaitResponse)(nil), "containerd.services.tasks.v1.WaitResponse") 1159 } 1160 1161 func init() { 1162 proto.RegisterFile("github.com/containerd/containerd/api/services/tasks/v1/tasks.proto", fileDescriptor_310e7127b8a26f14) 1163 } 1164 1165 var fileDescriptor_310e7127b8a26f14 = []byte{ 1166 // 1318 bytes of a gzipped FileDescriptorProto 1167 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x58, 0x4b, 0x6f, 0x1b, 0x45, 1168 0x1c, 0xef, 0xfa, 0xed, 0xbf, 0x93, 0x36, 0x59, 0xd2, 0x60, 0x96, 0x2a, 0x0e, 0xcb, 0xc5, 0x04, 1169 0xba, 0x4b, 0x5d, 0x54, 0x21, 0x5a, 0x21, 0x35, 0x0f, 0x22, 0x0b, 0xaa, 0xa6, 0xdb, 0x02, 0x55, 1170 0x25, 0x14, 0xb6, 0xbb, 0x13, 0x67, 0x14, 0x7b, 0x67, 0xbb, 0x33, 0x4e, 0x1b, 0x38, 0xc0, 0x47, 1171 0xe8, 0x95, 0x0b, 0x9f, 0x27, 0x47, 0x8e, 0x08, 0x55, 0x81, 0xfa, 0x5b, 0x70, 0x43, 0xf3, 0xd8, 1172 0xcd, 0xc6, 0x8e, 0xbd, 0x4e, 0xd3, 0x70, 0x69, 0x67, 0x66, 0xff, 0xaf, 0xf9, 0xcd, 0xff, 0xf1, 1173 0x73, 0x60, 0xb5, 0x83, 0xd9, 0x6e, 0xff, 0xa9, 0xe5, 0x91, 0x9e, 0xed, 0x91, 0x80, 0xb9, 0x38, 1174 0x40, 0x91, 0x9f, 0x5e, 0xba, 0x21, 0xb6, 0x29, 0x8a, 0xf6, 0xb1, 0x87, 0xa8, 0xcd, 0x5c, 0xba, 1175 0x47, 0xed, 0xfd, 0x1b, 0x72, 0x61, 0x85, 0x11, 0x61, 0x44, 0xbf, 0x76, 0x2c, 0x6d, 0xc5, 0x92, 1176 0x96, 0x14, 0xd8, 0xbf, 0x61, 0xbc, 0xdf, 0x21, 0xa4, 0xd3, 0x45, 0xb6, 0x90, 0x7d, 0xda, 0xdf, 1177 0xb1, 0x51, 0x2f, 0x64, 0x07, 0x52, 0xd5, 0x78, 0x6f, 0xf8, 0xa3, 0x1b, 0xc4, 0x9f, 0x16, 0x3a, 1178 0xa4, 0x43, 0xc4, 0xd2, 0xe6, 0x2b, 0x75, 0x7a, 0x6b, 0xaa, 0x78, 0xd9, 0x41, 0x88, 0xa8, 0xdd, 1179 0x23, 0xfd, 0x80, 0x29, 0xbd, 0xcf, 0xcf, 0xa2, 0x87, 0x58, 0x84, 0x3d, 0x75, 0x3b, 0xe3, 0xf6, 1180 0x19, 0x34, 0x7d, 0x44, 0xbd, 0x08, 0x87, 0x8c, 0x44, 0x4a, 0xf9, 0x8b, 0x33, 0x28, 0x73, 0xc4, 1181 0xc4, 0x3f, 0x4a, 0xb7, 0x31, 0x8c, 0x0d, 0xc3, 0x3d, 0x44, 0x99, 0xdb, 0x0b, 0xa5, 0x80, 0x79, 1182 0x98, 0x83, 0xf9, 0xb5, 0x08, 0xb9, 0x0c, 0x3d, 0x72, 0xe9, 0x9e, 0x83, 0x9e, 0xf5, 0x11, 0x65, 1183 0x7a, 0x0b, 0x66, 0x12, 0xf3, 0xdb, 0xd8, 0xaf, 0x6b, 0xcb, 0x5a, 0xb3, 0xba, 0x7a, 0x65, 0x70, 1184 0xd4, 0xa8, 0xad, 0xc5, 0xe7, 0xed, 0x75, 0xa7, 0x96, 0x08, 0xb5, 0x7d, 0xdd, 0x86, 0x52, 0x44, 1185 0x08, 0xdb, 0xa1, 0xf5, 0xfc, 0x72, 0xbe, 0x59, 0x6b, 0xbd, 0x6b, 0xa5, 0x9e, 0x54, 0x44, 0x67, 1186 0xdd, 0xe3, 0x60, 0x3a, 0x4a, 0x4c, 0x5f, 0x80, 0x22, 0x65, 0x3e, 0x0e, 0xea, 0x05, 0x6e, 0xdd, 1187 0x91, 0x1b, 0x7d, 0x11, 0x4a, 0x94, 0xf9, 0xa4, 0xcf, 0xea, 0x45, 0x71, 0xac, 0x76, 0xea, 0x1c, 1188 0x45, 0x51, 0xbd, 0x94, 0x9c, 0xa3, 0x28, 0xd2, 0x0d, 0xa8, 0x30, 0x14, 0xf5, 0x70, 0xe0, 0x76, 1189 0xeb, 0xe5, 0x65, 0xad, 0x59, 0x71, 0x92, 0xbd, 0x7e, 0x07, 0xc0, 0xdb, 0x45, 0xde, 0x5e, 0x48, 1190 0x70, 0xc0, 0xea, 0x95, 0x65, 0xad, 0x59, 0x6b, 0x5d, 0x1b, 0x0d, 0x6b, 0x3d, 0x41, 0xdc, 0x49, 1191 0xc9, 0xeb, 0x16, 0x94, 0x49, 0xc8, 0x30, 0x09, 0x68, 0xbd, 0x2a, 0x54, 0x17, 0x2c, 0x89, 0xa6, 1192 0x15, 0xa3, 0x69, 0xdd, 0x0d, 0x0e, 0x9c, 0x58, 0xc8, 0x7c, 0x02, 0x7a, 0x1a, 0x49, 0x1a, 0x92, 1193 0x80, 0xa2, 0x37, 0x82, 0x72, 0x0e, 0xf2, 0x21, 0xf6, 0xeb, 0xb9, 0x65, 0xad, 0x39, 0xeb, 0xf0, 1194 0xa5, 0xd9, 0x81, 0x99, 0x87, 0xcc, 0x8d, 0xd8, 0x79, 0x1e, 0xe8, 0x43, 0x28, 0xa3, 0x17, 0xc8, 1195 0xdb, 0x56, 0x96, 0xab, 0xab, 0x30, 0x38, 0x6a, 0x94, 0x36, 0x5e, 0x20, 0xaf, 0xbd, 0xee, 0x94, 1196 0xf8, 0xa7, 0xb6, 0x6f, 0x7e, 0x00, 0xb3, 0xca, 0x91, 0x8a, 0x5f, 0xc5, 0xa2, 0x1d, 0xc7, 0xb2, 1197 0x09, 0xf3, 0xeb, 0xa8, 0x8b, 0xce, 0x9d, 0x31, 0xe6, 0xef, 0x1a, 0x5c, 0x96, 0x96, 0x12, 0x6f, 1198 0x8b, 0x90, 0x4b, 0x94, 0x4b, 0x83, 0xa3, 0x46, 0xae, 0xbd, 0xee, 0xe4, 0xf0, 0x29, 0x88, 0xe8, 1199 0x0d, 0xa8, 0xa1, 0x17, 0x98, 0x6d, 0x53, 0xe6, 0xb2, 0x3e, 0xcf, 0x39, 0xfe, 0x05, 0xf8, 0xd1, 1200 0x43, 0x71, 0xa2, 0xdf, 0x85, 0x2a, 0xdf, 0x21, 0x7f, 0xdb, 0x65, 0x22, 0xc5, 0x6a, 0x2d, 0x63, 1201 0xe4, 0x01, 0x1f, 0xc5, 0xe5, 0xb0, 0x5a, 0x39, 0x3c, 0x6a, 0x5c, 0x7a, 0xf9, 0x77, 0x43, 0x73, 1202 0x2a, 0x52, 0xed, 0x2e, 0x33, 0x09, 0x2c, 0xc8, 0xf8, 0xb6, 0x22, 0xe2, 0x21, 0x4a, 0x2f, 0x1c, 1203 0x7d, 0x04, 0xb0, 0x89, 0x2e, 0xfe, 0x91, 0x37, 0xa0, 0x26, 0xdc, 0x28, 0xd0, 0x6f, 0x41, 0x39, 1204 0x94, 0x17, 0x14, 0x2e, 0x86, 0x6a, 0x64, 0xff, 0x86, 0x2a, 0x93, 0x18, 0x84, 0x58, 0xd8, 0x5c, 1205 0x81, 0xb9, 0x6f, 0x30, 0x65, 0x3c, 0x0d, 0x12, 0x68, 0x16, 0xa1, 0xb4, 0x83, 0xbb, 0x0c, 0x45, 1206 0x32, 0x5a, 0x47, 0xed, 0x78, 0xd2, 0xa4, 0x64, 0x93, 0xda, 0x28, 0x8a, 0x16, 0x5f, 0xd7, 0x44, 1207 0xc7, 0x98, 0xec, 0x56, 0x8a, 0x9a, 0x2f, 0x35, 0xa8, 0x7d, 0x8d, 0xbb, 0xdd, 0x8b, 0x06, 0x49, 1208 0x34, 0x1c, 0xdc, 0xe1, 0x6d, 0x45, 0xe6, 0x96, 0xda, 0xf1, 0x54, 0x74, 0xbb, 0x5d, 0x91, 0x51, 1209 0x15, 0x87, 0x2f, 0xcd, 0x7f, 0x35, 0xd0, 0xb9, 0xf2, 0x5b, 0xc8, 0x92, 0xa4, 0x27, 0xe6, 0x4e, 1210 0xef, 0x89, 0xf9, 0x31, 0x3d, 0xb1, 0x30, 0xb6, 0x27, 0x16, 0x87, 0x7a, 0x62, 0x13, 0x0a, 0x34, 1211 0x44, 0x9e, 0xe8, 0xa2, 0xe3, 0x5a, 0x9a, 0x90, 0x48, 0xa3, 0x54, 0x1e, 0x9b, 0x4a, 0x57, 0xe1, 1212 0x9d, 0x13, 0x57, 0x97, 0x2f, 0x6b, 0xfe, 0xa6, 0xc1, 0x9c, 0x83, 0x28, 0xfe, 0x09, 0x6d, 0xb1, 1213 0x83, 0x0b, 0x7f, 0xaa, 0x05, 0x28, 0x3e, 0xc7, 0x3e, 0xdb, 0x55, 0x2f, 0x25, 0x37, 0x1c, 0x9d, 1214 0x5d, 0x84, 0x3b, 0xbb, 0xb2, 0xfa, 0x67, 0x1d, 0xb5, 0x33, 0x7f, 0x81, 0xcb, 0x6b, 0x5d, 0x42, 1215 0x51, 0xfb, 0xfe, 0xff, 0x11, 0x98, 0x7c, 0xce, 0xbc, 0x78, 0x05, 0xb9, 0x31, 0xbf, 0x82, 0xb9, 1216 0x2d, 0xb7, 0x4f, 0xcf, 0xdd, 0x3f, 0x37, 0x61, 0xde, 0x41, 0xb4, 0xdf, 0x3b, 0xb7, 0xa1, 0x0d, 1217 0xb8, 0xc2, 0x8b, 0x73, 0x0b, 0xfb, 0xe7, 0x49, 0x5e, 0xd3, 0x91, 0xfd, 0x40, 0x9a, 0x51, 0x25, 1218 0xfe, 0x25, 0x54, 0x55, 0xbb, 0x40, 0x71, 0x99, 0x2f, 0x4f, 0x2a, 0xf3, 0x76, 0xb0, 0x43, 0x9c, 1219 0x63, 0x15, 0xf3, 0x95, 0x06, 0x57, 0xd7, 0x92, 0x99, 0x7c, 0x5e, 0x8e, 0xb2, 0x0d, 0xf3, 0xa1, 1220 0x1b, 0xa1, 0x80, 0x6d, 0xa7, 0x78, 0x81, 0x7c, 0xbe, 0x16, 0xef, 0xff, 0x7f, 0x1d, 0x35, 0x56, 1221 0x52, 0x6c, 0x8b, 0x84, 0x28, 0x48, 0xd4, 0xa9, 0xdd, 0x21, 0xd7, 0x7d, 0xdc, 0x41, 0x94, 0x59, 1222 0xeb, 0xe2, 0x3f, 0x67, 0x4e, 0x1a, 0x5b, 0x3b, 0x95, 0x33, 0xe4, 0xa7, 0xe1, 0x0c, 0x8f, 0x61, 1223 0x71, 0xf8, 0x76, 0x09, 0x70, 0xb5, 0x63, 0x26, 0x78, 0x6a, 0x87, 0x1c, 0x21, 0x2f, 0x69, 0x05, 1224 0xf3, 0x67, 0x98, 0xff, 0x36, 0xf4, 0xdf, 0x02, 0xaf, 0x6b, 0x41, 0x35, 0x42, 0x94, 0xf4, 0x23, 1225 0x0f, 0x51, 0x81, 0xd5, 0xb8, 0x4b, 0x1d, 0x8b, 0x99, 0x2b, 0x70, 0xf9, 0x9e, 0x24, 0xc0, 0xb1, 1226 0xe7, 0x3a, 0x94, 0xe5, 0x24, 0x90, 0x57, 0xa9, 0x3a, 0xf1, 0x96, 0x27, 0x5f, 0x22, 0x9b, 0xcc, 1227 0x85, 0xb2, 0xe2, 0xcf, 0xea, 0xde, 0xf5, 0x53, 0xb8, 0xa4, 0x10, 0x70, 0x62, 0x41, 0x73, 0x07, 1228 0x6a, 0xdf, 0xbb, 0xf8, 0xe2, 0x67, 0x67, 0x04, 0x33, 0xd2, 0x8f, 0x8a, 0x75, 0x88, 0x87, 0x68, 1229 0x93, 0x79, 0x48, 0xee, 0x4d, 0x78, 0x48, 0xeb, 0xd5, 0x0c, 0x14, 0xc5, 0xe4, 0xd4, 0xf7, 0xa0, 1230 0x24, 0x39, 0xa6, 0x6e, 0x5b, 0x93, 0x7e, 0x31, 0x59, 0x23, 0x9c, 0xde, 0xf8, 0x74, 0x7a, 0x05, 1231 0x75, 0xb5, 0x1f, 0xa1, 0x28, 0xb8, 0xa0, 0xbe, 0x32, 0x59, 0x35, 0xcd, 0x4c, 0x8d, 0x8f, 0xa7, 1232 0x92, 0x55, 0x1e, 0x3a, 0x50, 0x92, 0x04, 0x2b, 0xeb, 0x3a, 0x23, 0x84, 0xd3, 0xf8, 0x64, 0x1a, 1233 0x85, 0xc4, 0xd1, 0x33, 0x98, 0x3d, 0xc1, 0xe4, 0xf4, 0xd6, 0x34, 0xea, 0x27, 0x07, 0xfa, 0x19, 1234 0x5d, 0x3e, 0x81, 0xfc, 0x26, 0x62, 0x7a, 0x73, 0xb2, 0xd2, 0x31, 0xdd, 0x33, 0x3e, 0x9a, 0x42, 1235 0x32, 0xc1, 0xad, 0xc0, 0x3b, 0xad, 0x6e, 0x4d, 0x56, 0x19, 0x66, 0x67, 0x86, 0x3d, 0xb5, 0xbc, 1236 0x72, 0xd4, 0x86, 0x02, 0x27, 0x5b, 0x7a, 0x46, 0x6c, 0x29, 0x42, 0x66, 0x2c, 0x8e, 0x24, 0xf7, 1237 0x06, 0xff, 0xb1, 0xae, 0x6f, 0x41, 0x81, 0x97, 0x92, 0x9e, 0x91, 0x87, 0xa3, 0x44, 0x6a, 0xac, 1238 0xc5, 0x87, 0x50, 0x4d, 0x38, 0x46, 0x16, 0x14, 0xc3, 0x64, 0x64, 0xac, 0xd1, 0xfb, 0x50, 0x56, 1239 0xec, 0x40, 0xcf, 0x78, 0xef, 0x93, 0x24, 0x62, 0x82, 0xc1, 0xa2, 0x98, 0xf6, 0x59, 0x11, 0x0e, 1240 0x53, 0x82, 0xb1, 0x06, 0x1f, 0x40, 0x49, 0x8e, 0xfd, 0xac, 0xa2, 0x19, 0x21, 0x07, 0x63, 0x4d, 1241 0x62, 0xa8, 0xc4, 0x93, 0x5b, 0xbf, 0x9e, 0x9d, 0x23, 0x29, 0xa2, 0x60, 0x58, 0xd3, 0x8a, 0xab, 1242 0x8c, 0x7a, 0x0e, 0x90, 0x9a, 0x97, 0x37, 0x33, 0x20, 0x3e, 0x6d, 0xf2, 0x1b, 0x9f, 0x9d, 0x4d, 1243 0x49, 0x39, 0x7e, 0x00, 0x25, 0x39, 0x10, 0xb3, 0x60, 0x1b, 0x19, 0x9b, 0x63, 0x61, 0xdb, 0x81, 1244 0xb2, 0x1a, 0x5d, 0x59, 0xb9, 0x72, 0x72, 0x1a, 0x1a, 0xd7, 0xa7, 0x94, 0x56, 0xa1, 0xff, 0x00, 1245 0x05, 0x3e, 0x73, 0xb2, 0xaa, 0x30, 0x35, 0xff, 0x8c, 0x95, 0x69, 0x44, 0xa5, 0xf9, 0xd5, 0xef, 1246 0x0e, 0x5f, 0x2f, 0x5d, 0xfa, 0xf3, 0xf5, 0xd2, 0xa5, 0x5f, 0x07, 0x4b, 0xda, 0xe1, 0x60, 0x49, 1247 0xfb, 0x63, 0xb0, 0xa4, 0xfd, 0x33, 0x58, 0xd2, 0x9e, 0xdc, 0x79, 0xb3, 0xbf, 0xec, 0xdd, 0x16, 1248 0x8b, 0xc7, 0xb9, 0xa7, 0x25, 0x01, 0xd8, 0xcd, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff, 0x85, 0xa2, 1249 0x4f, 0xd1, 0x22, 0x14, 0x00, 0x00, 1250 } 1251 1252 // Reference imports to suppress errors if they are not otherwise used. 1253 var _ context.Context 1254 var _ grpc.ClientConn 1255 1256 // This is a compile-time assertion to ensure that this generated file 1257 // is compatible with the grpc package it is being compiled against. 1258 const _ = grpc.SupportPackageIsVersion4 1259 1260 // TasksClient is the client API for Tasks service. 1261 // 1262 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1263 type TasksClient interface { 1264 // Create a task. 1265 Create(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*CreateTaskResponse, error) 1266 // Start a process. 1267 Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) 1268 // Delete a task and on disk state. 1269 Delete(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*DeleteResponse, error) 1270 DeleteProcess(ctx context.Context, in *DeleteProcessRequest, opts ...grpc.CallOption) (*DeleteResponse, error) 1271 Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) 1272 List(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error) 1273 // Kill a task or process. 1274 Kill(ctx context.Context, in *KillRequest, opts ...grpc.CallOption) (*types1.Empty, error) 1275 Exec(ctx context.Context, in *ExecProcessRequest, opts ...grpc.CallOption) (*types1.Empty, error) 1276 ResizePty(ctx context.Context, in *ResizePtyRequest, opts ...grpc.CallOption) (*types1.Empty, error) 1277 CloseIO(ctx context.Context, in *CloseIORequest, opts ...grpc.CallOption) (*types1.Empty, error) 1278 Pause(ctx context.Context, in *PauseTaskRequest, opts ...grpc.CallOption) (*types1.Empty, error) 1279 Resume(ctx context.Context, in *ResumeTaskRequest, opts ...grpc.CallOption) (*types1.Empty, error) 1280 ListPids(ctx context.Context, in *ListPidsRequest, opts ...grpc.CallOption) (*ListPidsResponse, error) 1281 Checkpoint(ctx context.Context, in *CheckpointTaskRequest, opts ...grpc.CallOption) (*CheckpointTaskResponse, error) 1282 Update(ctx context.Context, in *UpdateTaskRequest, opts ...grpc.CallOption) (*types1.Empty, error) 1283 Metrics(ctx context.Context, in *MetricsRequest, opts ...grpc.CallOption) (*MetricsResponse, error) 1284 Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*WaitResponse, error) 1285 } 1286 1287 type tasksClient struct { 1288 cc *grpc.ClientConn 1289 } 1290 1291 func NewTasksClient(cc *grpc.ClientConn) TasksClient { 1292 return &tasksClient{cc} 1293 } 1294 1295 func (c *tasksClient) Create(ctx context.Context, in *CreateTaskRequest, opts ...grpc.CallOption) (*CreateTaskResponse, error) { 1296 out := new(CreateTaskResponse) 1297 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Create", in, out, opts...) 1298 if err != nil { 1299 return nil, err 1300 } 1301 return out, nil 1302 } 1303 1304 func (c *tasksClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) { 1305 out := new(StartResponse) 1306 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Start", in, out, opts...) 1307 if err != nil { 1308 return nil, err 1309 } 1310 return out, nil 1311 } 1312 1313 func (c *tasksClient) Delete(ctx context.Context, in *DeleteTaskRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { 1314 out := new(DeleteResponse) 1315 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Delete", in, out, opts...) 1316 if err != nil { 1317 return nil, err 1318 } 1319 return out, nil 1320 } 1321 1322 func (c *tasksClient) DeleteProcess(ctx context.Context, in *DeleteProcessRequest, opts ...grpc.CallOption) (*DeleteResponse, error) { 1323 out := new(DeleteResponse) 1324 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/DeleteProcess", in, out, opts...) 1325 if err != nil { 1326 return nil, err 1327 } 1328 return out, nil 1329 } 1330 1331 func (c *tasksClient) Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error) { 1332 out := new(GetResponse) 1333 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Get", in, out, opts...) 1334 if err != nil { 1335 return nil, err 1336 } 1337 return out, nil 1338 } 1339 1340 func (c *tasksClient) List(ctx context.Context, in *ListTasksRequest, opts ...grpc.CallOption) (*ListTasksResponse, error) { 1341 out := new(ListTasksResponse) 1342 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/List", in, out, opts...) 1343 if err != nil { 1344 return nil, err 1345 } 1346 return out, nil 1347 } 1348 1349 func (c *tasksClient) Kill(ctx context.Context, in *KillRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 1350 out := new(types1.Empty) 1351 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Kill", in, out, opts...) 1352 if err != nil { 1353 return nil, err 1354 } 1355 return out, nil 1356 } 1357 1358 func (c *tasksClient) Exec(ctx context.Context, in *ExecProcessRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 1359 out := new(types1.Empty) 1360 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Exec", in, out, opts...) 1361 if err != nil { 1362 return nil, err 1363 } 1364 return out, nil 1365 } 1366 1367 func (c *tasksClient) ResizePty(ctx context.Context, in *ResizePtyRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 1368 out := new(types1.Empty) 1369 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/ResizePty", in, out, opts...) 1370 if err != nil { 1371 return nil, err 1372 } 1373 return out, nil 1374 } 1375 1376 func (c *tasksClient) CloseIO(ctx context.Context, in *CloseIORequest, opts ...grpc.CallOption) (*types1.Empty, error) { 1377 out := new(types1.Empty) 1378 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/CloseIO", in, out, opts...) 1379 if err != nil { 1380 return nil, err 1381 } 1382 return out, nil 1383 } 1384 1385 func (c *tasksClient) Pause(ctx context.Context, in *PauseTaskRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 1386 out := new(types1.Empty) 1387 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Pause", in, out, opts...) 1388 if err != nil { 1389 return nil, err 1390 } 1391 return out, nil 1392 } 1393 1394 func (c *tasksClient) Resume(ctx context.Context, in *ResumeTaskRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 1395 out := new(types1.Empty) 1396 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Resume", in, out, opts...) 1397 if err != nil { 1398 return nil, err 1399 } 1400 return out, nil 1401 } 1402 1403 func (c *tasksClient) ListPids(ctx context.Context, in *ListPidsRequest, opts ...grpc.CallOption) (*ListPidsResponse, error) { 1404 out := new(ListPidsResponse) 1405 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/ListPids", in, out, opts...) 1406 if err != nil { 1407 return nil, err 1408 } 1409 return out, nil 1410 } 1411 1412 func (c *tasksClient) Checkpoint(ctx context.Context, in *CheckpointTaskRequest, opts ...grpc.CallOption) (*CheckpointTaskResponse, error) { 1413 out := new(CheckpointTaskResponse) 1414 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Checkpoint", in, out, opts...) 1415 if err != nil { 1416 return nil, err 1417 } 1418 return out, nil 1419 } 1420 1421 func (c *tasksClient) Update(ctx context.Context, in *UpdateTaskRequest, opts ...grpc.CallOption) (*types1.Empty, error) { 1422 out := new(types1.Empty) 1423 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Update", in, out, opts...) 1424 if err != nil { 1425 return nil, err 1426 } 1427 return out, nil 1428 } 1429 1430 func (c *tasksClient) Metrics(ctx context.Context, in *MetricsRequest, opts ...grpc.CallOption) (*MetricsResponse, error) { 1431 out := new(MetricsResponse) 1432 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Metrics", in, out, opts...) 1433 if err != nil { 1434 return nil, err 1435 } 1436 return out, nil 1437 } 1438 1439 func (c *tasksClient) Wait(ctx context.Context, in *WaitRequest, opts ...grpc.CallOption) (*WaitResponse, error) { 1440 out := new(WaitResponse) 1441 err := c.cc.Invoke(ctx, "/containerd.services.tasks.v1.Tasks/Wait", in, out, opts...) 1442 if err != nil { 1443 return nil, err 1444 } 1445 return out, nil 1446 } 1447 1448 // TasksServer is the server API for Tasks service. 1449 type TasksServer interface { 1450 // Create a task. 1451 Create(context.Context, *CreateTaskRequest) (*CreateTaskResponse, error) 1452 // Start a process. 1453 Start(context.Context, *StartRequest) (*StartResponse, error) 1454 // Delete a task and on disk state. 1455 Delete(context.Context, *DeleteTaskRequest) (*DeleteResponse, error) 1456 DeleteProcess(context.Context, *DeleteProcessRequest) (*DeleteResponse, error) 1457 Get(context.Context, *GetRequest) (*GetResponse, error) 1458 List(context.Context, *ListTasksRequest) (*ListTasksResponse, error) 1459 // Kill a task or process. 1460 Kill(context.Context, *KillRequest) (*types1.Empty, error) 1461 Exec(context.Context, *ExecProcessRequest) (*types1.Empty, error) 1462 ResizePty(context.Context, *ResizePtyRequest) (*types1.Empty, error) 1463 CloseIO(context.Context, *CloseIORequest) (*types1.Empty, error) 1464 Pause(context.Context, *PauseTaskRequest) (*types1.Empty, error) 1465 Resume(context.Context, *ResumeTaskRequest) (*types1.Empty, error) 1466 ListPids(context.Context, *ListPidsRequest) (*ListPidsResponse, error) 1467 Checkpoint(context.Context, *CheckpointTaskRequest) (*CheckpointTaskResponse, error) 1468 Update(context.Context, *UpdateTaskRequest) (*types1.Empty, error) 1469 Metrics(context.Context, *MetricsRequest) (*MetricsResponse, error) 1470 Wait(context.Context, *WaitRequest) (*WaitResponse, error) 1471 } 1472 1473 func RegisterTasksServer(s *grpc.Server, srv TasksServer) { 1474 s.RegisterService(&_Tasks_serviceDesc, srv) 1475 } 1476 1477 func _Tasks_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1478 in := new(CreateTaskRequest) 1479 if err := dec(in); err != nil { 1480 return nil, err 1481 } 1482 if interceptor == nil { 1483 return srv.(TasksServer).Create(ctx, in) 1484 } 1485 info := &grpc.UnaryServerInfo{ 1486 Server: srv, 1487 FullMethod: "/containerd.services.tasks.v1.Tasks/Create", 1488 } 1489 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1490 return srv.(TasksServer).Create(ctx, req.(*CreateTaskRequest)) 1491 } 1492 return interceptor(ctx, in, info, handler) 1493 } 1494 1495 func _Tasks_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1496 in := new(StartRequest) 1497 if err := dec(in); err != nil { 1498 return nil, err 1499 } 1500 if interceptor == nil { 1501 return srv.(TasksServer).Start(ctx, in) 1502 } 1503 info := &grpc.UnaryServerInfo{ 1504 Server: srv, 1505 FullMethod: "/containerd.services.tasks.v1.Tasks/Start", 1506 } 1507 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1508 return srv.(TasksServer).Start(ctx, req.(*StartRequest)) 1509 } 1510 return interceptor(ctx, in, info, handler) 1511 } 1512 1513 func _Tasks_Delete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1514 in := new(DeleteTaskRequest) 1515 if err := dec(in); err != nil { 1516 return nil, err 1517 } 1518 if interceptor == nil { 1519 return srv.(TasksServer).Delete(ctx, in) 1520 } 1521 info := &grpc.UnaryServerInfo{ 1522 Server: srv, 1523 FullMethod: "/containerd.services.tasks.v1.Tasks/Delete", 1524 } 1525 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1526 return srv.(TasksServer).Delete(ctx, req.(*DeleteTaskRequest)) 1527 } 1528 return interceptor(ctx, in, info, handler) 1529 } 1530 1531 func _Tasks_DeleteProcess_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1532 in := new(DeleteProcessRequest) 1533 if err := dec(in); err != nil { 1534 return nil, err 1535 } 1536 if interceptor == nil { 1537 return srv.(TasksServer).DeleteProcess(ctx, in) 1538 } 1539 info := &grpc.UnaryServerInfo{ 1540 Server: srv, 1541 FullMethod: "/containerd.services.tasks.v1.Tasks/DeleteProcess", 1542 } 1543 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1544 return srv.(TasksServer).DeleteProcess(ctx, req.(*DeleteProcessRequest)) 1545 } 1546 return interceptor(ctx, in, info, handler) 1547 } 1548 1549 func _Tasks_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1550 in := new(GetRequest) 1551 if err := dec(in); err != nil { 1552 return nil, err 1553 } 1554 if interceptor == nil { 1555 return srv.(TasksServer).Get(ctx, in) 1556 } 1557 info := &grpc.UnaryServerInfo{ 1558 Server: srv, 1559 FullMethod: "/containerd.services.tasks.v1.Tasks/Get", 1560 } 1561 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1562 return srv.(TasksServer).Get(ctx, req.(*GetRequest)) 1563 } 1564 return interceptor(ctx, in, info, handler) 1565 } 1566 1567 func _Tasks_List_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1568 in := new(ListTasksRequest) 1569 if err := dec(in); err != nil { 1570 return nil, err 1571 } 1572 if interceptor == nil { 1573 return srv.(TasksServer).List(ctx, in) 1574 } 1575 info := &grpc.UnaryServerInfo{ 1576 Server: srv, 1577 FullMethod: "/containerd.services.tasks.v1.Tasks/List", 1578 } 1579 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1580 return srv.(TasksServer).List(ctx, req.(*ListTasksRequest)) 1581 } 1582 return interceptor(ctx, in, info, handler) 1583 } 1584 1585 func _Tasks_Kill_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1586 in := new(KillRequest) 1587 if err := dec(in); err != nil { 1588 return nil, err 1589 } 1590 if interceptor == nil { 1591 return srv.(TasksServer).Kill(ctx, in) 1592 } 1593 info := &grpc.UnaryServerInfo{ 1594 Server: srv, 1595 FullMethod: "/containerd.services.tasks.v1.Tasks/Kill", 1596 } 1597 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1598 return srv.(TasksServer).Kill(ctx, req.(*KillRequest)) 1599 } 1600 return interceptor(ctx, in, info, handler) 1601 } 1602 1603 func _Tasks_Exec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1604 in := new(ExecProcessRequest) 1605 if err := dec(in); err != nil { 1606 return nil, err 1607 } 1608 if interceptor == nil { 1609 return srv.(TasksServer).Exec(ctx, in) 1610 } 1611 info := &grpc.UnaryServerInfo{ 1612 Server: srv, 1613 FullMethod: "/containerd.services.tasks.v1.Tasks/Exec", 1614 } 1615 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1616 return srv.(TasksServer).Exec(ctx, req.(*ExecProcessRequest)) 1617 } 1618 return interceptor(ctx, in, info, handler) 1619 } 1620 1621 func _Tasks_ResizePty_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1622 in := new(ResizePtyRequest) 1623 if err := dec(in); err != nil { 1624 return nil, err 1625 } 1626 if interceptor == nil { 1627 return srv.(TasksServer).ResizePty(ctx, in) 1628 } 1629 info := &grpc.UnaryServerInfo{ 1630 Server: srv, 1631 FullMethod: "/containerd.services.tasks.v1.Tasks/ResizePty", 1632 } 1633 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1634 return srv.(TasksServer).ResizePty(ctx, req.(*ResizePtyRequest)) 1635 } 1636 return interceptor(ctx, in, info, handler) 1637 } 1638 1639 func _Tasks_CloseIO_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1640 in := new(CloseIORequest) 1641 if err := dec(in); err != nil { 1642 return nil, err 1643 } 1644 if interceptor == nil { 1645 return srv.(TasksServer).CloseIO(ctx, in) 1646 } 1647 info := &grpc.UnaryServerInfo{ 1648 Server: srv, 1649 FullMethod: "/containerd.services.tasks.v1.Tasks/CloseIO", 1650 } 1651 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1652 return srv.(TasksServer).CloseIO(ctx, req.(*CloseIORequest)) 1653 } 1654 return interceptor(ctx, in, info, handler) 1655 } 1656 1657 func _Tasks_Pause_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1658 in := new(PauseTaskRequest) 1659 if err := dec(in); err != nil { 1660 return nil, err 1661 } 1662 if interceptor == nil { 1663 return srv.(TasksServer).Pause(ctx, in) 1664 } 1665 info := &grpc.UnaryServerInfo{ 1666 Server: srv, 1667 FullMethod: "/containerd.services.tasks.v1.Tasks/Pause", 1668 } 1669 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1670 return srv.(TasksServer).Pause(ctx, req.(*PauseTaskRequest)) 1671 } 1672 return interceptor(ctx, in, info, handler) 1673 } 1674 1675 func _Tasks_Resume_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1676 in := new(ResumeTaskRequest) 1677 if err := dec(in); err != nil { 1678 return nil, err 1679 } 1680 if interceptor == nil { 1681 return srv.(TasksServer).Resume(ctx, in) 1682 } 1683 info := &grpc.UnaryServerInfo{ 1684 Server: srv, 1685 FullMethod: "/containerd.services.tasks.v1.Tasks/Resume", 1686 } 1687 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1688 return srv.(TasksServer).Resume(ctx, req.(*ResumeTaskRequest)) 1689 } 1690 return interceptor(ctx, in, info, handler) 1691 } 1692 1693 func _Tasks_ListPids_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1694 in := new(ListPidsRequest) 1695 if err := dec(in); err != nil { 1696 return nil, err 1697 } 1698 if interceptor == nil { 1699 return srv.(TasksServer).ListPids(ctx, in) 1700 } 1701 info := &grpc.UnaryServerInfo{ 1702 Server: srv, 1703 FullMethod: "/containerd.services.tasks.v1.Tasks/ListPids", 1704 } 1705 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1706 return srv.(TasksServer).ListPids(ctx, req.(*ListPidsRequest)) 1707 } 1708 return interceptor(ctx, in, info, handler) 1709 } 1710 1711 func _Tasks_Checkpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1712 in := new(CheckpointTaskRequest) 1713 if err := dec(in); err != nil { 1714 return nil, err 1715 } 1716 if interceptor == nil { 1717 return srv.(TasksServer).Checkpoint(ctx, in) 1718 } 1719 info := &grpc.UnaryServerInfo{ 1720 Server: srv, 1721 FullMethod: "/containerd.services.tasks.v1.Tasks/Checkpoint", 1722 } 1723 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1724 return srv.(TasksServer).Checkpoint(ctx, req.(*CheckpointTaskRequest)) 1725 } 1726 return interceptor(ctx, in, info, handler) 1727 } 1728 1729 func _Tasks_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1730 in := new(UpdateTaskRequest) 1731 if err := dec(in); err != nil { 1732 return nil, err 1733 } 1734 if interceptor == nil { 1735 return srv.(TasksServer).Update(ctx, in) 1736 } 1737 info := &grpc.UnaryServerInfo{ 1738 Server: srv, 1739 FullMethod: "/containerd.services.tasks.v1.Tasks/Update", 1740 } 1741 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1742 return srv.(TasksServer).Update(ctx, req.(*UpdateTaskRequest)) 1743 } 1744 return interceptor(ctx, in, info, handler) 1745 } 1746 1747 func _Tasks_Metrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1748 in := new(MetricsRequest) 1749 if err := dec(in); err != nil { 1750 return nil, err 1751 } 1752 if interceptor == nil { 1753 return srv.(TasksServer).Metrics(ctx, in) 1754 } 1755 info := &grpc.UnaryServerInfo{ 1756 Server: srv, 1757 FullMethod: "/containerd.services.tasks.v1.Tasks/Metrics", 1758 } 1759 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1760 return srv.(TasksServer).Metrics(ctx, req.(*MetricsRequest)) 1761 } 1762 return interceptor(ctx, in, info, handler) 1763 } 1764 1765 func _Tasks_Wait_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1766 in := new(WaitRequest) 1767 if err := dec(in); err != nil { 1768 return nil, err 1769 } 1770 if interceptor == nil { 1771 return srv.(TasksServer).Wait(ctx, in) 1772 } 1773 info := &grpc.UnaryServerInfo{ 1774 Server: srv, 1775 FullMethod: "/containerd.services.tasks.v1.Tasks/Wait", 1776 } 1777 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1778 return srv.(TasksServer).Wait(ctx, req.(*WaitRequest)) 1779 } 1780 return interceptor(ctx, in, info, handler) 1781 } 1782 1783 var _Tasks_serviceDesc = grpc.ServiceDesc{ 1784 ServiceName: "containerd.services.tasks.v1.Tasks", 1785 HandlerType: (*TasksServer)(nil), 1786 Methods: []grpc.MethodDesc{ 1787 { 1788 MethodName: "Create", 1789 Handler: _Tasks_Create_Handler, 1790 }, 1791 { 1792 MethodName: "Start", 1793 Handler: _Tasks_Start_Handler, 1794 }, 1795 { 1796 MethodName: "Delete", 1797 Handler: _Tasks_Delete_Handler, 1798 }, 1799 { 1800 MethodName: "DeleteProcess", 1801 Handler: _Tasks_DeleteProcess_Handler, 1802 }, 1803 { 1804 MethodName: "Get", 1805 Handler: _Tasks_Get_Handler, 1806 }, 1807 { 1808 MethodName: "List", 1809 Handler: _Tasks_List_Handler, 1810 }, 1811 { 1812 MethodName: "Kill", 1813 Handler: _Tasks_Kill_Handler, 1814 }, 1815 { 1816 MethodName: "Exec", 1817 Handler: _Tasks_Exec_Handler, 1818 }, 1819 { 1820 MethodName: "ResizePty", 1821 Handler: _Tasks_ResizePty_Handler, 1822 }, 1823 { 1824 MethodName: "CloseIO", 1825 Handler: _Tasks_CloseIO_Handler, 1826 }, 1827 { 1828 MethodName: "Pause", 1829 Handler: _Tasks_Pause_Handler, 1830 }, 1831 { 1832 MethodName: "Resume", 1833 Handler: _Tasks_Resume_Handler, 1834 }, 1835 { 1836 MethodName: "ListPids", 1837 Handler: _Tasks_ListPids_Handler, 1838 }, 1839 { 1840 MethodName: "Checkpoint", 1841 Handler: _Tasks_Checkpoint_Handler, 1842 }, 1843 { 1844 MethodName: "Update", 1845 Handler: _Tasks_Update_Handler, 1846 }, 1847 { 1848 MethodName: "Metrics", 1849 Handler: _Tasks_Metrics_Handler, 1850 }, 1851 { 1852 MethodName: "Wait", 1853 Handler: _Tasks_Wait_Handler, 1854 }, 1855 }, 1856 Streams: []grpc.StreamDesc{}, 1857 Metadata: "github.com/containerd/containerd/api/services/tasks/v1/tasks.proto", 1858 } 1859 1860 func (m *CreateTaskRequest) Marshal() (dAtA []byte, err error) { 1861 size := m.Size() 1862 dAtA = make([]byte, size) 1863 n, err := m.MarshalTo(dAtA) 1864 if err != nil { 1865 return nil, err 1866 } 1867 return dAtA[:n], nil 1868 } 1869 1870 func (m *CreateTaskRequest) MarshalTo(dAtA []byte) (int, error) { 1871 var i int 1872 _ = i 1873 var l int 1874 _ = l 1875 if len(m.ContainerID) > 0 { 1876 dAtA[i] = 0xa 1877 i++ 1878 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 1879 i += copy(dAtA[i:], m.ContainerID) 1880 } 1881 if len(m.Rootfs) > 0 { 1882 for _, msg := range m.Rootfs { 1883 dAtA[i] = 0x1a 1884 i++ 1885 i = encodeVarintTasks(dAtA, i, uint64(msg.Size())) 1886 n, err := msg.MarshalTo(dAtA[i:]) 1887 if err != nil { 1888 return 0, err 1889 } 1890 i += n 1891 } 1892 } 1893 if len(m.Stdin) > 0 { 1894 dAtA[i] = 0x22 1895 i++ 1896 i = encodeVarintTasks(dAtA, i, uint64(len(m.Stdin))) 1897 i += copy(dAtA[i:], m.Stdin) 1898 } 1899 if len(m.Stdout) > 0 { 1900 dAtA[i] = 0x2a 1901 i++ 1902 i = encodeVarintTasks(dAtA, i, uint64(len(m.Stdout))) 1903 i += copy(dAtA[i:], m.Stdout) 1904 } 1905 if len(m.Stderr) > 0 { 1906 dAtA[i] = 0x32 1907 i++ 1908 i = encodeVarintTasks(dAtA, i, uint64(len(m.Stderr))) 1909 i += copy(dAtA[i:], m.Stderr) 1910 } 1911 if m.Terminal { 1912 dAtA[i] = 0x38 1913 i++ 1914 if m.Terminal { 1915 dAtA[i] = 1 1916 } else { 1917 dAtA[i] = 0 1918 } 1919 i++ 1920 } 1921 if m.Checkpoint != nil { 1922 dAtA[i] = 0x42 1923 i++ 1924 i = encodeVarintTasks(dAtA, i, uint64(m.Checkpoint.Size())) 1925 n1, err := m.Checkpoint.MarshalTo(dAtA[i:]) 1926 if err != nil { 1927 return 0, err 1928 } 1929 i += n1 1930 } 1931 if m.Options != nil { 1932 dAtA[i] = 0x4a 1933 i++ 1934 i = encodeVarintTasks(dAtA, i, uint64(m.Options.Size())) 1935 n2, err := m.Options.MarshalTo(dAtA[i:]) 1936 if err != nil { 1937 return 0, err 1938 } 1939 i += n2 1940 } 1941 if m.XXX_unrecognized != nil { 1942 i += copy(dAtA[i:], m.XXX_unrecognized) 1943 } 1944 return i, nil 1945 } 1946 1947 func (m *CreateTaskResponse) Marshal() (dAtA []byte, err error) { 1948 size := m.Size() 1949 dAtA = make([]byte, size) 1950 n, err := m.MarshalTo(dAtA) 1951 if err != nil { 1952 return nil, err 1953 } 1954 return dAtA[:n], nil 1955 } 1956 1957 func (m *CreateTaskResponse) MarshalTo(dAtA []byte) (int, error) { 1958 var i int 1959 _ = i 1960 var l int 1961 _ = l 1962 if len(m.ContainerID) > 0 { 1963 dAtA[i] = 0xa 1964 i++ 1965 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 1966 i += copy(dAtA[i:], m.ContainerID) 1967 } 1968 if m.Pid != 0 { 1969 dAtA[i] = 0x10 1970 i++ 1971 i = encodeVarintTasks(dAtA, i, uint64(m.Pid)) 1972 } 1973 if m.XXX_unrecognized != nil { 1974 i += copy(dAtA[i:], m.XXX_unrecognized) 1975 } 1976 return i, nil 1977 } 1978 1979 func (m *StartRequest) Marshal() (dAtA []byte, err error) { 1980 size := m.Size() 1981 dAtA = make([]byte, size) 1982 n, err := m.MarshalTo(dAtA) 1983 if err != nil { 1984 return nil, err 1985 } 1986 return dAtA[:n], nil 1987 } 1988 1989 func (m *StartRequest) MarshalTo(dAtA []byte) (int, error) { 1990 var i int 1991 _ = i 1992 var l int 1993 _ = l 1994 if len(m.ContainerID) > 0 { 1995 dAtA[i] = 0xa 1996 i++ 1997 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 1998 i += copy(dAtA[i:], m.ContainerID) 1999 } 2000 if len(m.ExecID) > 0 { 2001 dAtA[i] = 0x12 2002 i++ 2003 i = encodeVarintTasks(dAtA, i, uint64(len(m.ExecID))) 2004 i += copy(dAtA[i:], m.ExecID) 2005 } 2006 if m.XXX_unrecognized != nil { 2007 i += copy(dAtA[i:], m.XXX_unrecognized) 2008 } 2009 return i, nil 2010 } 2011 2012 func (m *StartResponse) Marshal() (dAtA []byte, err error) { 2013 size := m.Size() 2014 dAtA = make([]byte, size) 2015 n, err := m.MarshalTo(dAtA) 2016 if err != nil { 2017 return nil, err 2018 } 2019 return dAtA[:n], nil 2020 } 2021 2022 func (m *StartResponse) MarshalTo(dAtA []byte) (int, error) { 2023 var i int 2024 _ = i 2025 var l int 2026 _ = l 2027 if m.Pid != 0 { 2028 dAtA[i] = 0x8 2029 i++ 2030 i = encodeVarintTasks(dAtA, i, uint64(m.Pid)) 2031 } 2032 if m.XXX_unrecognized != nil { 2033 i += copy(dAtA[i:], m.XXX_unrecognized) 2034 } 2035 return i, nil 2036 } 2037 2038 func (m *DeleteTaskRequest) Marshal() (dAtA []byte, err error) { 2039 size := m.Size() 2040 dAtA = make([]byte, size) 2041 n, err := m.MarshalTo(dAtA) 2042 if err != nil { 2043 return nil, err 2044 } 2045 return dAtA[:n], nil 2046 } 2047 2048 func (m *DeleteTaskRequest) MarshalTo(dAtA []byte) (int, error) { 2049 var i int 2050 _ = i 2051 var l int 2052 _ = l 2053 if len(m.ContainerID) > 0 { 2054 dAtA[i] = 0xa 2055 i++ 2056 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2057 i += copy(dAtA[i:], m.ContainerID) 2058 } 2059 if m.XXX_unrecognized != nil { 2060 i += copy(dAtA[i:], m.XXX_unrecognized) 2061 } 2062 return i, nil 2063 } 2064 2065 func (m *DeleteResponse) Marshal() (dAtA []byte, err error) { 2066 size := m.Size() 2067 dAtA = make([]byte, size) 2068 n, err := m.MarshalTo(dAtA) 2069 if err != nil { 2070 return nil, err 2071 } 2072 return dAtA[:n], nil 2073 } 2074 2075 func (m *DeleteResponse) MarshalTo(dAtA []byte) (int, error) { 2076 var i int 2077 _ = i 2078 var l int 2079 _ = l 2080 if len(m.ID) > 0 { 2081 dAtA[i] = 0xa 2082 i++ 2083 i = encodeVarintTasks(dAtA, i, uint64(len(m.ID))) 2084 i += copy(dAtA[i:], m.ID) 2085 } 2086 if m.Pid != 0 { 2087 dAtA[i] = 0x10 2088 i++ 2089 i = encodeVarintTasks(dAtA, i, uint64(m.Pid)) 2090 } 2091 if m.ExitStatus != 0 { 2092 dAtA[i] = 0x18 2093 i++ 2094 i = encodeVarintTasks(dAtA, i, uint64(m.ExitStatus)) 2095 } 2096 dAtA[i] = 0x22 2097 i++ 2098 i = encodeVarintTasks(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt))) 2099 n3, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i:]) 2100 if err != nil { 2101 return 0, err 2102 } 2103 i += n3 2104 if m.XXX_unrecognized != nil { 2105 i += copy(dAtA[i:], m.XXX_unrecognized) 2106 } 2107 return i, nil 2108 } 2109 2110 func (m *DeleteProcessRequest) Marshal() (dAtA []byte, err error) { 2111 size := m.Size() 2112 dAtA = make([]byte, size) 2113 n, err := m.MarshalTo(dAtA) 2114 if err != nil { 2115 return nil, err 2116 } 2117 return dAtA[:n], nil 2118 } 2119 2120 func (m *DeleteProcessRequest) MarshalTo(dAtA []byte) (int, error) { 2121 var i int 2122 _ = i 2123 var l int 2124 _ = l 2125 if len(m.ContainerID) > 0 { 2126 dAtA[i] = 0xa 2127 i++ 2128 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2129 i += copy(dAtA[i:], m.ContainerID) 2130 } 2131 if len(m.ExecID) > 0 { 2132 dAtA[i] = 0x12 2133 i++ 2134 i = encodeVarintTasks(dAtA, i, uint64(len(m.ExecID))) 2135 i += copy(dAtA[i:], m.ExecID) 2136 } 2137 if m.XXX_unrecognized != nil { 2138 i += copy(dAtA[i:], m.XXX_unrecognized) 2139 } 2140 return i, nil 2141 } 2142 2143 func (m *GetRequest) Marshal() (dAtA []byte, err error) { 2144 size := m.Size() 2145 dAtA = make([]byte, size) 2146 n, err := m.MarshalTo(dAtA) 2147 if err != nil { 2148 return nil, err 2149 } 2150 return dAtA[:n], nil 2151 } 2152 2153 func (m *GetRequest) MarshalTo(dAtA []byte) (int, error) { 2154 var i int 2155 _ = i 2156 var l int 2157 _ = l 2158 if len(m.ContainerID) > 0 { 2159 dAtA[i] = 0xa 2160 i++ 2161 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2162 i += copy(dAtA[i:], m.ContainerID) 2163 } 2164 if len(m.ExecID) > 0 { 2165 dAtA[i] = 0x12 2166 i++ 2167 i = encodeVarintTasks(dAtA, i, uint64(len(m.ExecID))) 2168 i += copy(dAtA[i:], m.ExecID) 2169 } 2170 if m.XXX_unrecognized != nil { 2171 i += copy(dAtA[i:], m.XXX_unrecognized) 2172 } 2173 return i, nil 2174 } 2175 2176 func (m *GetResponse) Marshal() (dAtA []byte, err error) { 2177 size := m.Size() 2178 dAtA = make([]byte, size) 2179 n, err := m.MarshalTo(dAtA) 2180 if err != nil { 2181 return nil, err 2182 } 2183 return dAtA[:n], nil 2184 } 2185 2186 func (m *GetResponse) MarshalTo(dAtA []byte) (int, error) { 2187 var i int 2188 _ = i 2189 var l int 2190 _ = l 2191 if m.Process != nil { 2192 dAtA[i] = 0xa 2193 i++ 2194 i = encodeVarintTasks(dAtA, i, uint64(m.Process.Size())) 2195 n4, err := m.Process.MarshalTo(dAtA[i:]) 2196 if err != nil { 2197 return 0, err 2198 } 2199 i += n4 2200 } 2201 if m.XXX_unrecognized != nil { 2202 i += copy(dAtA[i:], m.XXX_unrecognized) 2203 } 2204 return i, nil 2205 } 2206 2207 func (m *ListTasksRequest) Marshal() (dAtA []byte, err error) { 2208 size := m.Size() 2209 dAtA = make([]byte, size) 2210 n, err := m.MarshalTo(dAtA) 2211 if err != nil { 2212 return nil, err 2213 } 2214 return dAtA[:n], nil 2215 } 2216 2217 func (m *ListTasksRequest) MarshalTo(dAtA []byte) (int, error) { 2218 var i int 2219 _ = i 2220 var l int 2221 _ = l 2222 if len(m.Filter) > 0 { 2223 dAtA[i] = 0xa 2224 i++ 2225 i = encodeVarintTasks(dAtA, i, uint64(len(m.Filter))) 2226 i += copy(dAtA[i:], m.Filter) 2227 } 2228 if m.XXX_unrecognized != nil { 2229 i += copy(dAtA[i:], m.XXX_unrecognized) 2230 } 2231 return i, nil 2232 } 2233 2234 func (m *ListTasksResponse) Marshal() (dAtA []byte, err error) { 2235 size := m.Size() 2236 dAtA = make([]byte, size) 2237 n, err := m.MarshalTo(dAtA) 2238 if err != nil { 2239 return nil, err 2240 } 2241 return dAtA[:n], nil 2242 } 2243 2244 func (m *ListTasksResponse) MarshalTo(dAtA []byte) (int, error) { 2245 var i int 2246 _ = i 2247 var l int 2248 _ = l 2249 if len(m.Tasks) > 0 { 2250 for _, msg := range m.Tasks { 2251 dAtA[i] = 0xa 2252 i++ 2253 i = encodeVarintTasks(dAtA, i, uint64(msg.Size())) 2254 n, err := msg.MarshalTo(dAtA[i:]) 2255 if err != nil { 2256 return 0, err 2257 } 2258 i += n 2259 } 2260 } 2261 if m.XXX_unrecognized != nil { 2262 i += copy(dAtA[i:], m.XXX_unrecognized) 2263 } 2264 return i, nil 2265 } 2266 2267 func (m *KillRequest) Marshal() (dAtA []byte, err error) { 2268 size := m.Size() 2269 dAtA = make([]byte, size) 2270 n, err := m.MarshalTo(dAtA) 2271 if err != nil { 2272 return nil, err 2273 } 2274 return dAtA[:n], nil 2275 } 2276 2277 func (m *KillRequest) MarshalTo(dAtA []byte) (int, error) { 2278 var i int 2279 _ = i 2280 var l int 2281 _ = l 2282 if len(m.ContainerID) > 0 { 2283 dAtA[i] = 0xa 2284 i++ 2285 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2286 i += copy(dAtA[i:], m.ContainerID) 2287 } 2288 if len(m.ExecID) > 0 { 2289 dAtA[i] = 0x12 2290 i++ 2291 i = encodeVarintTasks(dAtA, i, uint64(len(m.ExecID))) 2292 i += copy(dAtA[i:], m.ExecID) 2293 } 2294 if m.Signal != 0 { 2295 dAtA[i] = 0x18 2296 i++ 2297 i = encodeVarintTasks(dAtA, i, uint64(m.Signal)) 2298 } 2299 if m.All { 2300 dAtA[i] = 0x20 2301 i++ 2302 if m.All { 2303 dAtA[i] = 1 2304 } else { 2305 dAtA[i] = 0 2306 } 2307 i++ 2308 } 2309 if m.XXX_unrecognized != nil { 2310 i += copy(dAtA[i:], m.XXX_unrecognized) 2311 } 2312 return i, nil 2313 } 2314 2315 func (m *ExecProcessRequest) Marshal() (dAtA []byte, err error) { 2316 size := m.Size() 2317 dAtA = make([]byte, size) 2318 n, err := m.MarshalTo(dAtA) 2319 if err != nil { 2320 return nil, err 2321 } 2322 return dAtA[:n], nil 2323 } 2324 2325 func (m *ExecProcessRequest) MarshalTo(dAtA []byte) (int, error) { 2326 var i int 2327 _ = i 2328 var l int 2329 _ = l 2330 if len(m.ContainerID) > 0 { 2331 dAtA[i] = 0xa 2332 i++ 2333 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2334 i += copy(dAtA[i:], m.ContainerID) 2335 } 2336 if len(m.Stdin) > 0 { 2337 dAtA[i] = 0x12 2338 i++ 2339 i = encodeVarintTasks(dAtA, i, uint64(len(m.Stdin))) 2340 i += copy(dAtA[i:], m.Stdin) 2341 } 2342 if len(m.Stdout) > 0 { 2343 dAtA[i] = 0x1a 2344 i++ 2345 i = encodeVarintTasks(dAtA, i, uint64(len(m.Stdout))) 2346 i += copy(dAtA[i:], m.Stdout) 2347 } 2348 if len(m.Stderr) > 0 { 2349 dAtA[i] = 0x22 2350 i++ 2351 i = encodeVarintTasks(dAtA, i, uint64(len(m.Stderr))) 2352 i += copy(dAtA[i:], m.Stderr) 2353 } 2354 if m.Terminal { 2355 dAtA[i] = 0x28 2356 i++ 2357 if m.Terminal { 2358 dAtA[i] = 1 2359 } else { 2360 dAtA[i] = 0 2361 } 2362 i++ 2363 } 2364 if m.Spec != nil { 2365 dAtA[i] = 0x32 2366 i++ 2367 i = encodeVarintTasks(dAtA, i, uint64(m.Spec.Size())) 2368 n5, err := m.Spec.MarshalTo(dAtA[i:]) 2369 if err != nil { 2370 return 0, err 2371 } 2372 i += n5 2373 } 2374 if len(m.ExecID) > 0 { 2375 dAtA[i] = 0x3a 2376 i++ 2377 i = encodeVarintTasks(dAtA, i, uint64(len(m.ExecID))) 2378 i += copy(dAtA[i:], m.ExecID) 2379 } 2380 if m.XXX_unrecognized != nil { 2381 i += copy(dAtA[i:], m.XXX_unrecognized) 2382 } 2383 return i, nil 2384 } 2385 2386 func (m *ExecProcessResponse) Marshal() (dAtA []byte, err error) { 2387 size := m.Size() 2388 dAtA = make([]byte, size) 2389 n, err := m.MarshalTo(dAtA) 2390 if err != nil { 2391 return nil, err 2392 } 2393 return dAtA[:n], nil 2394 } 2395 2396 func (m *ExecProcessResponse) MarshalTo(dAtA []byte) (int, error) { 2397 var i int 2398 _ = i 2399 var l int 2400 _ = l 2401 if m.XXX_unrecognized != nil { 2402 i += copy(dAtA[i:], m.XXX_unrecognized) 2403 } 2404 return i, nil 2405 } 2406 2407 func (m *ResizePtyRequest) Marshal() (dAtA []byte, err error) { 2408 size := m.Size() 2409 dAtA = make([]byte, size) 2410 n, err := m.MarshalTo(dAtA) 2411 if err != nil { 2412 return nil, err 2413 } 2414 return dAtA[:n], nil 2415 } 2416 2417 func (m *ResizePtyRequest) MarshalTo(dAtA []byte) (int, error) { 2418 var i int 2419 _ = i 2420 var l int 2421 _ = l 2422 if len(m.ContainerID) > 0 { 2423 dAtA[i] = 0xa 2424 i++ 2425 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2426 i += copy(dAtA[i:], m.ContainerID) 2427 } 2428 if len(m.ExecID) > 0 { 2429 dAtA[i] = 0x12 2430 i++ 2431 i = encodeVarintTasks(dAtA, i, uint64(len(m.ExecID))) 2432 i += copy(dAtA[i:], m.ExecID) 2433 } 2434 if m.Width != 0 { 2435 dAtA[i] = 0x18 2436 i++ 2437 i = encodeVarintTasks(dAtA, i, uint64(m.Width)) 2438 } 2439 if m.Height != 0 { 2440 dAtA[i] = 0x20 2441 i++ 2442 i = encodeVarintTasks(dAtA, i, uint64(m.Height)) 2443 } 2444 if m.XXX_unrecognized != nil { 2445 i += copy(dAtA[i:], m.XXX_unrecognized) 2446 } 2447 return i, nil 2448 } 2449 2450 func (m *CloseIORequest) Marshal() (dAtA []byte, err error) { 2451 size := m.Size() 2452 dAtA = make([]byte, size) 2453 n, err := m.MarshalTo(dAtA) 2454 if err != nil { 2455 return nil, err 2456 } 2457 return dAtA[:n], nil 2458 } 2459 2460 func (m *CloseIORequest) MarshalTo(dAtA []byte) (int, error) { 2461 var i int 2462 _ = i 2463 var l int 2464 _ = l 2465 if len(m.ContainerID) > 0 { 2466 dAtA[i] = 0xa 2467 i++ 2468 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2469 i += copy(dAtA[i:], m.ContainerID) 2470 } 2471 if len(m.ExecID) > 0 { 2472 dAtA[i] = 0x12 2473 i++ 2474 i = encodeVarintTasks(dAtA, i, uint64(len(m.ExecID))) 2475 i += copy(dAtA[i:], m.ExecID) 2476 } 2477 if m.Stdin { 2478 dAtA[i] = 0x18 2479 i++ 2480 if m.Stdin { 2481 dAtA[i] = 1 2482 } else { 2483 dAtA[i] = 0 2484 } 2485 i++ 2486 } 2487 if m.XXX_unrecognized != nil { 2488 i += copy(dAtA[i:], m.XXX_unrecognized) 2489 } 2490 return i, nil 2491 } 2492 2493 func (m *PauseTaskRequest) Marshal() (dAtA []byte, err error) { 2494 size := m.Size() 2495 dAtA = make([]byte, size) 2496 n, err := m.MarshalTo(dAtA) 2497 if err != nil { 2498 return nil, err 2499 } 2500 return dAtA[:n], nil 2501 } 2502 2503 func (m *PauseTaskRequest) MarshalTo(dAtA []byte) (int, error) { 2504 var i int 2505 _ = i 2506 var l int 2507 _ = l 2508 if len(m.ContainerID) > 0 { 2509 dAtA[i] = 0xa 2510 i++ 2511 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2512 i += copy(dAtA[i:], m.ContainerID) 2513 } 2514 if m.XXX_unrecognized != nil { 2515 i += copy(dAtA[i:], m.XXX_unrecognized) 2516 } 2517 return i, nil 2518 } 2519 2520 func (m *ResumeTaskRequest) Marshal() (dAtA []byte, err error) { 2521 size := m.Size() 2522 dAtA = make([]byte, size) 2523 n, err := m.MarshalTo(dAtA) 2524 if err != nil { 2525 return nil, err 2526 } 2527 return dAtA[:n], nil 2528 } 2529 2530 func (m *ResumeTaskRequest) MarshalTo(dAtA []byte) (int, error) { 2531 var i int 2532 _ = i 2533 var l int 2534 _ = l 2535 if len(m.ContainerID) > 0 { 2536 dAtA[i] = 0xa 2537 i++ 2538 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2539 i += copy(dAtA[i:], m.ContainerID) 2540 } 2541 if m.XXX_unrecognized != nil { 2542 i += copy(dAtA[i:], m.XXX_unrecognized) 2543 } 2544 return i, nil 2545 } 2546 2547 func (m *ListPidsRequest) Marshal() (dAtA []byte, err error) { 2548 size := m.Size() 2549 dAtA = make([]byte, size) 2550 n, err := m.MarshalTo(dAtA) 2551 if err != nil { 2552 return nil, err 2553 } 2554 return dAtA[:n], nil 2555 } 2556 2557 func (m *ListPidsRequest) MarshalTo(dAtA []byte) (int, error) { 2558 var i int 2559 _ = i 2560 var l int 2561 _ = l 2562 if len(m.ContainerID) > 0 { 2563 dAtA[i] = 0xa 2564 i++ 2565 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2566 i += copy(dAtA[i:], m.ContainerID) 2567 } 2568 if m.XXX_unrecognized != nil { 2569 i += copy(dAtA[i:], m.XXX_unrecognized) 2570 } 2571 return i, nil 2572 } 2573 2574 func (m *ListPidsResponse) Marshal() (dAtA []byte, err error) { 2575 size := m.Size() 2576 dAtA = make([]byte, size) 2577 n, err := m.MarshalTo(dAtA) 2578 if err != nil { 2579 return nil, err 2580 } 2581 return dAtA[:n], nil 2582 } 2583 2584 func (m *ListPidsResponse) MarshalTo(dAtA []byte) (int, error) { 2585 var i int 2586 _ = i 2587 var l int 2588 _ = l 2589 if len(m.Processes) > 0 { 2590 for _, msg := range m.Processes { 2591 dAtA[i] = 0xa 2592 i++ 2593 i = encodeVarintTasks(dAtA, i, uint64(msg.Size())) 2594 n, err := msg.MarshalTo(dAtA[i:]) 2595 if err != nil { 2596 return 0, err 2597 } 2598 i += n 2599 } 2600 } 2601 if m.XXX_unrecognized != nil { 2602 i += copy(dAtA[i:], m.XXX_unrecognized) 2603 } 2604 return i, nil 2605 } 2606 2607 func (m *CheckpointTaskRequest) Marshal() (dAtA []byte, err error) { 2608 size := m.Size() 2609 dAtA = make([]byte, size) 2610 n, err := m.MarshalTo(dAtA) 2611 if err != nil { 2612 return nil, err 2613 } 2614 return dAtA[:n], nil 2615 } 2616 2617 func (m *CheckpointTaskRequest) MarshalTo(dAtA []byte) (int, error) { 2618 var i int 2619 _ = i 2620 var l int 2621 _ = l 2622 if len(m.ContainerID) > 0 { 2623 dAtA[i] = 0xa 2624 i++ 2625 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2626 i += copy(dAtA[i:], m.ContainerID) 2627 } 2628 if len(m.ParentCheckpoint) > 0 { 2629 dAtA[i] = 0x12 2630 i++ 2631 i = encodeVarintTasks(dAtA, i, uint64(len(m.ParentCheckpoint))) 2632 i += copy(dAtA[i:], m.ParentCheckpoint) 2633 } 2634 if m.Options != nil { 2635 dAtA[i] = 0x1a 2636 i++ 2637 i = encodeVarintTasks(dAtA, i, uint64(m.Options.Size())) 2638 n6, err := m.Options.MarshalTo(dAtA[i:]) 2639 if err != nil { 2640 return 0, err 2641 } 2642 i += n6 2643 } 2644 if m.XXX_unrecognized != nil { 2645 i += copy(dAtA[i:], m.XXX_unrecognized) 2646 } 2647 return i, nil 2648 } 2649 2650 func (m *CheckpointTaskResponse) Marshal() (dAtA []byte, err error) { 2651 size := m.Size() 2652 dAtA = make([]byte, size) 2653 n, err := m.MarshalTo(dAtA) 2654 if err != nil { 2655 return nil, err 2656 } 2657 return dAtA[:n], nil 2658 } 2659 2660 func (m *CheckpointTaskResponse) MarshalTo(dAtA []byte) (int, error) { 2661 var i int 2662 _ = i 2663 var l int 2664 _ = l 2665 if len(m.Descriptors) > 0 { 2666 for _, msg := range m.Descriptors { 2667 dAtA[i] = 0xa 2668 i++ 2669 i = encodeVarintTasks(dAtA, i, uint64(msg.Size())) 2670 n, err := msg.MarshalTo(dAtA[i:]) 2671 if err != nil { 2672 return 0, err 2673 } 2674 i += n 2675 } 2676 } 2677 if m.XXX_unrecognized != nil { 2678 i += copy(dAtA[i:], m.XXX_unrecognized) 2679 } 2680 return i, nil 2681 } 2682 2683 func (m *UpdateTaskRequest) Marshal() (dAtA []byte, err error) { 2684 size := m.Size() 2685 dAtA = make([]byte, size) 2686 n, err := m.MarshalTo(dAtA) 2687 if err != nil { 2688 return nil, err 2689 } 2690 return dAtA[:n], nil 2691 } 2692 2693 func (m *UpdateTaskRequest) MarshalTo(dAtA []byte) (int, error) { 2694 var i int 2695 _ = i 2696 var l int 2697 _ = l 2698 if len(m.ContainerID) > 0 { 2699 dAtA[i] = 0xa 2700 i++ 2701 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2702 i += copy(dAtA[i:], m.ContainerID) 2703 } 2704 if m.Resources != nil { 2705 dAtA[i] = 0x12 2706 i++ 2707 i = encodeVarintTasks(dAtA, i, uint64(m.Resources.Size())) 2708 n7, err := m.Resources.MarshalTo(dAtA[i:]) 2709 if err != nil { 2710 return 0, err 2711 } 2712 i += n7 2713 } 2714 if m.XXX_unrecognized != nil { 2715 i += copy(dAtA[i:], m.XXX_unrecognized) 2716 } 2717 return i, nil 2718 } 2719 2720 func (m *MetricsRequest) Marshal() (dAtA []byte, err error) { 2721 size := m.Size() 2722 dAtA = make([]byte, size) 2723 n, err := m.MarshalTo(dAtA) 2724 if err != nil { 2725 return nil, err 2726 } 2727 return dAtA[:n], nil 2728 } 2729 2730 func (m *MetricsRequest) MarshalTo(dAtA []byte) (int, error) { 2731 var i int 2732 _ = i 2733 var l int 2734 _ = l 2735 if len(m.Filters) > 0 { 2736 for _, s := range m.Filters { 2737 dAtA[i] = 0xa 2738 i++ 2739 l = len(s) 2740 for l >= 1<<7 { 2741 dAtA[i] = uint8(uint64(l)&0x7f | 0x80) 2742 l >>= 7 2743 i++ 2744 } 2745 dAtA[i] = uint8(l) 2746 i++ 2747 i += copy(dAtA[i:], s) 2748 } 2749 } 2750 if m.XXX_unrecognized != nil { 2751 i += copy(dAtA[i:], m.XXX_unrecognized) 2752 } 2753 return i, nil 2754 } 2755 2756 func (m *MetricsResponse) Marshal() (dAtA []byte, err error) { 2757 size := m.Size() 2758 dAtA = make([]byte, size) 2759 n, err := m.MarshalTo(dAtA) 2760 if err != nil { 2761 return nil, err 2762 } 2763 return dAtA[:n], nil 2764 } 2765 2766 func (m *MetricsResponse) MarshalTo(dAtA []byte) (int, error) { 2767 var i int 2768 _ = i 2769 var l int 2770 _ = l 2771 if len(m.Metrics) > 0 { 2772 for _, msg := range m.Metrics { 2773 dAtA[i] = 0xa 2774 i++ 2775 i = encodeVarintTasks(dAtA, i, uint64(msg.Size())) 2776 n, err := msg.MarshalTo(dAtA[i:]) 2777 if err != nil { 2778 return 0, err 2779 } 2780 i += n 2781 } 2782 } 2783 if m.XXX_unrecognized != nil { 2784 i += copy(dAtA[i:], m.XXX_unrecognized) 2785 } 2786 return i, nil 2787 } 2788 2789 func (m *WaitRequest) Marshal() (dAtA []byte, err error) { 2790 size := m.Size() 2791 dAtA = make([]byte, size) 2792 n, err := m.MarshalTo(dAtA) 2793 if err != nil { 2794 return nil, err 2795 } 2796 return dAtA[:n], nil 2797 } 2798 2799 func (m *WaitRequest) MarshalTo(dAtA []byte) (int, error) { 2800 var i int 2801 _ = i 2802 var l int 2803 _ = l 2804 if len(m.ContainerID) > 0 { 2805 dAtA[i] = 0xa 2806 i++ 2807 i = encodeVarintTasks(dAtA, i, uint64(len(m.ContainerID))) 2808 i += copy(dAtA[i:], m.ContainerID) 2809 } 2810 if len(m.ExecID) > 0 { 2811 dAtA[i] = 0x12 2812 i++ 2813 i = encodeVarintTasks(dAtA, i, uint64(len(m.ExecID))) 2814 i += copy(dAtA[i:], m.ExecID) 2815 } 2816 if m.XXX_unrecognized != nil { 2817 i += copy(dAtA[i:], m.XXX_unrecognized) 2818 } 2819 return i, nil 2820 } 2821 2822 func (m *WaitResponse) Marshal() (dAtA []byte, err error) { 2823 size := m.Size() 2824 dAtA = make([]byte, size) 2825 n, err := m.MarshalTo(dAtA) 2826 if err != nil { 2827 return nil, err 2828 } 2829 return dAtA[:n], nil 2830 } 2831 2832 func (m *WaitResponse) MarshalTo(dAtA []byte) (int, error) { 2833 var i int 2834 _ = i 2835 var l int 2836 _ = l 2837 if m.ExitStatus != 0 { 2838 dAtA[i] = 0x8 2839 i++ 2840 i = encodeVarintTasks(dAtA, i, uint64(m.ExitStatus)) 2841 } 2842 dAtA[i] = 0x12 2843 i++ 2844 i = encodeVarintTasks(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt))) 2845 n8, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i:]) 2846 if err != nil { 2847 return 0, err 2848 } 2849 i += n8 2850 if m.XXX_unrecognized != nil { 2851 i += copy(dAtA[i:], m.XXX_unrecognized) 2852 } 2853 return i, nil 2854 } 2855 2856 func encodeVarintTasks(dAtA []byte, offset int, v uint64) int { 2857 for v >= 1<<7 { 2858 dAtA[offset] = uint8(v&0x7f | 0x80) 2859 v >>= 7 2860 offset++ 2861 } 2862 dAtA[offset] = uint8(v) 2863 return offset + 1 2864 } 2865 func (m *CreateTaskRequest) Size() (n int) { 2866 if m == nil { 2867 return 0 2868 } 2869 var l int 2870 _ = l 2871 l = len(m.ContainerID) 2872 if l > 0 { 2873 n += 1 + l + sovTasks(uint64(l)) 2874 } 2875 if len(m.Rootfs) > 0 { 2876 for _, e := range m.Rootfs { 2877 l = e.Size() 2878 n += 1 + l + sovTasks(uint64(l)) 2879 } 2880 } 2881 l = len(m.Stdin) 2882 if l > 0 { 2883 n += 1 + l + sovTasks(uint64(l)) 2884 } 2885 l = len(m.Stdout) 2886 if l > 0 { 2887 n += 1 + l + sovTasks(uint64(l)) 2888 } 2889 l = len(m.Stderr) 2890 if l > 0 { 2891 n += 1 + l + sovTasks(uint64(l)) 2892 } 2893 if m.Terminal { 2894 n += 2 2895 } 2896 if m.Checkpoint != nil { 2897 l = m.Checkpoint.Size() 2898 n += 1 + l + sovTasks(uint64(l)) 2899 } 2900 if m.Options != nil { 2901 l = m.Options.Size() 2902 n += 1 + l + sovTasks(uint64(l)) 2903 } 2904 if m.XXX_unrecognized != nil { 2905 n += len(m.XXX_unrecognized) 2906 } 2907 return n 2908 } 2909 2910 func (m *CreateTaskResponse) Size() (n int) { 2911 if m == nil { 2912 return 0 2913 } 2914 var l int 2915 _ = l 2916 l = len(m.ContainerID) 2917 if l > 0 { 2918 n += 1 + l + sovTasks(uint64(l)) 2919 } 2920 if m.Pid != 0 { 2921 n += 1 + sovTasks(uint64(m.Pid)) 2922 } 2923 if m.XXX_unrecognized != nil { 2924 n += len(m.XXX_unrecognized) 2925 } 2926 return n 2927 } 2928 2929 func (m *StartRequest) Size() (n int) { 2930 if m == nil { 2931 return 0 2932 } 2933 var l int 2934 _ = l 2935 l = len(m.ContainerID) 2936 if l > 0 { 2937 n += 1 + l + sovTasks(uint64(l)) 2938 } 2939 l = len(m.ExecID) 2940 if l > 0 { 2941 n += 1 + l + sovTasks(uint64(l)) 2942 } 2943 if m.XXX_unrecognized != nil { 2944 n += len(m.XXX_unrecognized) 2945 } 2946 return n 2947 } 2948 2949 func (m *StartResponse) Size() (n int) { 2950 if m == nil { 2951 return 0 2952 } 2953 var l int 2954 _ = l 2955 if m.Pid != 0 { 2956 n += 1 + sovTasks(uint64(m.Pid)) 2957 } 2958 if m.XXX_unrecognized != nil { 2959 n += len(m.XXX_unrecognized) 2960 } 2961 return n 2962 } 2963 2964 func (m *DeleteTaskRequest) Size() (n int) { 2965 if m == nil { 2966 return 0 2967 } 2968 var l int 2969 _ = l 2970 l = len(m.ContainerID) 2971 if l > 0 { 2972 n += 1 + l + sovTasks(uint64(l)) 2973 } 2974 if m.XXX_unrecognized != nil { 2975 n += len(m.XXX_unrecognized) 2976 } 2977 return n 2978 } 2979 2980 func (m *DeleteResponse) Size() (n int) { 2981 if m == nil { 2982 return 0 2983 } 2984 var l int 2985 _ = l 2986 l = len(m.ID) 2987 if l > 0 { 2988 n += 1 + l + sovTasks(uint64(l)) 2989 } 2990 if m.Pid != 0 { 2991 n += 1 + sovTasks(uint64(m.Pid)) 2992 } 2993 if m.ExitStatus != 0 { 2994 n += 1 + sovTasks(uint64(m.ExitStatus)) 2995 } 2996 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 2997 n += 1 + l + sovTasks(uint64(l)) 2998 if m.XXX_unrecognized != nil { 2999 n += len(m.XXX_unrecognized) 3000 } 3001 return n 3002 } 3003 3004 func (m *DeleteProcessRequest) Size() (n int) { 3005 if m == nil { 3006 return 0 3007 } 3008 var l int 3009 _ = l 3010 l = len(m.ContainerID) 3011 if l > 0 { 3012 n += 1 + l + sovTasks(uint64(l)) 3013 } 3014 l = len(m.ExecID) 3015 if l > 0 { 3016 n += 1 + l + sovTasks(uint64(l)) 3017 } 3018 if m.XXX_unrecognized != nil { 3019 n += len(m.XXX_unrecognized) 3020 } 3021 return n 3022 } 3023 3024 func (m *GetRequest) Size() (n int) { 3025 if m == nil { 3026 return 0 3027 } 3028 var l int 3029 _ = l 3030 l = len(m.ContainerID) 3031 if l > 0 { 3032 n += 1 + l + sovTasks(uint64(l)) 3033 } 3034 l = len(m.ExecID) 3035 if l > 0 { 3036 n += 1 + l + sovTasks(uint64(l)) 3037 } 3038 if m.XXX_unrecognized != nil { 3039 n += len(m.XXX_unrecognized) 3040 } 3041 return n 3042 } 3043 3044 func (m *GetResponse) Size() (n int) { 3045 if m == nil { 3046 return 0 3047 } 3048 var l int 3049 _ = l 3050 if m.Process != nil { 3051 l = m.Process.Size() 3052 n += 1 + l + sovTasks(uint64(l)) 3053 } 3054 if m.XXX_unrecognized != nil { 3055 n += len(m.XXX_unrecognized) 3056 } 3057 return n 3058 } 3059 3060 func (m *ListTasksRequest) Size() (n int) { 3061 if m == nil { 3062 return 0 3063 } 3064 var l int 3065 _ = l 3066 l = len(m.Filter) 3067 if l > 0 { 3068 n += 1 + l + sovTasks(uint64(l)) 3069 } 3070 if m.XXX_unrecognized != nil { 3071 n += len(m.XXX_unrecognized) 3072 } 3073 return n 3074 } 3075 3076 func (m *ListTasksResponse) Size() (n int) { 3077 if m == nil { 3078 return 0 3079 } 3080 var l int 3081 _ = l 3082 if len(m.Tasks) > 0 { 3083 for _, e := range m.Tasks { 3084 l = e.Size() 3085 n += 1 + l + sovTasks(uint64(l)) 3086 } 3087 } 3088 if m.XXX_unrecognized != nil { 3089 n += len(m.XXX_unrecognized) 3090 } 3091 return n 3092 } 3093 3094 func (m *KillRequest) Size() (n int) { 3095 if m == nil { 3096 return 0 3097 } 3098 var l int 3099 _ = l 3100 l = len(m.ContainerID) 3101 if l > 0 { 3102 n += 1 + l + sovTasks(uint64(l)) 3103 } 3104 l = len(m.ExecID) 3105 if l > 0 { 3106 n += 1 + l + sovTasks(uint64(l)) 3107 } 3108 if m.Signal != 0 { 3109 n += 1 + sovTasks(uint64(m.Signal)) 3110 } 3111 if m.All { 3112 n += 2 3113 } 3114 if m.XXX_unrecognized != nil { 3115 n += len(m.XXX_unrecognized) 3116 } 3117 return n 3118 } 3119 3120 func (m *ExecProcessRequest) Size() (n int) { 3121 if m == nil { 3122 return 0 3123 } 3124 var l int 3125 _ = l 3126 l = len(m.ContainerID) 3127 if l > 0 { 3128 n += 1 + l + sovTasks(uint64(l)) 3129 } 3130 l = len(m.Stdin) 3131 if l > 0 { 3132 n += 1 + l + sovTasks(uint64(l)) 3133 } 3134 l = len(m.Stdout) 3135 if l > 0 { 3136 n += 1 + l + sovTasks(uint64(l)) 3137 } 3138 l = len(m.Stderr) 3139 if l > 0 { 3140 n += 1 + l + sovTasks(uint64(l)) 3141 } 3142 if m.Terminal { 3143 n += 2 3144 } 3145 if m.Spec != nil { 3146 l = m.Spec.Size() 3147 n += 1 + l + sovTasks(uint64(l)) 3148 } 3149 l = len(m.ExecID) 3150 if l > 0 { 3151 n += 1 + l + sovTasks(uint64(l)) 3152 } 3153 if m.XXX_unrecognized != nil { 3154 n += len(m.XXX_unrecognized) 3155 } 3156 return n 3157 } 3158 3159 func (m *ExecProcessResponse) Size() (n int) { 3160 if m == nil { 3161 return 0 3162 } 3163 var l int 3164 _ = l 3165 if m.XXX_unrecognized != nil { 3166 n += len(m.XXX_unrecognized) 3167 } 3168 return n 3169 } 3170 3171 func (m *ResizePtyRequest) Size() (n int) { 3172 if m == nil { 3173 return 0 3174 } 3175 var l int 3176 _ = l 3177 l = len(m.ContainerID) 3178 if l > 0 { 3179 n += 1 + l + sovTasks(uint64(l)) 3180 } 3181 l = len(m.ExecID) 3182 if l > 0 { 3183 n += 1 + l + sovTasks(uint64(l)) 3184 } 3185 if m.Width != 0 { 3186 n += 1 + sovTasks(uint64(m.Width)) 3187 } 3188 if m.Height != 0 { 3189 n += 1 + sovTasks(uint64(m.Height)) 3190 } 3191 if m.XXX_unrecognized != nil { 3192 n += len(m.XXX_unrecognized) 3193 } 3194 return n 3195 } 3196 3197 func (m *CloseIORequest) Size() (n int) { 3198 if m == nil { 3199 return 0 3200 } 3201 var l int 3202 _ = l 3203 l = len(m.ContainerID) 3204 if l > 0 { 3205 n += 1 + l + sovTasks(uint64(l)) 3206 } 3207 l = len(m.ExecID) 3208 if l > 0 { 3209 n += 1 + l + sovTasks(uint64(l)) 3210 } 3211 if m.Stdin { 3212 n += 2 3213 } 3214 if m.XXX_unrecognized != nil { 3215 n += len(m.XXX_unrecognized) 3216 } 3217 return n 3218 } 3219 3220 func (m *PauseTaskRequest) Size() (n int) { 3221 if m == nil { 3222 return 0 3223 } 3224 var l int 3225 _ = l 3226 l = len(m.ContainerID) 3227 if l > 0 { 3228 n += 1 + l + sovTasks(uint64(l)) 3229 } 3230 if m.XXX_unrecognized != nil { 3231 n += len(m.XXX_unrecognized) 3232 } 3233 return n 3234 } 3235 3236 func (m *ResumeTaskRequest) Size() (n int) { 3237 if m == nil { 3238 return 0 3239 } 3240 var l int 3241 _ = l 3242 l = len(m.ContainerID) 3243 if l > 0 { 3244 n += 1 + l + sovTasks(uint64(l)) 3245 } 3246 if m.XXX_unrecognized != nil { 3247 n += len(m.XXX_unrecognized) 3248 } 3249 return n 3250 } 3251 3252 func (m *ListPidsRequest) Size() (n int) { 3253 if m == nil { 3254 return 0 3255 } 3256 var l int 3257 _ = l 3258 l = len(m.ContainerID) 3259 if l > 0 { 3260 n += 1 + l + sovTasks(uint64(l)) 3261 } 3262 if m.XXX_unrecognized != nil { 3263 n += len(m.XXX_unrecognized) 3264 } 3265 return n 3266 } 3267 3268 func (m *ListPidsResponse) Size() (n int) { 3269 if m == nil { 3270 return 0 3271 } 3272 var l int 3273 _ = l 3274 if len(m.Processes) > 0 { 3275 for _, e := range m.Processes { 3276 l = e.Size() 3277 n += 1 + l + sovTasks(uint64(l)) 3278 } 3279 } 3280 if m.XXX_unrecognized != nil { 3281 n += len(m.XXX_unrecognized) 3282 } 3283 return n 3284 } 3285 3286 func (m *CheckpointTaskRequest) Size() (n int) { 3287 if m == nil { 3288 return 0 3289 } 3290 var l int 3291 _ = l 3292 l = len(m.ContainerID) 3293 if l > 0 { 3294 n += 1 + l + sovTasks(uint64(l)) 3295 } 3296 l = len(m.ParentCheckpoint) 3297 if l > 0 { 3298 n += 1 + l + sovTasks(uint64(l)) 3299 } 3300 if m.Options != nil { 3301 l = m.Options.Size() 3302 n += 1 + l + sovTasks(uint64(l)) 3303 } 3304 if m.XXX_unrecognized != nil { 3305 n += len(m.XXX_unrecognized) 3306 } 3307 return n 3308 } 3309 3310 func (m *CheckpointTaskResponse) Size() (n int) { 3311 if m == nil { 3312 return 0 3313 } 3314 var l int 3315 _ = l 3316 if len(m.Descriptors) > 0 { 3317 for _, e := range m.Descriptors { 3318 l = e.Size() 3319 n += 1 + l + sovTasks(uint64(l)) 3320 } 3321 } 3322 if m.XXX_unrecognized != nil { 3323 n += len(m.XXX_unrecognized) 3324 } 3325 return n 3326 } 3327 3328 func (m *UpdateTaskRequest) Size() (n int) { 3329 if m == nil { 3330 return 0 3331 } 3332 var l int 3333 _ = l 3334 l = len(m.ContainerID) 3335 if l > 0 { 3336 n += 1 + l + sovTasks(uint64(l)) 3337 } 3338 if m.Resources != nil { 3339 l = m.Resources.Size() 3340 n += 1 + l + sovTasks(uint64(l)) 3341 } 3342 if m.XXX_unrecognized != nil { 3343 n += len(m.XXX_unrecognized) 3344 } 3345 return n 3346 } 3347 3348 func (m *MetricsRequest) Size() (n int) { 3349 if m == nil { 3350 return 0 3351 } 3352 var l int 3353 _ = l 3354 if len(m.Filters) > 0 { 3355 for _, s := range m.Filters { 3356 l = len(s) 3357 n += 1 + l + sovTasks(uint64(l)) 3358 } 3359 } 3360 if m.XXX_unrecognized != nil { 3361 n += len(m.XXX_unrecognized) 3362 } 3363 return n 3364 } 3365 3366 func (m *MetricsResponse) Size() (n int) { 3367 if m == nil { 3368 return 0 3369 } 3370 var l int 3371 _ = l 3372 if len(m.Metrics) > 0 { 3373 for _, e := range m.Metrics { 3374 l = e.Size() 3375 n += 1 + l + sovTasks(uint64(l)) 3376 } 3377 } 3378 if m.XXX_unrecognized != nil { 3379 n += len(m.XXX_unrecognized) 3380 } 3381 return n 3382 } 3383 3384 func (m *WaitRequest) Size() (n int) { 3385 if m == nil { 3386 return 0 3387 } 3388 var l int 3389 _ = l 3390 l = len(m.ContainerID) 3391 if l > 0 { 3392 n += 1 + l + sovTasks(uint64(l)) 3393 } 3394 l = len(m.ExecID) 3395 if l > 0 { 3396 n += 1 + l + sovTasks(uint64(l)) 3397 } 3398 if m.XXX_unrecognized != nil { 3399 n += len(m.XXX_unrecognized) 3400 } 3401 return n 3402 } 3403 3404 func (m *WaitResponse) Size() (n int) { 3405 if m == nil { 3406 return 0 3407 } 3408 var l int 3409 _ = l 3410 if m.ExitStatus != 0 { 3411 n += 1 + sovTasks(uint64(m.ExitStatus)) 3412 } 3413 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 3414 n += 1 + l + sovTasks(uint64(l)) 3415 if m.XXX_unrecognized != nil { 3416 n += len(m.XXX_unrecognized) 3417 } 3418 return n 3419 } 3420 3421 func sovTasks(x uint64) (n int) { 3422 for { 3423 n++ 3424 x >>= 7 3425 if x == 0 { 3426 break 3427 } 3428 } 3429 return n 3430 } 3431 func sozTasks(x uint64) (n int) { 3432 return sovTasks(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 3433 } 3434 func (this *CreateTaskRequest) String() string { 3435 if this == nil { 3436 return "nil" 3437 } 3438 s := strings.Join([]string{`&CreateTaskRequest{`, 3439 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3440 `Rootfs:` + strings.Replace(fmt.Sprintf("%v", this.Rootfs), "Mount", "types.Mount", 1) + `,`, 3441 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 3442 `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, 3443 `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, 3444 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 3445 `Checkpoint:` + strings.Replace(fmt.Sprintf("%v", this.Checkpoint), "Descriptor", "types.Descriptor", 1) + `,`, 3446 `Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "types1.Any", 1) + `,`, 3447 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3448 `}`, 3449 }, "") 3450 return s 3451 } 3452 func (this *CreateTaskResponse) String() string { 3453 if this == nil { 3454 return "nil" 3455 } 3456 s := strings.Join([]string{`&CreateTaskResponse{`, 3457 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3458 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 3459 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3460 `}`, 3461 }, "") 3462 return s 3463 } 3464 func (this *StartRequest) String() string { 3465 if this == nil { 3466 return "nil" 3467 } 3468 s := strings.Join([]string{`&StartRequest{`, 3469 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3470 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3471 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3472 `}`, 3473 }, "") 3474 return s 3475 } 3476 func (this *StartResponse) String() string { 3477 if this == nil { 3478 return "nil" 3479 } 3480 s := strings.Join([]string{`&StartResponse{`, 3481 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 3482 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3483 `}`, 3484 }, "") 3485 return s 3486 } 3487 func (this *DeleteTaskRequest) String() string { 3488 if this == nil { 3489 return "nil" 3490 } 3491 s := strings.Join([]string{`&DeleteTaskRequest{`, 3492 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3493 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3494 `}`, 3495 }, "") 3496 return s 3497 } 3498 func (this *DeleteResponse) String() string { 3499 if this == nil { 3500 return "nil" 3501 } 3502 s := strings.Join([]string{`&DeleteResponse{`, 3503 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 3504 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 3505 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 3506 `ExitedAt:` + strings.Replace(strings.Replace(this.ExitedAt.String(), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 3507 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3508 `}`, 3509 }, "") 3510 return s 3511 } 3512 func (this *DeleteProcessRequest) String() string { 3513 if this == nil { 3514 return "nil" 3515 } 3516 s := strings.Join([]string{`&DeleteProcessRequest{`, 3517 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3518 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3519 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3520 `}`, 3521 }, "") 3522 return s 3523 } 3524 func (this *GetRequest) String() string { 3525 if this == nil { 3526 return "nil" 3527 } 3528 s := strings.Join([]string{`&GetRequest{`, 3529 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3530 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3531 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3532 `}`, 3533 }, "") 3534 return s 3535 } 3536 func (this *GetResponse) String() string { 3537 if this == nil { 3538 return "nil" 3539 } 3540 s := strings.Join([]string{`&GetResponse{`, 3541 `Process:` + strings.Replace(fmt.Sprintf("%v", this.Process), "Process", "task.Process", 1) + `,`, 3542 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3543 `}`, 3544 }, "") 3545 return s 3546 } 3547 func (this *ListTasksRequest) String() string { 3548 if this == nil { 3549 return "nil" 3550 } 3551 s := strings.Join([]string{`&ListTasksRequest{`, 3552 `Filter:` + fmt.Sprintf("%v", this.Filter) + `,`, 3553 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3554 `}`, 3555 }, "") 3556 return s 3557 } 3558 func (this *ListTasksResponse) String() string { 3559 if this == nil { 3560 return "nil" 3561 } 3562 s := strings.Join([]string{`&ListTasksResponse{`, 3563 `Tasks:` + strings.Replace(fmt.Sprintf("%v", this.Tasks), "Process", "task.Process", 1) + `,`, 3564 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3565 `}`, 3566 }, "") 3567 return s 3568 } 3569 func (this *KillRequest) String() string { 3570 if this == nil { 3571 return "nil" 3572 } 3573 s := strings.Join([]string{`&KillRequest{`, 3574 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3575 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3576 `Signal:` + fmt.Sprintf("%v", this.Signal) + `,`, 3577 `All:` + fmt.Sprintf("%v", this.All) + `,`, 3578 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3579 `}`, 3580 }, "") 3581 return s 3582 } 3583 func (this *ExecProcessRequest) String() string { 3584 if this == nil { 3585 return "nil" 3586 } 3587 s := strings.Join([]string{`&ExecProcessRequest{`, 3588 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3589 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 3590 `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, 3591 `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, 3592 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 3593 `Spec:` + strings.Replace(fmt.Sprintf("%v", this.Spec), "Any", "types1.Any", 1) + `,`, 3594 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3595 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3596 `}`, 3597 }, "") 3598 return s 3599 } 3600 func (this *ExecProcessResponse) String() string { 3601 if this == nil { 3602 return "nil" 3603 } 3604 s := strings.Join([]string{`&ExecProcessResponse{`, 3605 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3606 `}`, 3607 }, "") 3608 return s 3609 } 3610 func (this *ResizePtyRequest) String() string { 3611 if this == nil { 3612 return "nil" 3613 } 3614 s := strings.Join([]string{`&ResizePtyRequest{`, 3615 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3616 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3617 `Width:` + fmt.Sprintf("%v", this.Width) + `,`, 3618 `Height:` + fmt.Sprintf("%v", this.Height) + `,`, 3619 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3620 `}`, 3621 }, "") 3622 return s 3623 } 3624 func (this *CloseIORequest) String() string { 3625 if this == nil { 3626 return "nil" 3627 } 3628 s := strings.Join([]string{`&CloseIORequest{`, 3629 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3630 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3631 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 3632 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3633 `}`, 3634 }, "") 3635 return s 3636 } 3637 func (this *PauseTaskRequest) String() string { 3638 if this == nil { 3639 return "nil" 3640 } 3641 s := strings.Join([]string{`&PauseTaskRequest{`, 3642 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3643 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3644 `}`, 3645 }, "") 3646 return s 3647 } 3648 func (this *ResumeTaskRequest) String() string { 3649 if this == nil { 3650 return "nil" 3651 } 3652 s := strings.Join([]string{`&ResumeTaskRequest{`, 3653 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3654 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3655 `}`, 3656 }, "") 3657 return s 3658 } 3659 func (this *ListPidsRequest) String() string { 3660 if this == nil { 3661 return "nil" 3662 } 3663 s := strings.Join([]string{`&ListPidsRequest{`, 3664 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3665 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3666 `}`, 3667 }, "") 3668 return s 3669 } 3670 func (this *ListPidsResponse) String() string { 3671 if this == nil { 3672 return "nil" 3673 } 3674 s := strings.Join([]string{`&ListPidsResponse{`, 3675 `Processes:` + strings.Replace(fmt.Sprintf("%v", this.Processes), "ProcessInfo", "task.ProcessInfo", 1) + `,`, 3676 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3677 `}`, 3678 }, "") 3679 return s 3680 } 3681 func (this *CheckpointTaskRequest) String() string { 3682 if this == nil { 3683 return "nil" 3684 } 3685 s := strings.Join([]string{`&CheckpointTaskRequest{`, 3686 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3687 `ParentCheckpoint:` + fmt.Sprintf("%v", this.ParentCheckpoint) + `,`, 3688 `Options:` + strings.Replace(fmt.Sprintf("%v", this.Options), "Any", "types1.Any", 1) + `,`, 3689 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3690 `}`, 3691 }, "") 3692 return s 3693 } 3694 func (this *CheckpointTaskResponse) String() string { 3695 if this == nil { 3696 return "nil" 3697 } 3698 s := strings.Join([]string{`&CheckpointTaskResponse{`, 3699 `Descriptors:` + strings.Replace(fmt.Sprintf("%v", this.Descriptors), "Descriptor", "types.Descriptor", 1) + `,`, 3700 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3701 `}`, 3702 }, "") 3703 return s 3704 } 3705 func (this *UpdateTaskRequest) String() string { 3706 if this == nil { 3707 return "nil" 3708 } 3709 s := strings.Join([]string{`&UpdateTaskRequest{`, 3710 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3711 `Resources:` + strings.Replace(fmt.Sprintf("%v", this.Resources), "Any", "types1.Any", 1) + `,`, 3712 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3713 `}`, 3714 }, "") 3715 return s 3716 } 3717 func (this *MetricsRequest) String() string { 3718 if this == nil { 3719 return "nil" 3720 } 3721 s := strings.Join([]string{`&MetricsRequest{`, 3722 `Filters:` + fmt.Sprintf("%v", this.Filters) + `,`, 3723 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3724 `}`, 3725 }, "") 3726 return s 3727 } 3728 func (this *MetricsResponse) String() string { 3729 if this == nil { 3730 return "nil" 3731 } 3732 s := strings.Join([]string{`&MetricsResponse{`, 3733 `Metrics:` + strings.Replace(fmt.Sprintf("%v", this.Metrics), "Metric", "types.Metric", 1) + `,`, 3734 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3735 `}`, 3736 }, "") 3737 return s 3738 } 3739 func (this *WaitRequest) String() string { 3740 if this == nil { 3741 return "nil" 3742 } 3743 s := strings.Join([]string{`&WaitRequest{`, 3744 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 3745 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 3746 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3747 `}`, 3748 }, "") 3749 return s 3750 } 3751 func (this *WaitResponse) String() string { 3752 if this == nil { 3753 return "nil" 3754 } 3755 s := strings.Join([]string{`&WaitResponse{`, 3756 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 3757 `ExitedAt:` + strings.Replace(strings.Replace(this.ExitedAt.String(), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 3758 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 3759 `}`, 3760 }, "") 3761 return s 3762 } 3763 func valueToStringTasks(v interface{}) string { 3764 rv := reflect.ValueOf(v) 3765 if rv.IsNil() { 3766 return "nil" 3767 } 3768 pv := reflect.Indirect(rv).Interface() 3769 return fmt.Sprintf("*%v", pv) 3770 } 3771 func (m *CreateTaskRequest) Unmarshal(dAtA []byte) error { 3772 l := len(dAtA) 3773 iNdEx := 0 3774 for iNdEx < l { 3775 preIndex := iNdEx 3776 var wire uint64 3777 for shift := uint(0); ; shift += 7 { 3778 if shift >= 64 { 3779 return ErrIntOverflowTasks 3780 } 3781 if iNdEx >= l { 3782 return io.ErrUnexpectedEOF 3783 } 3784 b := dAtA[iNdEx] 3785 iNdEx++ 3786 wire |= uint64(b&0x7F) << shift 3787 if b < 0x80 { 3788 break 3789 } 3790 } 3791 fieldNum := int32(wire >> 3) 3792 wireType := int(wire & 0x7) 3793 if wireType == 4 { 3794 return fmt.Errorf("proto: CreateTaskRequest: wiretype end group for non-group") 3795 } 3796 if fieldNum <= 0 { 3797 return fmt.Errorf("proto: CreateTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 3798 } 3799 switch fieldNum { 3800 case 1: 3801 if wireType != 2 { 3802 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 3803 } 3804 var stringLen uint64 3805 for shift := uint(0); ; shift += 7 { 3806 if shift >= 64 { 3807 return ErrIntOverflowTasks 3808 } 3809 if iNdEx >= l { 3810 return io.ErrUnexpectedEOF 3811 } 3812 b := dAtA[iNdEx] 3813 iNdEx++ 3814 stringLen |= uint64(b&0x7F) << shift 3815 if b < 0x80 { 3816 break 3817 } 3818 } 3819 intStringLen := int(stringLen) 3820 if intStringLen < 0 { 3821 return ErrInvalidLengthTasks 3822 } 3823 postIndex := iNdEx + intStringLen 3824 if postIndex < 0 { 3825 return ErrInvalidLengthTasks 3826 } 3827 if postIndex > l { 3828 return io.ErrUnexpectedEOF 3829 } 3830 m.ContainerID = string(dAtA[iNdEx:postIndex]) 3831 iNdEx = postIndex 3832 case 3: 3833 if wireType != 2 { 3834 return fmt.Errorf("proto: wrong wireType = %d for field Rootfs", wireType) 3835 } 3836 var msglen int 3837 for shift := uint(0); ; shift += 7 { 3838 if shift >= 64 { 3839 return ErrIntOverflowTasks 3840 } 3841 if iNdEx >= l { 3842 return io.ErrUnexpectedEOF 3843 } 3844 b := dAtA[iNdEx] 3845 iNdEx++ 3846 msglen |= int(b&0x7F) << shift 3847 if b < 0x80 { 3848 break 3849 } 3850 } 3851 if msglen < 0 { 3852 return ErrInvalidLengthTasks 3853 } 3854 postIndex := iNdEx + msglen 3855 if postIndex < 0 { 3856 return ErrInvalidLengthTasks 3857 } 3858 if postIndex > l { 3859 return io.ErrUnexpectedEOF 3860 } 3861 m.Rootfs = append(m.Rootfs, &types.Mount{}) 3862 if err := m.Rootfs[len(m.Rootfs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 3863 return err 3864 } 3865 iNdEx = postIndex 3866 case 4: 3867 if wireType != 2 { 3868 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 3869 } 3870 var stringLen uint64 3871 for shift := uint(0); ; shift += 7 { 3872 if shift >= 64 { 3873 return ErrIntOverflowTasks 3874 } 3875 if iNdEx >= l { 3876 return io.ErrUnexpectedEOF 3877 } 3878 b := dAtA[iNdEx] 3879 iNdEx++ 3880 stringLen |= uint64(b&0x7F) << shift 3881 if b < 0x80 { 3882 break 3883 } 3884 } 3885 intStringLen := int(stringLen) 3886 if intStringLen < 0 { 3887 return ErrInvalidLengthTasks 3888 } 3889 postIndex := iNdEx + intStringLen 3890 if postIndex < 0 { 3891 return ErrInvalidLengthTasks 3892 } 3893 if postIndex > l { 3894 return io.ErrUnexpectedEOF 3895 } 3896 m.Stdin = string(dAtA[iNdEx:postIndex]) 3897 iNdEx = postIndex 3898 case 5: 3899 if wireType != 2 { 3900 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 3901 } 3902 var stringLen uint64 3903 for shift := uint(0); ; shift += 7 { 3904 if shift >= 64 { 3905 return ErrIntOverflowTasks 3906 } 3907 if iNdEx >= l { 3908 return io.ErrUnexpectedEOF 3909 } 3910 b := dAtA[iNdEx] 3911 iNdEx++ 3912 stringLen |= uint64(b&0x7F) << shift 3913 if b < 0x80 { 3914 break 3915 } 3916 } 3917 intStringLen := int(stringLen) 3918 if intStringLen < 0 { 3919 return ErrInvalidLengthTasks 3920 } 3921 postIndex := iNdEx + intStringLen 3922 if postIndex < 0 { 3923 return ErrInvalidLengthTasks 3924 } 3925 if postIndex > l { 3926 return io.ErrUnexpectedEOF 3927 } 3928 m.Stdout = string(dAtA[iNdEx:postIndex]) 3929 iNdEx = postIndex 3930 case 6: 3931 if wireType != 2 { 3932 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 3933 } 3934 var stringLen uint64 3935 for shift := uint(0); ; shift += 7 { 3936 if shift >= 64 { 3937 return ErrIntOverflowTasks 3938 } 3939 if iNdEx >= l { 3940 return io.ErrUnexpectedEOF 3941 } 3942 b := dAtA[iNdEx] 3943 iNdEx++ 3944 stringLen |= uint64(b&0x7F) << shift 3945 if b < 0x80 { 3946 break 3947 } 3948 } 3949 intStringLen := int(stringLen) 3950 if intStringLen < 0 { 3951 return ErrInvalidLengthTasks 3952 } 3953 postIndex := iNdEx + intStringLen 3954 if postIndex < 0 { 3955 return ErrInvalidLengthTasks 3956 } 3957 if postIndex > l { 3958 return io.ErrUnexpectedEOF 3959 } 3960 m.Stderr = string(dAtA[iNdEx:postIndex]) 3961 iNdEx = postIndex 3962 case 7: 3963 if wireType != 0 { 3964 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 3965 } 3966 var v int 3967 for shift := uint(0); ; shift += 7 { 3968 if shift >= 64 { 3969 return ErrIntOverflowTasks 3970 } 3971 if iNdEx >= l { 3972 return io.ErrUnexpectedEOF 3973 } 3974 b := dAtA[iNdEx] 3975 iNdEx++ 3976 v |= int(b&0x7F) << shift 3977 if b < 0x80 { 3978 break 3979 } 3980 } 3981 m.Terminal = bool(v != 0) 3982 case 8: 3983 if wireType != 2 { 3984 return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType) 3985 } 3986 var msglen int 3987 for shift := uint(0); ; shift += 7 { 3988 if shift >= 64 { 3989 return ErrIntOverflowTasks 3990 } 3991 if iNdEx >= l { 3992 return io.ErrUnexpectedEOF 3993 } 3994 b := dAtA[iNdEx] 3995 iNdEx++ 3996 msglen |= int(b&0x7F) << shift 3997 if b < 0x80 { 3998 break 3999 } 4000 } 4001 if msglen < 0 { 4002 return ErrInvalidLengthTasks 4003 } 4004 postIndex := iNdEx + msglen 4005 if postIndex < 0 { 4006 return ErrInvalidLengthTasks 4007 } 4008 if postIndex > l { 4009 return io.ErrUnexpectedEOF 4010 } 4011 if m.Checkpoint == nil { 4012 m.Checkpoint = &types.Descriptor{} 4013 } 4014 if err := m.Checkpoint.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4015 return err 4016 } 4017 iNdEx = postIndex 4018 case 9: 4019 if wireType != 2 { 4020 return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) 4021 } 4022 var msglen int 4023 for shift := uint(0); ; shift += 7 { 4024 if shift >= 64 { 4025 return ErrIntOverflowTasks 4026 } 4027 if iNdEx >= l { 4028 return io.ErrUnexpectedEOF 4029 } 4030 b := dAtA[iNdEx] 4031 iNdEx++ 4032 msglen |= int(b&0x7F) << shift 4033 if b < 0x80 { 4034 break 4035 } 4036 } 4037 if msglen < 0 { 4038 return ErrInvalidLengthTasks 4039 } 4040 postIndex := iNdEx + msglen 4041 if postIndex < 0 { 4042 return ErrInvalidLengthTasks 4043 } 4044 if postIndex > l { 4045 return io.ErrUnexpectedEOF 4046 } 4047 if m.Options == nil { 4048 m.Options = &types1.Any{} 4049 } 4050 if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4051 return err 4052 } 4053 iNdEx = postIndex 4054 default: 4055 iNdEx = preIndex 4056 skippy, err := skipTasks(dAtA[iNdEx:]) 4057 if err != nil { 4058 return err 4059 } 4060 if skippy < 0 { 4061 return ErrInvalidLengthTasks 4062 } 4063 if (iNdEx + skippy) < 0 { 4064 return ErrInvalidLengthTasks 4065 } 4066 if (iNdEx + skippy) > l { 4067 return io.ErrUnexpectedEOF 4068 } 4069 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4070 iNdEx += skippy 4071 } 4072 } 4073 4074 if iNdEx > l { 4075 return io.ErrUnexpectedEOF 4076 } 4077 return nil 4078 } 4079 func (m *CreateTaskResponse) Unmarshal(dAtA []byte) error { 4080 l := len(dAtA) 4081 iNdEx := 0 4082 for iNdEx < l { 4083 preIndex := iNdEx 4084 var wire uint64 4085 for shift := uint(0); ; shift += 7 { 4086 if shift >= 64 { 4087 return ErrIntOverflowTasks 4088 } 4089 if iNdEx >= l { 4090 return io.ErrUnexpectedEOF 4091 } 4092 b := dAtA[iNdEx] 4093 iNdEx++ 4094 wire |= uint64(b&0x7F) << shift 4095 if b < 0x80 { 4096 break 4097 } 4098 } 4099 fieldNum := int32(wire >> 3) 4100 wireType := int(wire & 0x7) 4101 if wireType == 4 { 4102 return fmt.Errorf("proto: CreateTaskResponse: wiretype end group for non-group") 4103 } 4104 if fieldNum <= 0 { 4105 return fmt.Errorf("proto: CreateTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4106 } 4107 switch fieldNum { 4108 case 1: 4109 if wireType != 2 { 4110 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 4111 } 4112 var stringLen uint64 4113 for shift := uint(0); ; shift += 7 { 4114 if shift >= 64 { 4115 return ErrIntOverflowTasks 4116 } 4117 if iNdEx >= l { 4118 return io.ErrUnexpectedEOF 4119 } 4120 b := dAtA[iNdEx] 4121 iNdEx++ 4122 stringLen |= uint64(b&0x7F) << shift 4123 if b < 0x80 { 4124 break 4125 } 4126 } 4127 intStringLen := int(stringLen) 4128 if intStringLen < 0 { 4129 return ErrInvalidLengthTasks 4130 } 4131 postIndex := iNdEx + intStringLen 4132 if postIndex < 0 { 4133 return ErrInvalidLengthTasks 4134 } 4135 if postIndex > l { 4136 return io.ErrUnexpectedEOF 4137 } 4138 m.ContainerID = string(dAtA[iNdEx:postIndex]) 4139 iNdEx = postIndex 4140 case 2: 4141 if wireType != 0 { 4142 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 4143 } 4144 m.Pid = 0 4145 for shift := uint(0); ; shift += 7 { 4146 if shift >= 64 { 4147 return ErrIntOverflowTasks 4148 } 4149 if iNdEx >= l { 4150 return io.ErrUnexpectedEOF 4151 } 4152 b := dAtA[iNdEx] 4153 iNdEx++ 4154 m.Pid |= uint32(b&0x7F) << shift 4155 if b < 0x80 { 4156 break 4157 } 4158 } 4159 default: 4160 iNdEx = preIndex 4161 skippy, err := skipTasks(dAtA[iNdEx:]) 4162 if err != nil { 4163 return err 4164 } 4165 if skippy < 0 { 4166 return ErrInvalidLengthTasks 4167 } 4168 if (iNdEx + skippy) < 0 { 4169 return ErrInvalidLengthTasks 4170 } 4171 if (iNdEx + skippy) > l { 4172 return io.ErrUnexpectedEOF 4173 } 4174 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4175 iNdEx += skippy 4176 } 4177 } 4178 4179 if iNdEx > l { 4180 return io.ErrUnexpectedEOF 4181 } 4182 return nil 4183 } 4184 func (m *StartRequest) Unmarshal(dAtA []byte) error { 4185 l := len(dAtA) 4186 iNdEx := 0 4187 for iNdEx < l { 4188 preIndex := iNdEx 4189 var wire uint64 4190 for shift := uint(0); ; shift += 7 { 4191 if shift >= 64 { 4192 return ErrIntOverflowTasks 4193 } 4194 if iNdEx >= l { 4195 return io.ErrUnexpectedEOF 4196 } 4197 b := dAtA[iNdEx] 4198 iNdEx++ 4199 wire |= uint64(b&0x7F) << shift 4200 if b < 0x80 { 4201 break 4202 } 4203 } 4204 fieldNum := int32(wire >> 3) 4205 wireType := int(wire & 0x7) 4206 if wireType == 4 { 4207 return fmt.Errorf("proto: StartRequest: wiretype end group for non-group") 4208 } 4209 if fieldNum <= 0 { 4210 return fmt.Errorf("proto: StartRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4211 } 4212 switch fieldNum { 4213 case 1: 4214 if wireType != 2 { 4215 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 4216 } 4217 var stringLen uint64 4218 for shift := uint(0); ; shift += 7 { 4219 if shift >= 64 { 4220 return ErrIntOverflowTasks 4221 } 4222 if iNdEx >= l { 4223 return io.ErrUnexpectedEOF 4224 } 4225 b := dAtA[iNdEx] 4226 iNdEx++ 4227 stringLen |= uint64(b&0x7F) << shift 4228 if b < 0x80 { 4229 break 4230 } 4231 } 4232 intStringLen := int(stringLen) 4233 if intStringLen < 0 { 4234 return ErrInvalidLengthTasks 4235 } 4236 postIndex := iNdEx + intStringLen 4237 if postIndex < 0 { 4238 return ErrInvalidLengthTasks 4239 } 4240 if postIndex > l { 4241 return io.ErrUnexpectedEOF 4242 } 4243 m.ContainerID = string(dAtA[iNdEx:postIndex]) 4244 iNdEx = postIndex 4245 case 2: 4246 if wireType != 2 { 4247 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4248 } 4249 var stringLen uint64 4250 for shift := uint(0); ; shift += 7 { 4251 if shift >= 64 { 4252 return ErrIntOverflowTasks 4253 } 4254 if iNdEx >= l { 4255 return io.ErrUnexpectedEOF 4256 } 4257 b := dAtA[iNdEx] 4258 iNdEx++ 4259 stringLen |= uint64(b&0x7F) << shift 4260 if b < 0x80 { 4261 break 4262 } 4263 } 4264 intStringLen := int(stringLen) 4265 if intStringLen < 0 { 4266 return ErrInvalidLengthTasks 4267 } 4268 postIndex := iNdEx + intStringLen 4269 if postIndex < 0 { 4270 return ErrInvalidLengthTasks 4271 } 4272 if postIndex > l { 4273 return io.ErrUnexpectedEOF 4274 } 4275 m.ExecID = string(dAtA[iNdEx:postIndex]) 4276 iNdEx = postIndex 4277 default: 4278 iNdEx = preIndex 4279 skippy, err := skipTasks(dAtA[iNdEx:]) 4280 if err != nil { 4281 return err 4282 } 4283 if skippy < 0 { 4284 return ErrInvalidLengthTasks 4285 } 4286 if (iNdEx + skippy) < 0 { 4287 return ErrInvalidLengthTasks 4288 } 4289 if (iNdEx + skippy) > l { 4290 return io.ErrUnexpectedEOF 4291 } 4292 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4293 iNdEx += skippy 4294 } 4295 } 4296 4297 if iNdEx > l { 4298 return io.ErrUnexpectedEOF 4299 } 4300 return nil 4301 } 4302 func (m *StartResponse) Unmarshal(dAtA []byte) error { 4303 l := len(dAtA) 4304 iNdEx := 0 4305 for iNdEx < l { 4306 preIndex := iNdEx 4307 var wire uint64 4308 for shift := uint(0); ; shift += 7 { 4309 if shift >= 64 { 4310 return ErrIntOverflowTasks 4311 } 4312 if iNdEx >= l { 4313 return io.ErrUnexpectedEOF 4314 } 4315 b := dAtA[iNdEx] 4316 iNdEx++ 4317 wire |= uint64(b&0x7F) << shift 4318 if b < 0x80 { 4319 break 4320 } 4321 } 4322 fieldNum := int32(wire >> 3) 4323 wireType := int(wire & 0x7) 4324 if wireType == 4 { 4325 return fmt.Errorf("proto: StartResponse: wiretype end group for non-group") 4326 } 4327 if fieldNum <= 0 { 4328 return fmt.Errorf("proto: StartResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4329 } 4330 switch fieldNum { 4331 case 1: 4332 if wireType != 0 { 4333 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 4334 } 4335 m.Pid = 0 4336 for shift := uint(0); ; shift += 7 { 4337 if shift >= 64 { 4338 return ErrIntOverflowTasks 4339 } 4340 if iNdEx >= l { 4341 return io.ErrUnexpectedEOF 4342 } 4343 b := dAtA[iNdEx] 4344 iNdEx++ 4345 m.Pid |= uint32(b&0x7F) << shift 4346 if b < 0x80 { 4347 break 4348 } 4349 } 4350 default: 4351 iNdEx = preIndex 4352 skippy, err := skipTasks(dAtA[iNdEx:]) 4353 if err != nil { 4354 return err 4355 } 4356 if skippy < 0 { 4357 return ErrInvalidLengthTasks 4358 } 4359 if (iNdEx + skippy) < 0 { 4360 return ErrInvalidLengthTasks 4361 } 4362 if (iNdEx + skippy) > l { 4363 return io.ErrUnexpectedEOF 4364 } 4365 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4366 iNdEx += skippy 4367 } 4368 } 4369 4370 if iNdEx > l { 4371 return io.ErrUnexpectedEOF 4372 } 4373 return nil 4374 } 4375 func (m *DeleteTaskRequest) Unmarshal(dAtA []byte) error { 4376 l := len(dAtA) 4377 iNdEx := 0 4378 for iNdEx < l { 4379 preIndex := iNdEx 4380 var wire uint64 4381 for shift := uint(0); ; shift += 7 { 4382 if shift >= 64 { 4383 return ErrIntOverflowTasks 4384 } 4385 if iNdEx >= l { 4386 return io.ErrUnexpectedEOF 4387 } 4388 b := dAtA[iNdEx] 4389 iNdEx++ 4390 wire |= uint64(b&0x7F) << shift 4391 if b < 0x80 { 4392 break 4393 } 4394 } 4395 fieldNum := int32(wire >> 3) 4396 wireType := int(wire & 0x7) 4397 if wireType == 4 { 4398 return fmt.Errorf("proto: DeleteTaskRequest: wiretype end group for non-group") 4399 } 4400 if fieldNum <= 0 { 4401 return fmt.Errorf("proto: DeleteTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4402 } 4403 switch fieldNum { 4404 case 1: 4405 if wireType != 2 { 4406 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 4407 } 4408 var stringLen uint64 4409 for shift := uint(0); ; shift += 7 { 4410 if shift >= 64 { 4411 return ErrIntOverflowTasks 4412 } 4413 if iNdEx >= l { 4414 return io.ErrUnexpectedEOF 4415 } 4416 b := dAtA[iNdEx] 4417 iNdEx++ 4418 stringLen |= uint64(b&0x7F) << shift 4419 if b < 0x80 { 4420 break 4421 } 4422 } 4423 intStringLen := int(stringLen) 4424 if intStringLen < 0 { 4425 return ErrInvalidLengthTasks 4426 } 4427 postIndex := iNdEx + intStringLen 4428 if postIndex < 0 { 4429 return ErrInvalidLengthTasks 4430 } 4431 if postIndex > l { 4432 return io.ErrUnexpectedEOF 4433 } 4434 m.ContainerID = string(dAtA[iNdEx:postIndex]) 4435 iNdEx = postIndex 4436 default: 4437 iNdEx = preIndex 4438 skippy, err := skipTasks(dAtA[iNdEx:]) 4439 if err != nil { 4440 return err 4441 } 4442 if skippy < 0 { 4443 return ErrInvalidLengthTasks 4444 } 4445 if (iNdEx + skippy) < 0 { 4446 return ErrInvalidLengthTasks 4447 } 4448 if (iNdEx + skippy) > l { 4449 return io.ErrUnexpectedEOF 4450 } 4451 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4452 iNdEx += skippy 4453 } 4454 } 4455 4456 if iNdEx > l { 4457 return io.ErrUnexpectedEOF 4458 } 4459 return nil 4460 } 4461 func (m *DeleteResponse) Unmarshal(dAtA []byte) error { 4462 l := len(dAtA) 4463 iNdEx := 0 4464 for iNdEx < l { 4465 preIndex := iNdEx 4466 var wire uint64 4467 for shift := uint(0); ; shift += 7 { 4468 if shift >= 64 { 4469 return ErrIntOverflowTasks 4470 } 4471 if iNdEx >= l { 4472 return io.ErrUnexpectedEOF 4473 } 4474 b := dAtA[iNdEx] 4475 iNdEx++ 4476 wire |= uint64(b&0x7F) << shift 4477 if b < 0x80 { 4478 break 4479 } 4480 } 4481 fieldNum := int32(wire >> 3) 4482 wireType := int(wire & 0x7) 4483 if wireType == 4 { 4484 return fmt.Errorf("proto: DeleteResponse: wiretype end group for non-group") 4485 } 4486 if fieldNum <= 0 { 4487 return fmt.Errorf("proto: DeleteResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4488 } 4489 switch fieldNum { 4490 case 1: 4491 if wireType != 2 { 4492 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 4493 } 4494 var stringLen uint64 4495 for shift := uint(0); ; shift += 7 { 4496 if shift >= 64 { 4497 return ErrIntOverflowTasks 4498 } 4499 if iNdEx >= l { 4500 return io.ErrUnexpectedEOF 4501 } 4502 b := dAtA[iNdEx] 4503 iNdEx++ 4504 stringLen |= uint64(b&0x7F) << shift 4505 if b < 0x80 { 4506 break 4507 } 4508 } 4509 intStringLen := int(stringLen) 4510 if intStringLen < 0 { 4511 return ErrInvalidLengthTasks 4512 } 4513 postIndex := iNdEx + intStringLen 4514 if postIndex < 0 { 4515 return ErrInvalidLengthTasks 4516 } 4517 if postIndex > l { 4518 return io.ErrUnexpectedEOF 4519 } 4520 m.ID = string(dAtA[iNdEx:postIndex]) 4521 iNdEx = postIndex 4522 case 2: 4523 if wireType != 0 { 4524 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 4525 } 4526 m.Pid = 0 4527 for shift := uint(0); ; shift += 7 { 4528 if shift >= 64 { 4529 return ErrIntOverflowTasks 4530 } 4531 if iNdEx >= l { 4532 return io.ErrUnexpectedEOF 4533 } 4534 b := dAtA[iNdEx] 4535 iNdEx++ 4536 m.Pid |= uint32(b&0x7F) << shift 4537 if b < 0x80 { 4538 break 4539 } 4540 } 4541 case 3: 4542 if wireType != 0 { 4543 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 4544 } 4545 m.ExitStatus = 0 4546 for shift := uint(0); ; shift += 7 { 4547 if shift >= 64 { 4548 return ErrIntOverflowTasks 4549 } 4550 if iNdEx >= l { 4551 return io.ErrUnexpectedEOF 4552 } 4553 b := dAtA[iNdEx] 4554 iNdEx++ 4555 m.ExitStatus |= uint32(b&0x7F) << shift 4556 if b < 0x80 { 4557 break 4558 } 4559 } 4560 case 4: 4561 if wireType != 2 { 4562 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 4563 } 4564 var msglen int 4565 for shift := uint(0); ; shift += 7 { 4566 if shift >= 64 { 4567 return ErrIntOverflowTasks 4568 } 4569 if iNdEx >= l { 4570 return io.ErrUnexpectedEOF 4571 } 4572 b := dAtA[iNdEx] 4573 iNdEx++ 4574 msglen |= int(b&0x7F) << shift 4575 if b < 0x80 { 4576 break 4577 } 4578 } 4579 if msglen < 0 { 4580 return ErrInvalidLengthTasks 4581 } 4582 postIndex := iNdEx + msglen 4583 if postIndex < 0 { 4584 return ErrInvalidLengthTasks 4585 } 4586 if postIndex > l { 4587 return io.ErrUnexpectedEOF 4588 } 4589 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 4590 return err 4591 } 4592 iNdEx = postIndex 4593 default: 4594 iNdEx = preIndex 4595 skippy, err := skipTasks(dAtA[iNdEx:]) 4596 if err != nil { 4597 return err 4598 } 4599 if skippy < 0 { 4600 return ErrInvalidLengthTasks 4601 } 4602 if (iNdEx + skippy) < 0 { 4603 return ErrInvalidLengthTasks 4604 } 4605 if (iNdEx + skippy) > l { 4606 return io.ErrUnexpectedEOF 4607 } 4608 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4609 iNdEx += skippy 4610 } 4611 } 4612 4613 if iNdEx > l { 4614 return io.ErrUnexpectedEOF 4615 } 4616 return nil 4617 } 4618 func (m *DeleteProcessRequest) Unmarshal(dAtA []byte) error { 4619 l := len(dAtA) 4620 iNdEx := 0 4621 for iNdEx < l { 4622 preIndex := iNdEx 4623 var wire uint64 4624 for shift := uint(0); ; shift += 7 { 4625 if shift >= 64 { 4626 return ErrIntOverflowTasks 4627 } 4628 if iNdEx >= l { 4629 return io.ErrUnexpectedEOF 4630 } 4631 b := dAtA[iNdEx] 4632 iNdEx++ 4633 wire |= uint64(b&0x7F) << shift 4634 if b < 0x80 { 4635 break 4636 } 4637 } 4638 fieldNum := int32(wire >> 3) 4639 wireType := int(wire & 0x7) 4640 if wireType == 4 { 4641 return fmt.Errorf("proto: DeleteProcessRequest: wiretype end group for non-group") 4642 } 4643 if fieldNum <= 0 { 4644 return fmt.Errorf("proto: DeleteProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4645 } 4646 switch fieldNum { 4647 case 1: 4648 if wireType != 2 { 4649 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 4650 } 4651 var stringLen uint64 4652 for shift := uint(0); ; shift += 7 { 4653 if shift >= 64 { 4654 return ErrIntOverflowTasks 4655 } 4656 if iNdEx >= l { 4657 return io.ErrUnexpectedEOF 4658 } 4659 b := dAtA[iNdEx] 4660 iNdEx++ 4661 stringLen |= uint64(b&0x7F) << shift 4662 if b < 0x80 { 4663 break 4664 } 4665 } 4666 intStringLen := int(stringLen) 4667 if intStringLen < 0 { 4668 return ErrInvalidLengthTasks 4669 } 4670 postIndex := iNdEx + intStringLen 4671 if postIndex < 0 { 4672 return ErrInvalidLengthTasks 4673 } 4674 if postIndex > l { 4675 return io.ErrUnexpectedEOF 4676 } 4677 m.ContainerID = string(dAtA[iNdEx:postIndex]) 4678 iNdEx = postIndex 4679 case 2: 4680 if wireType != 2 { 4681 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4682 } 4683 var stringLen uint64 4684 for shift := uint(0); ; shift += 7 { 4685 if shift >= 64 { 4686 return ErrIntOverflowTasks 4687 } 4688 if iNdEx >= l { 4689 return io.ErrUnexpectedEOF 4690 } 4691 b := dAtA[iNdEx] 4692 iNdEx++ 4693 stringLen |= uint64(b&0x7F) << shift 4694 if b < 0x80 { 4695 break 4696 } 4697 } 4698 intStringLen := int(stringLen) 4699 if intStringLen < 0 { 4700 return ErrInvalidLengthTasks 4701 } 4702 postIndex := iNdEx + intStringLen 4703 if postIndex < 0 { 4704 return ErrInvalidLengthTasks 4705 } 4706 if postIndex > l { 4707 return io.ErrUnexpectedEOF 4708 } 4709 m.ExecID = string(dAtA[iNdEx:postIndex]) 4710 iNdEx = postIndex 4711 default: 4712 iNdEx = preIndex 4713 skippy, err := skipTasks(dAtA[iNdEx:]) 4714 if err != nil { 4715 return err 4716 } 4717 if skippy < 0 { 4718 return ErrInvalidLengthTasks 4719 } 4720 if (iNdEx + skippy) < 0 { 4721 return ErrInvalidLengthTasks 4722 } 4723 if (iNdEx + skippy) > l { 4724 return io.ErrUnexpectedEOF 4725 } 4726 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4727 iNdEx += skippy 4728 } 4729 } 4730 4731 if iNdEx > l { 4732 return io.ErrUnexpectedEOF 4733 } 4734 return nil 4735 } 4736 func (m *GetRequest) Unmarshal(dAtA []byte) error { 4737 l := len(dAtA) 4738 iNdEx := 0 4739 for iNdEx < l { 4740 preIndex := iNdEx 4741 var wire uint64 4742 for shift := uint(0); ; shift += 7 { 4743 if shift >= 64 { 4744 return ErrIntOverflowTasks 4745 } 4746 if iNdEx >= l { 4747 return io.ErrUnexpectedEOF 4748 } 4749 b := dAtA[iNdEx] 4750 iNdEx++ 4751 wire |= uint64(b&0x7F) << shift 4752 if b < 0x80 { 4753 break 4754 } 4755 } 4756 fieldNum := int32(wire >> 3) 4757 wireType := int(wire & 0x7) 4758 if wireType == 4 { 4759 return fmt.Errorf("proto: GetRequest: wiretype end group for non-group") 4760 } 4761 if fieldNum <= 0 { 4762 return fmt.Errorf("proto: GetRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4763 } 4764 switch fieldNum { 4765 case 1: 4766 if wireType != 2 { 4767 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 4768 } 4769 var stringLen uint64 4770 for shift := uint(0); ; shift += 7 { 4771 if shift >= 64 { 4772 return ErrIntOverflowTasks 4773 } 4774 if iNdEx >= l { 4775 return io.ErrUnexpectedEOF 4776 } 4777 b := dAtA[iNdEx] 4778 iNdEx++ 4779 stringLen |= uint64(b&0x7F) << shift 4780 if b < 0x80 { 4781 break 4782 } 4783 } 4784 intStringLen := int(stringLen) 4785 if intStringLen < 0 { 4786 return ErrInvalidLengthTasks 4787 } 4788 postIndex := iNdEx + intStringLen 4789 if postIndex < 0 { 4790 return ErrInvalidLengthTasks 4791 } 4792 if postIndex > l { 4793 return io.ErrUnexpectedEOF 4794 } 4795 m.ContainerID = string(dAtA[iNdEx:postIndex]) 4796 iNdEx = postIndex 4797 case 2: 4798 if wireType != 2 { 4799 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 4800 } 4801 var stringLen uint64 4802 for shift := uint(0); ; shift += 7 { 4803 if shift >= 64 { 4804 return ErrIntOverflowTasks 4805 } 4806 if iNdEx >= l { 4807 return io.ErrUnexpectedEOF 4808 } 4809 b := dAtA[iNdEx] 4810 iNdEx++ 4811 stringLen |= uint64(b&0x7F) << shift 4812 if b < 0x80 { 4813 break 4814 } 4815 } 4816 intStringLen := int(stringLen) 4817 if intStringLen < 0 { 4818 return ErrInvalidLengthTasks 4819 } 4820 postIndex := iNdEx + intStringLen 4821 if postIndex < 0 { 4822 return ErrInvalidLengthTasks 4823 } 4824 if postIndex > l { 4825 return io.ErrUnexpectedEOF 4826 } 4827 m.ExecID = string(dAtA[iNdEx:postIndex]) 4828 iNdEx = postIndex 4829 default: 4830 iNdEx = preIndex 4831 skippy, err := skipTasks(dAtA[iNdEx:]) 4832 if err != nil { 4833 return err 4834 } 4835 if skippy < 0 { 4836 return ErrInvalidLengthTasks 4837 } 4838 if (iNdEx + skippy) < 0 { 4839 return ErrInvalidLengthTasks 4840 } 4841 if (iNdEx + skippy) > l { 4842 return io.ErrUnexpectedEOF 4843 } 4844 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4845 iNdEx += skippy 4846 } 4847 } 4848 4849 if iNdEx > l { 4850 return io.ErrUnexpectedEOF 4851 } 4852 return nil 4853 } 4854 func (m *GetResponse) Unmarshal(dAtA []byte) error { 4855 l := len(dAtA) 4856 iNdEx := 0 4857 for iNdEx < l { 4858 preIndex := iNdEx 4859 var wire uint64 4860 for shift := uint(0); ; shift += 7 { 4861 if shift >= 64 { 4862 return ErrIntOverflowTasks 4863 } 4864 if iNdEx >= l { 4865 return io.ErrUnexpectedEOF 4866 } 4867 b := dAtA[iNdEx] 4868 iNdEx++ 4869 wire |= uint64(b&0x7F) << shift 4870 if b < 0x80 { 4871 break 4872 } 4873 } 4874 fieldNum := int32(wire >> 3) 4875 wireType := int(wire & 0x7) 4876 if wireType == 4 { 4877 return fmt.Errorf("proto: GetResponse: wiretype end group for non-group") 4878 } 4879 if fieldNum <= 0 { 4880 return fmt.Errorf("proto: GetResponse: illegal tag %d (wire type %d)", fieldNum, wire) 4881 } 4882 switch fieldNum { 4883 case 1: 4884 if wireType != 2 { 4885 return fmt.Errorf("proto: wrong wireType = %d for field Process", wireType) 4886 } 4887 var msglen int 4888 for shift := uint(0); ; shift += 7 { 4889 if shift >= 64 { 4890 return ErrIntOverflowTasks 4891 } 4892 if iNdEx >= l { 4893 return io.ErrUnexpectedEOF 4894 } 4895 b := dAtA[iNdEx] 4896 iNdEx++ 4897 msglen |= int(b&0x7F) << shift 4898 if b < 0x80 { 4899 break 4900 } 4901 } 4902 if msglen < 0 { 4903 return ErrInvalidLengthTasks 4904 } 4905 postIndex := iNdEx + msglen 4906 if postIndex < 0 { 4907 return ErrInvalidLengthTasks 4908 } 4909 if postIndex > l { 4910 return io.ErrUnexpectedEOF 4911 } 4912 if m.Process == nil { 4913 m.Process = &task.Process{} 4914 } 4915 if err := m.Process.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 4916 return err 4917 } 4918 iNdEx = postIndex 4919 default: 4920 iNdEx = preIndex 4921 skippy, err := skipTasks(dAtA[iNdEx:]) 4922 if err != nil { 4923 return err 4924 } 4925 if skippy < 0 { 4926 return ErrInvalidLengthTasks 4927 } 4928 if (iNdEx + skippy) < 0 { 4929 return ErrInvalidLengthTasks 4930 } 4931 if (iNdEx + skippy) > l { 4932 return io.ErrUnexpectedEOF 4933 } 4934 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 4935 iNdEx += skippy 4936 } 4937 } 4938 4939 if iNdEx > l { 4940 return io.ErrUnexpectedEOF 4941 } 4942 return nil 4943 } 4944 func (m *ListTasksRequest) Unmarshal(dAtA []byte) error { 4945 l := len(dAtA) 4946 iNdEx := 0 4947 for iNdEx < l { 4948 preIndex := iNdEx 4949 var wire uint64 4950 for shift := uint(0); ; shift += 7 { 4951 if shift >= 64 { 4952 return ErrIntOverflowTasks 4953 } 4954 if iNdEx >= l { 4955 return io.ErrUnexpectedEOF 4956 } 4957 b := dAtA[iNdEx] 4958 iNdEx++ 4959 wire |= uint64(b&0x7F) << shift 4960 if b < 0x80 { 4961 break 4962 } 4963 } 4964 fieldNum := int32(wire >> 3) 4965 wireType := int(wire & 0x7) 4966 if wireType == 4 { 4967 return fmt.Errorf("proto: ListTasksRequest: wiretype end group for non-group") 4968 } 4969 if fieldNum <= 0 { 4970 return fmt.Errorf("proto: ListTasksRequest: illegal tag %d (wire type %d)", fieldNum, wire) 4971 } 4972 switch fieldNum { 4973 case 1: 4974 if wireType != 2 { 4975 return fmt.Errorf("proto: wrong wireType = %d for field Filter", wireType) 4976 } 4977 var stringLen uint64 4978 for shift := uint(0); ; shift += 7 { 4979 if shift >= 64 { 4980 return ErrIntOverflowTasks 4981 } 4982 if iNdEx >= l { 4983 return io.ErrUnexpectedEOF 4984 } 4985 b := dAtA[iNdEx] 4986 iNdEx++ 4987 stringLen |= uint64(b&0x7F) << shift 4988 if b < 0x80 { 4989 break 4990 } 4991 } 4992 intStringLen := int(stringLen) 4993 if intStringLen < 0 { 4994 return ErrInvalidLengthTasks 4995 } 4996 postIndex := iNdEx + intStringLen 4997 if postIndex < 0 { 4998 return ErrInvalidLengthTasks 4999 } 5000 if postIndex > l { 5001 return io.ErrUnexpectedEOF 5002 } 5003 m.Filter = string(dAtA[iNdEx:postIndex]) 5004 iNdEx = postIndex 5005 default: 5006 iNdEx = preIndex 5007 skippy, err := skipTasks(dAtA[iNdEx:]) 5008 if err != nil { 5009 return err 5010 } 5011 if skippy < 0 { 5012 return ErrInvalidLengthTasks 5013 } 5014 if (iNdEx + skippy) < 0 { 5015 return ErrInvalidLengthTasks 5016 } 5017 if (iNdEx + skippy) > l { 5018 return io.ErrUnexpectedEOF 5019 } 5020 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5021 iNdEx += skippy 5022 } 5023 } 5024 5025 if iNdEx > l { 5026 return io.ErrUnexpectedEOF 5027 } 5028 return nil 5029 } 5030 func (m *ListTasksResponse) Unmarshal(dAtA []byte) error { 5031 l := len(dAtA) 5032 iNdEx := 0 5033 for iNdEx < l { 5034 preIndex := iNdEx 5035 var wire uint64 5036 for shift := uint(0); ; shift += 7 { 5037 if shift >= 64 { 5038 return ErrIntOverflowTasks 5039 } 5040 if iNdEx >= l { 5041 return io.ErrUnexpectedEOF 5042 } 5043 b := dAtA[iNdEx] 5044 iNdEx++ 5045 wire |= uint64(b&0x7F) << shift 5046 if b < 0x80 { 5047 break 5048 } 5049 } 5050 fieldNum := int32(wire >> 3) 5051 wireType := int(wire & 0x7) 5052 if wireType == 4 { 5053 return fmt.Errorf("proto: ListTasksResponse: wiretype end group for non-group") 5054 } 5055 if fieldNum <= 0 { 5056 return fmt.Errorf("proto: ListTasksResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5057 } 5058 switch fieldNum { 5059 case 1: 5060 if wireType != 2 { 5061 return fmt.Errorf("proto: wrong wireType = %d for field Tasks", wireType) 5062 } 5063 var msglen int 5064 for shift := uint(0); ; shift += 7 { 5065 if shift >= 64 { 5066 return ErrIntOverflowTasks 5067 } 5068 if iNdEx >= l { 5069 return io.ErrUnexpectedEOF 5070 } 5071 b := dAtA[iNdEx] 5072 iNdEx++ 5073 msglen |= int(b&0x7F) << shift 5074 if b < 0x80 { 5075 break 5076 } 5077 } 5078 if msglen < 0 { 5079 return ErrInvalidLengthTasks 5080 } 5081 postIndex := iNdEx + msglen 5082 if postIndex < 0 { 5083 return ErrInvalidLengthTasks 5084 } 5085 if postIndex > l { 5086 return io.ErrUnexpectedEOF 5087 } 5088 m.Tasks = append(m.Tasks, &task.Process{}) 5089 if err := m.Tasks[len(m.Tasks)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5090 return err 5091 } 5092 iNdEx = postIndex 5093 default: 5094 iNdEx = preIndex 5095 skippy, err := skipTasks(dAtA[iNdEx:]) 5096 if err != nil { 5097 return err 5098 } 5099 if skippy < 0 { 5100 return ErrInvalidLengthTasks 5101 } 5102 if (iNdEx + skippy) < 0 { 5103 return ErrInvalidLengthTasks 5104 } 5105 if (iNdEx + skippy) > l { 5106 return io.ErrUnexpectedEOF 5107 } 5108 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5109 iNdEx += skippy 5110 } 5111 } 5112 5113 if iNdEx > l { 5114 return io.ErrUnexpectedEOF 5115 } 5116 return nil 5117 } 5118 func (m *KillRequest) Unmarshal(dAtA []byte) error { 5119 l := len(dAtA) 5120 iNdEx := 0 5121 for iNdEx < l { 5122 preIndex := iNdEx 5123 var wire uint64 5124 for shift := uint(0); ; shift += 7 { 5125 if shift >= 64 { 5126 return ErrIntOverflowTasks 5127 } 5128 if iNdEx >= l { 5129 return io.ErrUnexpectedEOF 5130 } 5131 b := dAtA[iNdEx] 5132 iNdEx++ 5133 wire |= uint64(b&0x7F) << shift 5134 if b < 0x80 { 5135 break 5136 } 5137 } 5138 fieldNum := int32(wire >> 3) 5139 wireType := int(wire & 0x7) 5140 if wireType == 4 { 5141 return fmt.Errorf("proto: KillRequest: wiretype end group for non-group") 5142 } 5143 if fieldNum <= 0 { 5144 return fmt.Errorf("proto: KillRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5145 } 5146 switch fieldNum { 5147 case 1: 5148 if wireType != 2 { 5149 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 5150 } 5151 var stringLen uint64 5152 for shift := uint(0); ; shift += 7 { 5153 if shift >= 64 { 5154 return ErrIntOverflowTasks 5155 } 5156 if iNdEx >= l { 5157 return io.ErrUnexpectedEOF 5158 } 5159 b := dAtA[iNdEx] 5160 iNdEx++ 5161 stringLen |= uint64(b&0x7F) << shift 5162 if b < 0x80 { 5163 break 5164 } 5165 } 5166 intStringLen := int(stringLen) 5167 if intStringLen < 0 { 5168 return ErrInvalidLengthTasks 5169 } 5170 postIndex := iNdEx + intStringLen 5171 if postIndex < 0 { 5172 return ErrInvalidLengthTasks 5173 } 5174 if postIndex > l { 5175 return io.ErrUnexpectedEOF 5176 } 5177 m.ContainerID = string(dAtA[iNdEx:postIndex]) 5178 iNdEx = postIndex 5179 case 2: 5180 if wireType != 2 { 5181 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5182 } 5183 var stringLen uint64 5184 for shift := uint(0); ; shift += 7 { 5185 if shift >= 64 { 5186 return ErrIntOverflowTasks 5187 } 5188 if iNdEx >= l { 5189 return io.ErrUnexpectedEOF 5190 } 5191 b := dAtA[iNdEx] 5192 iNdEx++ 5193 stringLen |= uint64(b&0x7F) << shift 5194 if b < 0x80 { 5195 break 5196 } 5197 } 5198 intStringLen := int(stringLen) 5199 if intStringLen < 0 { 5200 return ErrInvalidLengthTasks 5201 } 5202 postIndex := iNdEx + intStringLen 5203 if postIndex < 0 { 5204 return ErrInvalidLengthTasks 5205 } 5206 if postIndex > l { 5207 return io.ErrUnexpectedEOF 5208 } 5209 m.ExecID = string(dAtA[iNdEx:postIndex]) 5210 iNdEx = postIndex 5211 case 3: 5212 if wireType != 0 { 5213 return fmt.Errorf("proto: wrong wireType = %d for field Signal", wireType) 5214 } 5215 m.Signal = 0 5216 for shift := uint(0); ; shift += 7 { 5217 if shift >= 64 { 5218 return ErrIntOverflowTasks 5219 } 5220 if iNdEx >= l { 5221 return io.ErrUnexpectedEOF 5222 } 5223 b := dAtA[iNdEx] 5224 iNdEx++ 5225 m.Signal |= uint32(b&0x7F) << shift 5226 if b < 0x80 { 5227 break 5228 } 5229 } 5230 case 4: 5231 if wireType != 0 { 5232 return fmt.Errorf("proto: wrong wireType = %d for field All", wireType) 5233 } 5234 var v int 5235 for shift := uint(0); ; shift += 7 { 5236 if shift >= 64 { 5237 return ErrIntOverflowTasks 5238 } 5239 if iNdEx >= l { 5240 return io.ErrUnexpectedEOF 5241 } 5242 b := dAtA[iNdEx] 5243 iNdEx++ 5244 v |= int(b&0x7F) << shift 5245 if b < 0x80 { 5246 break 5247 } 5248 } 5249 m.All = bool(v != 0) 5250 default: 5251 iNdEx = preIndex 5252 skippy, err := skipTasks(dAtA[iNdEx:]) 5253 if err != nil { 5254 return err 5255 } 5256 if skippy < 0 { 5257 return ErrInvalidLengthTasks 5258 } 5259 if (iNdEx + skippy) < 0 { 5260 return ErrInvalidLengthTasks 5261 } 5262 if (iNdEx + skippy) > l { 5263 return io.ErrUnexpectedEOF 5264 } 5265 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5266 iNdEx += skippy 5267 } 5268 } 5269 5270 if iNdEx > l { 5271 return io.ErrUnexpectedEOF 5272 } 5273 return nil 5274 } 5275 func (m *ExecProcessRequest) Unmarshal(dAtA []byte) error { 5276 l := len(dAtA) 5277 iNdEx := 0 5278 for iNdEx < l { 5279 preIndex := iNdEx 5280 var wire uint64 5281 for shift := uint(0); ; shift += 7 { 5282 if shift >= 64 { 5283 return ErrIntOverflowTasks 5284 } 5285 if iNdEx >= l { 5286 return io.ErrUnexpectedEOF 5287 } 5288 b := dAtA[iNdEx] 5289 iNdEx++ 5290 wire |= uint64(b&0x7F) << shift 5291 if b < 0x80 { 5292 break 5293 } 5294 } 5295 fieldNum := int32(wire >> 3) 5296 wireType := int(wire & 0x7) 5297 if wireType == 4 { 5298 return fmt.Errorf("proto: ExecProcessRequest: wiretype end group for non-group") 5299 } 5300 if fieldNum <= 0 { 5301 return fmt.Errorf("proto: ExecProcessRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5302 } 5303 switch fieldNum { 5304 case 1: 5305 if wireType != 2 { 5306 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 5307 } 5308 var stringLen uint64 5309 for shift := uint(0); ; shift += 7 { 5310 if shift >= 64 { 5311 return ErrIntOverflowTasks 5312 } 5313 if iNdEx >= l { 5314 return io.ErrUnexpectedEOF 5315 } 5316 b := dAtA[iNdEx] 5317 iNdEx++ 5318 stringLen |= uint64(b&0x7F) << shift 5319 if b < 0x80 { 5320 break 5321 } 5322 } 5323 intStringLen := int(stringLen) 5324 if intStringLen < 0 { 5325 return ErrInvalidLengthTasks 5326 } 5327 postIndex := iNdEx + intStringLen 5328 if postIndex < 0 { 5329 return ErrInvalidLengthTasks 5330 } 5331 if postIndex > l { 5332 return io.ErrUnexpectedEOF 5333 } 5334 m.ContainerID = string(dAtA[iNdEx:postIndex]) 5335 iNdEx = postIndex 5336 case 2: 5337 if wireType != 2 { 5338 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 5339 } 5340 var stringLen uint64 5341 for shift := uint(0); ; shift += 7 { 5342 if shift >= 64 { 5343 return ErrIntOverflowTasks 5344 } 5345 if iNdEx >= l { 5346 return io.ErrUnexpectedEOF 5347 } 5348 b := dAtA[iNdEx] 5349 iNdEx++ 5350 stringLen |= uint64(b&0x7F) << shift 5351 if b < 0x80 { 5352 break 5353 } 5354 } 5355 intStringLen := int(stringLen) 5356 if intStringLen < 0 { 5357 return ErrInvalidLengthTasks 5358 } 5359 postIndex := iNdEx + intStringLen 5360 if postIndex < 0 { 5361 return ErrInvalidLengthTasks 5362 } 5363 if postIndex > l { 5364 return io.ErrUnexpectedEOF 5365 } 5366 m.Stdin = string(dAtA[iNdEx:postIndex]) 5367 iNdEx = postIndex 5368 case 3: 5369 if wireType != 2 { 5370 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 5371 } 5372 var stringLen uint64 5373 for shift := uint(0); ; shift += 7 { 5374 if shift >= 64 { 5375 return ErrIntOverflowTasks 5376 } 5377 if iNdEx >= l { 5378 return io.ErrUnexpectedEOF 5379 } 5380 b := dAtA[iNdEx] 5381 iNdEx++ 5382 stringLen |= uint64(b&0x7F) << shift 5383 if b < 0x80 { 5384 break 5385 } 5386 } 5387 intStringLen := int(stringLen) 5388 if intStringLen < 0 { 5389 return ErrInvalidLengthTasks 5390 } 5391 postIndex := iNdEx + intStringLen 5392 if postIndex < 0 { 5393 return ErrInvalidLengthTasks 5394 } 5395 if postIndex > l { 5396 return io.ErrUnexpectedEOF 5397 } 5398 m.Stdout = string(dAtA[iNdEx:postIndex]) 5399 iNdEx = postIndex 5400 case 4: 5401 if wireType != 2 { 5402 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 5403 } 5404 var stringLen uint64 5405 for shift := uint(0); ; shift += 7 { 5406 if shift >= 64 { 5407 return ErrIntOverflowTasks 5408 } 5409 if iNdEx >= l { 5410 return io.ErrUnexpectedEOF 5411 } 5412 b := dAtA[iNdEx] 5413 iNdEx++ 5414 stringLen |= uint64(b&0x7F) << shift 5415 if b < 0x80 { 5416 break 5417 } 5418 } 5419 intStringLen := int(stringLen) 5420 if intStringLen < 0 { 5421 return ErrInvalidLengthTasks 5422 } 5423 postIndex := iNdEx + intStringLen 5424 if postIndex < 0 { 5425 return ErrInvalidLengthTasks 5426 } 5427 if postIndex > l { 5428 return io.ErrUnexpectedEOF 5429 } 5430 m.Stderr = string(dAtA[iNdEx:postIndex]) 5431 iNdEx = postIndex 5432 case 5: 5433 if wireType != 0 { 5434 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 5435 } 5436 var v int 5437 for shift := uint(0); ; shift += 7 { 5438 if shift >= 64 { 5439 return ErrIntOverflowTasks 5440 } 5441 if iNdEx >= l { 5442 return io.ErrUnexpectedEOF 5443 } 5444 b := dAtA[iNdEx] 5445 iNdEx++ 5446 v |= int(b&0x7F) << shift 5447 if b < 0x80 { 5448 break 5449 } 5450 } 5451 m.Terminal = bool(v != 0) 5452 case 6: 5453 if wireType != 2 { 5454 return fmt.Errorf("proto: wrong wireType = %d for field Spec", wireType) 5455 } 5456 var msglen int 5457 for shift := uint(0); ; shift += 7 { 5458 if shift >= 64 { 5459 return ErrIntOverflowTasks 5460 } 5461 if iNdEx >= l { 5462 return io.ErrUnexpectedEOF 5463 } 5464 b := dAtA[iNdEx] 5465 iNdEx++ 5466 msglen |= int(b&0x7F) << shift 5467 if b < 0x80 { 5468 break 5469 } 5470 } 5471 if msglen < 0 { 5472 return ErrInvalidLengthTasks 5473 } 5474 postIndex := iNdEx + msglen 5475 if postIndex < 0 { 5476 return ErrInvalidLengthTasks 5477 } 5478 if postIndex > l { 5479 return io.ErrUnexpectedEOF 5480 } 5481 if m.Spec == nil { 5482 m.Spec = &types1.Any{} 5483 } 5484 if err := m.Spec.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 5485 return err 5486 } 5487 iNdEx = postIndex 5488 case 7: 5489 if wireType != 2 { 5490 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5491 } 5492 var stringLen uint64 5493 for shift := uint(0); ; shift += 7 { 5494 if shift >= 64 { 5495 return ErrIntOverflowTasks 5496 } 5497 if iNdEx >= l { 5498 return io.ErrUnexpectedEOF 5499 } 5500 b := dAtA[iNdEx] 5501 iNdEx++ 5502 stringLen |= uint64(b&0x7F) << shift 5503 if b < 0x80 { 5504 break 5505 } 5506 } 5507 intStringLen := int(stringLen) 5508 if intStringLen < 0 { 5509 return ErrInvalidLengthTasks 5510 } 5511 postIndex := iNdEx + intStringLen 5512 if postIndex < 0 { 5513 return ErrInvalidLengthTasks 5514 } 5515 if postIndex > l { 5516 return io.ErrUnexpectedEOF 5517 } 5518 m.ExecID = string(dAtA[iNdEx:postIndex]) 5519 iNdEx = postIndex 5520 default: 5521 iNdEx = preIndex 5522 skippy, err := skipTasks(dAtA[iNdEx:]) 5523 if err != nil { 5524 return err 5525 } 5526 if skippy < 0 { 5527 return ErrInvalidLengthTasks 5528 } 5529 if (iNdEx + skippy) < 0 { 5530 return ErrInvalidLengthTasks 5531 } 5532 if (iNdEx + skippy) > l { 5533 return io.ErrUnexpectedEOF 5534 } 5535 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5536 iNdEx += skippy 5537 } 5538 } 5539 5540 if iNdEx > l { 5541 return io.ErrUnexpectedEOF 5542 } 5543 return nil 5544 } 5545 func (m *ExecProcessResponse) Unmarshal(dAtA []byte) error { 5546 l := len(dAtA) 5547 iNdEx := 0 5548 for iNdEx < l { 5549 preIndex := iNdEx 5550 var wire uint64 5551 for shift := uint(0); ; shift += 7 { 5552 if shift >= 64 { 5553 return ErrIntOverflowTasks 5554 } 5555 if iNdEx >= l { 5556 return io.ErrUnexpectedEOF 5557 } 5558 b := dAtA[iNdEx] 5559 iNdEx++ 5560 wire |= uint64(b&0x7F) << shift 5561 if b < 0x80 { 5562 break 5563 } 5564 } 5565 fieldNum := int32(wire >> 3) 5566 wireType := int(wire & 0x7) 5567 if wireType == 4 { 5568 return fmt.Errorf("proto: ExecProcessResponse: wiretype end group for non-group") 5569 } 5570 if fieldNum <= 0 { 5571 return fmt.Errorf("proto: ExecProcessResponse: illegal tag %d (wire type %d)", fieldNum, wire) 5572 } 5573 switch fieldNum { 5574 default: 5575 iNdEx = preIndex 5576 skippy, err := skipTasks(dAtA[iNdEx:]) 5577 if err != nil { 5578 return err 5579 } 5580 if skippy < 0 { 5581 return ErrInvalidLengthTasks 5582 } 5583 if (iNdEx + skippy) < 0 { 5584 return ErrInvalidLengthTasks 5585 } 5586 if (iNdEx + skippy) > l { 5587 return io.ErrUnexpectedEOF 5588 } 5589 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5590 iNdEx += skippy 5591 } 5592 } 5593 5594 if iNdEx > l { 5595 return io.ErrUnexpectedEOF 5596 } 5597 return nil 5598 } 5599 func (m *ResizePtyRequest) Unmarshal(dAtA []byte) error { 5600 l := len(dAtA) 5601 iNdEx := 0 5602 for iNdEx < l { 5603 preIndex := iNdEx 5604 var wire uint64 5605 for shift := uint(0); ; shift += 7 { 5606 if shift >= 64 { 5607 return ErrIntOverflowTasks 5608 } 5609 if iNdEx >= l { 5610 return io.ErrUnexpectedEOF 5611 } 5612 b := dAtA[iNdEx] 5613 iNdEx++ 5614 wire |= uint64(b&0x7F) << shift 5615 if b < 0x80 { 5616 break 5617 } 5618 } 5619 fieldNum := int32(wire >> 3) 5620 wireType := int(wire & 0x7) 5621 if wireType == 4 { 5622 return fmt.Errorf("proto: ResizePtyRequest: wiretype end group for non-group") 5623 } 5624 if fieldNum <= 0 { 5625 return fmt.Errorf("proto: ResizePtyRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5626 } 5627 switch fieldNum { 5628 case 1: 5629 if wireType != 2 { 5630 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 5631 } 5632 var stringLen uint64 5633 for shift := uint(0); ; shift += 7 { 5634 if shift >= 64 { 5635 return ErrIntOverflowTasks 5636 } 5637 if iNdEx >= l { 5638 return io.ErrUnexpectedEOF 5639 } 5640 b := dAtA[iNdEx] 5641 iNdEx++ 5642 stringLen |= uint64(b&0x7F) << shift 5643 if b < 0x80 { 5644 break 5645 } 5646 } 5647 intStringLen := int(stringLen) 5648 if intStringLen < 0 { 5649 return ErrInvalidLengthTasks 5650 } 5651 postIndex := iNdEx + intStringLen 5652 if postIndex < 0 { 5653 return ErrInvalidLengthTasks 5654 } 5655 if postIndex > l { 5656 return io.ErrUnexpectedEOF 5657 } 5658 m.ContainerID = string(dAtA[iNdEx:postIndex]) 5659 iNdEx = postIndex 5660 case 2: 5661 if wireType != 2 { 5662 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5663 } 5664 var stringLen uint64 5665 for shift := uint(0); ; shift += 7 { 5666 if shift >= 64 { 5667 return ErrIntOverflowTasks 5668 } 5669 if iNdEx >= l { 5670 return io.ErrUnexpectedEOF 5671 } 5672 b := dAtA[iNdEx] 5673 iNdEx++ 5674 stringLen |= uint64(b&0x7F) << shift 5675 if b < 0x80 { 5676 break 5677 } 5678 } 5679 intStringLen := int(stringLen) 5680 if intStringLen < 0 { 5681 return ErrInvalidLengthTasks 5682 } 5683 postIndex := iNdEx + intStringLen 5684 if postIndex < 0 { 5685 return ErrInvalidLengthTasks 5686 } 5687 if postIndex > l { 5688 return io.ErrUnexpectedEOF 5689 } 5690 m.ExecID = string(dAtA[iNdEx:postIndex]) 5691 iNdEx = postIndex 5692 case 3: 5693 if wireType != 0 { 5694 return fmt.Errorf("proto: wrong wireType = %d for field Width", wireType) 5695 } 5696 m.Width = 0 5697 for shift := uint(0); ; shift += 7 { 5698 if shift >= 64 { 5699 return ErrIntOverflowTasks 5700 } 5701 if iNdEx >= l { 5702 return io.ErrUnexpectedEOF 5703 } 5704 b := dAtA[iNdEx] 5705 iNdEx++ 5706 m.Width |= uint32(b&0x7F) << shift 5707 if b < 0x80 { 5708 break 5709 } 5710 } 5711 case 4: 5712 if wireType != 0 { 5713 return fmt.Errorf("proto: wrong wireType = %d for field Height", wireType) 5714 } 5715 m.Height = 0 5716 for shift := uint(0); ; shift += 7 { 5717 if shift >= 64 { 5718 return ErrIntOverflowTasks 5719 } 5720 if iNdEx >= l { 5721 return io.ErrUnexpectedEOF 5722 } 5723 b := dAtA[iNdEx] 5724 iNdEx++ 5725 m.Height |= uint32(b&0x7F) << shift 5726 if b < 0x80 { 5727 break 5728 } 5729 } 5730 default: 5731 iNdEx = preIndex 5732 skippy, err := skipTasks(dAtA[iNdEx:]) 5733 if err != nil { 5734 return err 5735 } 5736 if skippy < 0 { 5737 return ErrInvalidLengthTasks 5738 } 5739 if (iNdEx + skippy) < 0 { 5740 return ErrInvalidLengthTasks 5741 } 5742 if (iNdEx + skippy) > l { 5743 return io.ErrUnexpectedEOF 5744 } 5745 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5746 iNdEx += skippy 5747 } 5748 } 5749 5750 if iNdEx > l { 5751 return io.ErrUnexpectedEOF 5752 } 5753 return nil 5754 } 5755 func (m *CloseIORequest) Unmarshal(dAtA []byte) error { 5756 l := len(dAtA) 5757 iNdEx := 0 5758 for iNdEx < l { 5759 preIndex := iNdEx 5760 var wire uint64 5761 for shift := uint(0); ; shift += 7 { 5762 if shift >= 64 { 5763 return ErrIntOverflowTasks 5764 } 5765 if iNdEx >= l { 5766 return io.ErrUnexpectedEOF 5767 } 5768 b := dAtA[iNdEx] 5769 iNdEx++ 5770 wire |= uint64(b&0x7F) << shift 5771 if b < 0x80 { 5772 break 5773 } 5774 } 5775 fieldNum := int32(wire >> 3) 5776 wireType := int(wire & 0x7) 5777 if wireType == 4 { 5778 return fmt.Errorf("proto: CloseIORequest: wiretype end group for non-group") 5779 } 5780 if fieldNum <= 0 { 5781 return fmt.Errorf("proto: CloseIORequest: illegal tag %d (wire type %d)", fieldNum, wire) 5782 } 5783 switch fieldNum { 5784 case 1: 5785 if wireType != 2 { 5786 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 5787 } 5788 var stringLen uint64 5789 for shift := uint(0); ; shift += 7 { 5790 if shift >= 64 { 5791 return ErrIntOverflowTasks 5792 } 5793 if iNdEx >= l { 5794 return io.ErrUnexpectedEOF 5795 } 5796 b := dAtA[iNdEx] 5797 iNdEx++ 5798 stringLen |= uint64(b&0x7F) << shift 5799 if b < 0x80 { 5800 break 5801 } 5802 } 5803 intStringLen := int(stringLen) 5804 if intStringLen < 0 { 5805 return ErrInvalidLengthTasks 5806 } 5807 postIndex := iNdEx + intStringLen 5808 if postIndex < 0 { 5809 return ErrInvalidLengthTasks 5810 } 5811 if postIndex > l { 5812 return io.ErrUnexpectedEOF 5813 } 5814 m.ContainerID = string(dAtA[iNdEx:postIndex]) 5815 iNdEx = postIndex 5816 case 2: 5817 if wireType != 2 { 5818 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 5819 } 5820 var stringLen uint64 5821 for shift := uint(0); ; shift += 7 { 5822 if shift >= 64 { 5823 return ErrIntOverflowTasks 5824 } 5825 if iNdEx >= l { 5826 return io.ErrUnexpectedEOF 5827 } 5828 b := dAtA[iNdEx] 5829 iNdEx++ 5830 stringLen |= uint64(b&0x7F) << shift 5831 if b < 0x80 { 5832 break 5833 } 5834 } 5835 intStringLen := int(stringLen) 5836 if intStringLen < 0 { 5837 return ErrInvalidLengthTasks 5838 } 5839 postIndex := iNdEx + intStringLen 5840 if postIndex < 0 { 5841 return ErrInvalidLengthTasks 5842 } 5843 if postIndex > l { 5844 return io.ErrUnexpectedEOF 5845 } 5846 m.ExecID = string(dAtA[iNdEx:postIndex]) 5847 iNdEx = postIndex 5848 case 3: 5849 if wireType != 0 { 5850 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 5851 } 5852 var v int 5853 for shift := uint(0); ; shift += 7 { 5854 if shift >= 64 { 5855 return ErrIntOverflowTasks 5856 } 5857 if iNdEx >= l { 5858 return io.ErrUnexpectedEOF 5859 } 5860 b := dAtA[iNdEx] 5861 iNdEx++ 5862 v |= int(b&0x7F) << shift 5863 if b < 0x80 { 5864 break 5865 } 5866 } 5867 m.Stdin = bool(v != 0) 5868 default: 5869 iNdEx = preIndex 5870 skippy, err := skipTasks(dAtA[iNdEx:]) 5871 if err != nil { 5872 return err 5873 } 5874 if skippy < 0 { 5875 return ErrInvalidLengthTasks 5876 } 5877 if (iNdEx + skippy) < 0 { 5878 return ErrInvalidLengthTasks 5879 } 5880 if (iNdEx + skippy) > l { 5881 return io.ErrUnexpectedEOF 5882 } 5883 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5884 iNdEx += skippy 5885 } 5886 } 5887 5888 if iNdEx > l { 5889 return io.ErrUnexpectedEOF 5890 } 5891 return nil 5892 } 5893 func (m *PauseTaskRequest) Unmarshal(dAtA []byte) error { 5894 l := len(dAtA) 5895 iNdEx := 0 5896 for iNdEx < l { 5897 preIndex := iNdEx 5898 var wire uint64 5899 for shift := uint(0); ; shift += 7 { 5900 if shift >= 64 { 5901 return ErrIntOverflowTasks 5902 } 5903 if iNdEx >= l { 5904 return io.ErrUnexpectedEOF 5905 } 5906 b := dAtA[iNdEx] 5907 iNdEx++ 5908 wire |= uint64(b&0x7F) << shift 5909 if b < 0x80 { 5910 break 5911 } 5912 } 5913 fieldNum := int32(wire >> 3) 5914 wireType := int(wire & 0x7) 5915 if wireType == 4 { 5916 return fmt.Errorf("proto: PauseTaskRequest: wiretype end group for non-group") 5917 } 5918 if fieldNum <= 0 { 5919 return fmt.Errorf("proto: PauseTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 5920 } 5921 switch fieldNum { 5922 case 1: 5923 if wireType != 2 { 5924 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 5925 } 5926 var stringLen uint64 5927 for shift := uint(0); ; shift += 7 { 5928 if shift >= 64 { 5929 return ErrIntOverflowTasks 5930 } 5931 if iNdEx >= l { 5932 return io.ErrUnexpectedEOF 5933 } 5934 b := dAtA[iNdEx] 5935 iNdEx++ 5936 stringLen |= uint64(b&0x7F) << shift 5937 if b < 0x80 { 5938 break 5939 } 5940 } 5941 intStringLen := int(stringLen) 5942 if intStringLen < 0 { 5943 return ErrInvalidLengthTasks 5944 } 5945 postIndex := iNdEx + intStringLen 5946 if postIndex < 0 { 5947 return ErrInvalidLengthTasks 5948 } 5949 if postIndex > l { 5950 return io.ErrUnexpectedEOF 5951 } 5952 m.ContainerID = string(dAtA[iNdEx:postIndex]) 5953 iNdEx = postIndex 5954 default: 5955 iNdEx = preIndex 5956 skippy, err := skipTasks(dAtA[iNdEx:]) 5957 if err != nil { 5958 return err 5959 } 5960 if skippy < 0 { 5961 return ErrInvalidLengthTasks 5962 } 5963 if (iNdEx + skippy) < 0 { 5964 return ErrInvalidLengthTasks 5965 } 5966 if (iNdEx + skippy) > l { 5967 return io.ErrUnexpectedEOF 5968 } 5969 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 5970 iNdEx += skippy 5971 } 5972 } 5973 5974 if iNdEx > l { 5975 return io.ErrUnexpectedEOF 5976 } 5977 return nil 5978 } 5979 func (m *ResumeTaskRequest) Unmarshal(dAtA []byte) error { 5980 l := len(dAtA) 5981 iNdEx := 0 5982 for iNdEx < l { 5983 preIndex := iNdEx 5984 var wire uint64 5985 for shift := uint(0); ; shift += 7 { 5986 if shift >= 64 { 5987 return ErrIntOverflowTasks 5988 } 5989 if iNdEx >= l { 5990 return io.ErrUnexpectedEOF 5991 } 5992 b := dAtA[iNdEx] 5993 iNdEx++ 5994 wire |= uint64(b&0x7F) << shift 5995 if b < 0x80 { 5996 break 5997 } 5998 } 5999 fieldNum := int32(wire >> 3) 6000 wireType := int(wire & 0x7) 6001 if wireType == 4 { 6002 return fmt.Errorf("proto: ResumeTaskRequest: wiretype end group for non-group") 6003 } 6004 if fieldNum <= 0 { 6005 return fmt.Errorf("proto: ResumeTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6006 } 6007 switch fieldNum { 6008 case 1: 6009 if wireType != 2 { 6010 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 6011 } 6012 var stringLen uint64 6013 for shift := uint(0); ; shift += 7 { 6014 if shift >= 64 { 6015 return ErrIntOverflowTasks 6016 } 6017 if iNdEx >= l { 6018 return io.ErrUnexpectedEOF 6019 } 6020 b := dAtA[iNdEx] 6021 iNdEx++ 6022 stringLen |= uint64(b&0x7F) << shift 6023 if b < 0x80 { 6024 break 6025 } 6026 } 6027 intStringLen := int(stringLen) 6028 if intStringLen < 0 { 6029 return ErrInvalidLengthTasks 6030 } 6031 postIndex := iNdEx + intStringLen 6032 if postIndex < 0 { 6033 return ErrInvalidLengthTasks 6034 } 6035 if postIndex > l { 6036 return io.ErrUnexpectedEOF 6037 } 6038 m.ContainerID = string(dAtA[iNdEx:postIndex]) 6039 iNdEx = postIndex 6040 default: 6041 iNdEx = preIndex 6042 skippy, err := skipTasks(dAtA[iNdEx:]) 6043 if err != nil { 6044 return err 6045 } 6046 if skippy < 0 { 6047 return ErrInvalidLengthTasks 6048 } 6049 if (iNdEx + skippy) < 0 { 6050 return ErrInvalidLengthTasks 6051 } 6052 if (iNdEx + skippy) > l { 6053 return io.ErrUnexpectedEOF 6054 } 6055 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6056 iNdEx += skippy 6057 } 6058 } 6059 6060 if iNdEx > l { 6061 return io.ErrUnexpectedEOF 6062 } 6063 return nil 6064 } 6065 func (m *ListPidsRequest) Unmarshal(dAtA []byte) error { 6066 l := len(dAtA) 6067 iNdEx := 0 6068 for iNdEx < l { 6069 preIndex := iNdEx 6070 var wire uint64 6071 for shift := uint(0); ; shift += 7 { 6072 if shift >= 64 { 6073 return ErrIntOverflowTasks 6074 } 6075 if iNdEx >= l { 6076 return io.ErrUnexpectedEOF 6077 } 6078 b := dAtA[iNdEx] 6079 iNdEx++ 6080 wire |= uint64(b&0x7F) << shift 6081 if b < 0x80 { 6082 break 6083 } 6084 } 6085 fieldNum := int32(wire >> 3) 6086 wireType := int(wire & 0x7) 6087 if wireType == 4 { 6088 return fmt.Errorf("proto: ListPidsRequest: wiretype end group for non-group") 6089 } 6090 if fieldNum <= 0 { 6091 return fmt.Errorf("proto: ListPidsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6092 } 6093 switch fieldNum { 6094 case 1: 6095 if wireType != 2 { 6096 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 6097 } 6098 var stringLen uint64 6099 for shift := uint(0); ; shift += 7 { 6100 if shift >= 64 { 6101 return ErrIntOverflowTasks 6102 } 6103 if iNdEx >= l { 6104 return io.ErrUnexpectedEOF 6105 } 6106 b := dAtA[iNdEx] 6107 iNdEx++ 6108 stringLen |= uint64(b&0x7F) << shift 6109 if b < 0x80 { 6110 break 6111 } 6112 } 6113 intStringLen := int(stringLen) 6114 if intStringLen < 0 { 6115 return ErrInvalidLengthTasks 6116 } 6117 postIndex := iNdEx + intStringLen 6118 if postIndex < 0 { 6119 return ErrInvalidLengthTasks 6120 } 6121 if postIndex > l { 6122 return io.ErrUnexpectedEOF 6123 } 6124 m.ContainerID = string(dAtA[iNdEx:postIndex]) 6125 iNdEx = postIndex 6126 default: 6127 iNdEx = preIndex 6128 skippy, err := skipTasks(dAtA[iNdEx:]) 6129 if err != nil { 6130 return err 6131 } 6132 if skippy < 0 { 6133 return ErrInvalidLengthTasks 6134 } 6135 if (iNdEx + skippy) < 0 { 6136 return ErrInvalidLengthTasks 6137 } 6138 if (iNdEx + skippy) > l { 6139 return io.ErrUnexpectedEOF 6140 } 6141 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6142 iNdEx += skippy 6143 } 6144 } 6145 6146 if iNdEx > l { 6147 return io.ErrUnexpectedEOF 6148 } 6149 return nil 6150 } 6151 func (m *ListPidsResponse) Unmarshal(dAtA []byte) error { 6152 l := len(dAtA) 6153 iNdEx := 0 6154 for iNdEx < l { 6155 preIndex := iNdEx 6156 var wire uint64 6157 for shift := uint(0); ; shift += 7 { 6158 if shift >= 64 { 6159 return ErrIntOverflowTasks 6160 } 6161 if iNdEx >= l { 6162 return io.ErrUnexpectedEOF 6163 } 6164 b := dAtA[iNdEx] 6165 iNdEx++ 6166 wire |= uint64(b&0x7F) << shift 6167 if b < 0x80 { 6168 break 6169 } 6170 } 6171 fieldNum := int32(wire >> 3) 6172 wireType := int(wire & 0x7) 6173 if wireType == 4 { 6174 return fmt.Errorf("proto: ListPidsResponse: wiretype end group for non-group") 6175 } 6176 if fieldNum <= 0 { 6177 return fmt.Errorf("proto: ListPidsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6178 } 6179 switch fieldNum { 6180 case 1: 6181 if wireType != 2 { 6182 return fmt.Errorf("proto: wrong wireType = %d for field Processes", wireType) 6183 } 6184 var msglen int 6185 for shift := uint(0); ; shift += 7 { 6186 if shift >= 64 { 6187 return ErrIntOverflowTasks 6188 } 6189 if iNdEx >= l { 6190 return io.ErrUnexpectedEOF 6191 } 6192 b := dAtA[iNdEx] 6193 iNdEx++ 6194 msglen |= int(b&0x7F) << shift 6195 if b < 0x80 { 6196 break 6197 } 6198 } 6199 if msglen < 0 { 6200 return ErrInvalidLengthTasks 6201 } 6202 postIndex := iNdEx + msglen 6203 if postIndex < 0 { 6204 return ErrInvalidLengthTasks 6205 } 6206 if postIndex > l { 6207 return io.ErrUnexpectedEOF 6208 } 6209 m.Processes = append(m.Processes, &task.ProcessInfo{}) 6210 if err := m.Processes[len(m.Processes)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6211 return err 6212 } 6213 iNdEx = postIndex 6214 default: 6215 iNdEx = preIndex 6216 skippy, err := skipTasks(dAtA[iNdEx:]) 6217 if err != nil { 6218 return err 6219 } 6220 if skippy < 0 { 6221 return ErrInvalidLengthTasks 6222 } 6223 if (iNdEx + skippy) < 0 { 6224 return ErrInvalidLengthTasks 6225 } 6226 if (iNdEx + skippy) > l { 6227 return io.ErrUnexpectedEOF 6228 } 6229 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6230 iNdEx += skippy 6231 } 6232 } 6233 6234 if iNdEx > l { 6235 return io.ErrUnexpectedEOF 6236 } 6237 return nil 6238 } 6239 func (m *CheckpointTaskRequest) Unmarshal(dAtA []byte) error { 6240 l := len(dAtA) 6241 iNdEx := 0 6242 for iNdEx < l { 6243 preIndex := iNdEx 6244 var wire uint64 6245 for shift := uint(0); ; shift += 7 { 6246 if shift >= 64 { 6247 return ErrIntOverflowTasks 6248 } 6249 if iNdEx >= l { 6250 return io.ErrUnexpectedEOF 6251 } 6252 b := dAtA[iNdEx] 6253 iNdEx++ 6254 wire |= uint64(b&0x7F) << shift 6255 if b < 0x80 { 6256 break 6257 } 6258 } 6259 fieldNum := int32(wire >> 3) 6260 wireType := int(wire & 0x7) 6261 if wireType == 4 { 6262 return fmt.Errorf("proto: CheckpointTaskRequest: wiretype end group for non-group") 6263 } 6264 if fieldNum <= 0 { 6265 return fmt.Errorf("proto: CheckpointTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6266 } 6267 switch fieldNum { 6268 case 1: 6269 if wireType != 2 { 6270 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 6271 } 6272 var stringLen uint64 6273 for shift := uint(0); ; shift += 7 { 6274 if shift >= 64 { 6275 return ErrIntOverflowTasks 6276 } 6277 if iNdEx >= l { 6278 return io.ErrUnexpectedEOF 6279 } 6280 b := dAtA[iNdEx] 6281 iNdEx++ 6282 stringLen |= uint64(b&0x7F) << shift 6283 if b < 0x80 { 6284 break 6285 } 6286 } 6287 intStringLen := int(stringLen) 6288 if intStringLen < 0 { 6289 return ErrInvalidLengthTasks 6290 } 6291 postIndex := iNdEx + intStringLen 6292 if postIndex < 0 { 6293 return ErrInvalidLengthTasks 6294 } 6295 if postIndex > l { 6296 return io.ErrUnexpectedEOF 6297 } 6298 m.ContainerID = string(dAtA[iNdEx:postIndex]) 6299 iNdEx = postIndex 6300 case 2: 6301 if wireType != 2 { 6302 return fmt.Errorf("proto: wrong wireType = %d for field ParentCheckpoint", wireType) 6303 } 6304 var stringLen uint64 6305 for shift := uint(0); ; shift += 7 { 6306 if shift >= 64 { 6307 return ErrIntOverflowTasks 6308 } 6309 if iNdEx >= l { 6310 return io.ErrUnexpectedEOF 6311 } 6312 b := dAtA[iNdEx] 6313 iNdEx++ 6314 stringLen |= uint64(b&0x7F) << shift 6315 if b < 0x80 { 6316 break 6317 } 6318 } 6319 intStringLen := int(stringLen) 6320 if intStringLen < 0 { 6321 return ErrInvalidLengthTasks 6322 } 6323 postIndex := iNdEx + intStringLen 6324 if postIndex < 0 { 6325 return ErrInvalidLengthTasks 6326 } 6327 if postIndex > l { 6328 return io.ErrUnexpectedEOF 6329 } 6330 m.ParentCheckpoint = github_com_opencontainers_go_digest.Digest(dAtA[iNdEx:postIndex]) 6331 iNdEx = postIndex 6332 case 3: 6333 if wireType != 2 { 6334 return fmt.Errorf("proto: wrong wireType = %d for field Options", wireType) 6335 } 6336 var msglen int 6337 for shift := uint(0); ; shift += 7 { 6338 if shift >= 64 { 6339 return ErrIntOverflowTasks 6340 } 6341 if iNdEx >= l { 6342 return io.ErrUnexpectedEOF 6343 } 6344 b := dAtA[iNdEx] 6345 iNdEx++ 6346 msglen |= int(b&0x7F) << shift 6347 if b < 0x80 { 6348 break 6349 } 6350 } 6351 if msglen < 0 { 6352 return ErrInvalidLengthTasks 6353 } 6354 postIndex := iNdEx + msglen 6355 if postIndex < 0 { 6356 return ErrInvalidLengthTasks 6357 } 6358 if postIndex > l { 6359 return io.ErrUnexpectedEOF 6360 } 6361 if m.Options == nil { 6362 m.Options = &types1.Any{} 6363 } 6364 if err := m.Options.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6365 return err 6366 } 6367 iNdEx = postIndex 6368 default: 6369 iNdEx = preIndex 6370 skippy, err := skipTasks(dAtA[iNdEx:]) 6371 if err != nil { 6372 return err 6373 } 6374 if skippy < 0 { 6375 return ErrInvalidLengthTasks 6376 } 6377 if (iNdEx + skippy) < 0 { 6378 return ErrInvalidLengthTasks 6379 } 6380 if (iNdEx + skippy) > l { 6381 return io.ErrUnexpectedEOF 6382 } 6383 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6384 iNdEx += skippy 6385 } 6386 } 6387 6388 if iNdEx > l { 6389 return io.ErrUnexpectedEOF 6390 } 6391 return nil 6392 } 6393 func (m *CheckpointTaskResponse) Unmarshal(dAtA []byte) error { 6394 l := len(dAtA) 6395 iNdEx := 0 6396 for iNdEx < l { 6397 preIndex := iNdEx 6398 var wire uint64 6399 for shift := uint(0); ; shift += 7 { 6400 if shift >= 64 { 6401 return ErrIntOverflowTasks 6402 } 6403 if iNdEx >= l { 6404 return io.ErrUnexpectedEOF 6405 } 6406 b := dAtA[iNdEx] 6407 iNdEx++ 6408 wire |= uint64(b&0x7F) << shift 6409 if b < 0x80 { 6410 break 6411 } 6412 } 6413 fieldNum := int32(wire >> 3) 6414 wireType := int(wire & 0x7) 6415 if wireType == 4 { 6416 return fmt.Errorf("proto: CheckpointTaskResponse: wiretype end group for non-group") 6417 } 6418 if fieldNum <= 0 { 6419 return fmt.Errorf("proto: CheckpointTaskResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6420 } 6421 switch fieldNum { 6422 case 1: 6423 if wireType != 2 { 6424 return fmt.Errorf("proto: wrong wireType = %d for field Descriptors", wireType) 6425 } 6426 var msglen int 6427 for shift := uint(0); ; shift += 7 { 6428 if shift >= 64 { 6429 return ErrIntOverflowTasks 6430 } 6431 if iNdEx >= l { 6432 return io.ErrUnexpectedEOF 6433 } 6434 b := dAtA[iNdEx] 6435 iNdEx++ 6436 msglen |= int(b&0x7F) << shift 6437 if b < 0x80 { 6438 break 6439 } 6440 } 6441 if msglen < 0 { 6442 return ErrInvalidLengthTasks 6443 } 6444 postIndex := iNdEx + msglen 6445 if postIndex < 0 { 6446 return ErrInvalidLengthTasks 6447 } 6448 if postIndex > l { 6449 return io.ErrUnexpectedEOF 6450 } 6451 m.Descriptors = append(m.Descriptors, &types.Descriptor{}) 6452 if err := m.Descriptors[len(m.Descriptors)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6453 return err 6454 } 6455 iNdEx = postIndex 6456 default: 6457 iNdEx = preIndex 6458 skippy, err := skipTasks(dAtA[iNdEx:]) 6459 if err != nil { 6460 return err 6461 } 6462 if skippy < 0 { 6463 return ErrInvalidLengthTasks 6464 } 6465 if (iNdEx + skippy) < 0 { 6466 return ErrInvalidLengthTasks 6467 } 6468 if (iNdEx + skippy) > l { 6469 return io.ErrUnexpectedEOF 6470 } 6471 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6472 iNdEx += skippy 6473 } 6474 } 6475 6476 if iNdEx > l { 6477 return io.ErrUnexpectedEOF 6478 } 6479 return nil 6480 } 6481 func (m *UpdateTaskRequest) Unmarshal(dAtA []byte) error { 6482 l := len(dAtA) 6483 iNdEx := 0 6484 for iNdEx < l { 6485 preIndex := iNdEx 6486 var wire uint64 6487 for shift := uint(0); ; shift += 7 { 6488 if shift >= 64 { 6489 return ErrIntOverflowTasks 6490 } 6491 if iNdEx >= l { 6492 return io.ErrUnexpectedEOF 6493 } 6494 b := dAtA[iNdEx] 6495 iNdEx++ 6496 wire |= uint64(b&0x7F) << shift 6497 if b < 0x80 { 6498 break 6499 } 6500 } 6501 fieldNum := int32(wire >> 3) 6502 wireType := int(wire & 0x7) 6503 if wireType == 4 { 6504 return fmt.Errorf("proto: UpdateTaskRequest: wiretype end group for non-group") 6505 } 6506 if fieldNum <= 0 { 6507 return fmt.Errorf("proto: UpdateTaskRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6508 } 6509 switch fieldNum { 6510 case 1: 6511 if wireType != 2 { 6512 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 6513 } 6514 var stringLen uint64 6515 for shift := uint(0); ; shift += 7 { 6516 if shift >= 64 { 6517 return ErrIntOverflowTasks 6518 } 6519 if iNdEx >= l { 6520 return io.ErrUnexpectedEOF 6521 } 6522 b := dAtA[iNdEx] 6523 iNdEx++ 6524 stringLen |= uint64(b&0x7F) << shift 6525 if b < 0x80 { 6526 break 6527 } 6528 } 6529 intStringLen := int(stringLen) 6530 if intStringLen < 0 { 6531 return ErrInvalidLengthTasks 6532 } 6533 postIndex := iNdEx + intStringLen 6534 if postIndex < 0 { 6535 return ErrInvalidLengthTasks 6536 } 6537 if postIndex > l { 6538 return io.ErrUnexpectedEOF 6539 } 6540 m.ContainerID = string(dAtA[iNdEx:postIndex]) 6541 iNdEx = postIndex 6542 case 2: 6543 if wireType != 2 { 6544 return fmt.Errorf("proto: wrong wireType = %d for field Resources", wireType) 6545 } 6546 var msglen int 6547 for shift := uint(0); ; shift += 7 { 6548 if shift >= 64 { 6549 return ErrIntOverflowTasks 6550 } 6551 if iNdEx >= l { 6552 return io.ErrUnexpectedEOF 6553 } 6554 b := dAtA[iNdEx] 6555 iNdEx++ 6556 msglen |= int(b&0x7F) << shift 6557 if b < 0x80 { 6558 break 6559 } 6560 } 6561 if msglen < 0 { 6562 return ErrInvalidLengthTasks 6563 } 6564 postIndex := iNdEx + msglen 6565 if postIndex < 0 { 6566 return ErrInvalidLengthTasks 6567 } 6568 if postIndex > l { 6569 return io.ErrUnexpectedEOF 6570 } 6571 if m.Resources == nil { 6572 m.Resources = &types1.Any{} 6573 } 6574 if err := m.Resources.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6575 return err 6576 } 6577 iNdEx = postIndex 6578 default: 6579 iNdEx = preIndex 6580 skippy, err := skipTasks(dAtA[iNdEx:]) 6581 if err != nil { 6582 return err 6583 } 6584 if skippy < 0 { 6585 return ErrInvalidLengthTasks 6586 } 6587 if (iNdEx + skippy) < 0 { 6588 return ErrInvalidLengthTasks 6589 } 6590 if (iNdEx + skippy) > l { 6591 return io.ErrUnexpectedEOF 6592 } 6593 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6594 iNdEx += skippy 6595 } 6596 } 6597 6598 if iNdEx > l { 6599 return io.ErrUnexpectedEOF 6600 } 6601 return nil 6602 } 6603 func (m *MetricsRequest) Unmarshal(dAtA []byte) error { 6604 l := len(dAtA) 6605 iNdEx := 0 6606 for iNdEx < l { 6607 preIndex := iNdEx 6608 var wire uint64 6609 for shift := uint(0); ; shift += 7 { 6610 if shift >= 64 { 6611 return ErrIntOverflowTasks 6612 } 6613 if iNdEx >= l { 6614 return io.ErrUnexpectedEOF 6615 } 6616 b := dAtA[iNdEx] 6617 iNdEx++ 6618 wire |= uint64(b&0x7F) << shift 6619 if b < 0x80 { 6620 break 6621 } 6622 } 6623 fieldNum := int32(wire >> 3) 6624 wireType := int(wire & 0x7) 6625 if wireType == 4 { 6626 return fmt.Errorf("proto: MetricsRequest: wiretype end group for non-group") 6627 } 6628 if fieldNum <= 0 { 6629 return fmt.Errorf("proto: MetricsRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6630 } 6631 switch fieldNum { 6632 case 1: 6633 if wireType != 2 { 6634 return fmt.Errorf("proto: wrong wireType = %d for field Filters", wireType) 6635 } 6636 var stringLen uint64 6637 for shift := uint(0); ; shift += 7 { 6638 if shift >= 64 { 6639 return ErrIntOverflowTasks 6640 } 6641 if iNdEx >= l { 6642 return io.ErrUnexpectedEOF 6643 } 6644 b := dAtA[iNdEx] 6645 iNdEx++ 6646 stringLen |= uint64(b&0x7F) << shift 6647 if b < 0x80 { 6648 break 6649 } 6650 } 6651 intStringLen := int(stringLen) 6652 if intStringLen < 0 { 6653 return ErrInvalidLengthTasks 6654 } 6655 postIndex := iNdEx + intStringLen 6656 if postIndex < 0 { 6657 return ErrInvalidLengthTasks 6658 } 6659 if postIndex > l { 6660 return io.ErrUnexpectedEOF 6661 } 6662 m.Filters = append(m.Filters, string(dAtA[iNdEx:postIndex])) 6663 iNdEx = postIndex 6664 default: 6665 iNdEx = preIndex 6666 skippy, err := skipTasks(dAtA[iNdEx:]) 6667 if err != nil { 6668 return err 6669 } 6670 if skippy < 0 { 6671 return ErrInvalidLengthTasks 6672 } 6673 if (iNdEx + skippy) < 0 { 6674 return ErrInvalidLengthTasks 6675 } 6676 if (iNdEx + skippy) > l { 6677 return io.ErrUnexpectedEOF 6678 } 6679 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6680 iNdEx += skippy 6681 } 6682 } 6683 6684 if iNdEx > l { 6685 return io.ErrUnexpectedEOF 6686 } 6687 return nil 6688 } 6689 func (m *MetricsResponse) Unmarshal(dAtA []byte) error { 6690 l := len(dAtA) 6691 iNdEx := 0 6692 for iNdEx < l { 6693 preIndex := iNdEx 6694 var wire uint64 6695 for shift := uint(0); ; shift += 7 { 6696 if shift >= 64 { 6697 return ErrIntOverflowTasks 6698 } 6699 if iNdEx >= l { 6700 return io.ErrUnexpectedEOF 6701 } 6702 b := dAtA[iNdEx] 6703 iNdEx++ 6704 wire |= uint64(b&0x7F) << shift 6705 if b < 0x80 { 6706 break 6707 } 6708 } 6709 fieldNum := int32(wire >> 3) 6710 wireType := int(wire & 0x7) 6711 if wireType == 4 { 6712 return fmt.Errorf("proto: MetricsResponse: wiretype end group for non-group") 6713 } 6714 if fieldNum <= 0 { 6715 return fmt.Errorf("proto: MetricsResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6716 } 6717 switch fieldNum { 6718 case 1: 6719 if wireType != 2 { 6720 return fmt.Errorf("proto: wrong wireType = %d for field Metrics", wireType) 6721 } 6722 var msglen int 6723 for shift := uint(0); ; shift += 7 { 6724 if shift >= 64 { 6725 return ErrIntOverflowTasks 6726 } 6727 if iNdEx >= l { 6728 return io.ErrUnexpectedEOF 6729 } 6730 b := dAtA[iNdEx] 6731 iNdEx++ 6732 msglen |= int(b&0x7F) << shift 6733 if b < 0x80 { 6734 break 6735 } 6736 } 6737 if msglen < 0 { 6738 return ErrInvalidLengthTasks 6739 } 6740 postIndex := iNdEx + msglen 6741 if postIndex < 0 { 6742 return ErrInvalidLengthTasks 6743 } 6744 if postIndex > l { 6745 return io.ErrUnexpectedEOF 6746 } 6747 m.Metrics = append(m.Metrics, &types.Metric{}) 6748 if err := m.Metrics[len(m.Metrics)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 6749 return err 6750 } 6751 iNdEx = postIndex 6752 default: 6753 iNdEx = preIndex 6754 skippy, err := skipTasks(dAtA[iNdEx:]) 6755 if err != nil { 6756 return err 6757 } 6758 if skippy < 0 { 6759 return ErrInvalidLengthTasks 6760 } 6761 if (iNdEx + skippy) < 0 { 6762 return ErrInvalidLengthTasks 6763 } 6764 if (iNdEx + skippy) > l { 6765 return io.ErrUnexpectedEOF 6766 } 6767 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6768 iNdEx += skippy 6769 } 6770 } 6771 6772 if iNdEx > l { 6773 return io.ErrUnexpectedEOF 6774 } 6775 return nil 6776 } 6777 func (m *WaitRequest) Unmarshal(dAtA []byte) error { 6778 l := len(dAtA) 6779 iNdEx := 0 6780 for iNdEx < l { 6781 preIndex := iNdEx 6782 var wire uint64 6783 for shift := uint(0); ; shift += 7 { 6784 if shift >= 64 { 6785 return ErrIntOverflowTasks 6786 } 6787 if iNdEx >= l { 6788 return io.ErrUnexpectedEOF 6789 } 6790 b := dAtA[iNdEx] 6791 iNdEx++ 6792 wire |= uint64(b&0x7F) << shift 6793 if b < 0x80 { 6794 break 6795 } 6796 } 6797 fieldNum := int32(wire >> 3) 6798 wireType := int(wire & 0x7) 6799 if wireType == 4 { 6800 return fmt.Errorf("proto: WaitRequest: wiretype end group for non-group") 6801 } 6802 if fieldNum <= 0 { 6803 return fmt.Errorf("proto: WaitRequest: illegal tag %d (wire type %d)", fieldNum, wire) 6804 } 6805 switch fieldNum { 6806 case 1: 6807 if wireType != 2 { 6808 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 6809 } 6810 var stringLen uint64 6811 for shift := uint(0); ; shift += 7 { 6812 if shift >= 64 { 6813 return ErrIntOverflowTasks 6814 } 6815 if iNdEx >= l { 6816 return io.ErrUnexpectedEOF 6817 } 6818 b := dAtA[iNdEx] 6819 iNdEx++ 6820 stringLen |= uint64(b&0x7F) << shift 6821 if b < 0x80 { 6822 break 6823 } 6824 } 6825 intStringLen := int(stringLen) 6826 if intStringLen < 0 { 6827 return ErrInvalidLengthTasks 6828 } 6829 postIndex := iNdEx + intStringLen 6830 if postIndex < 0 { 6831 return ErrInvalidLengthTasks 6832 } 6833 if postIndex > l { 6834 return io.ErrUnexpectedEOF 6835 } 6836 m.ContainerID = string(dAtA[iNdEx:postIndex]) 6837 iNdEx = postIndex 6838 case 2: 6839 if wireType != 2 { 6840 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 6841 } 6842 var stringLen uint64 6843 for shift := uint(0); ; shift += 7 { 6844 if shift >= 64 { 6845 return ErrIntOverflowTasks 6846 } 6847 if iNdEx >= l { 6848 return io.ErrUnexpectedEOF 6849 } 6850 b := dAtA[iNdEx] 6851 iNdEx++ 6852 stringLen |= uint64(b&0x7F) << shift 6853 if b < 0x80 { 6854 break 6855 } 6856 } 6857 intStringLen := int(stringLen) 6858 if intStringLen < 0 { 6859 return ErrInvalidLengthTasks 6860 } 6861 postIndex := iNdEx + intStringLen 6862 if postIndex < 0 { 6863 return ErrInvalidLengthTasks 6864 } 6865 if postIndex > l { 6866 return io.ErrUnexpectedEOF 6867 } 6868 m.ExecID = string(dAtA[iNdEx:postIndex]) 6869 iNdEx = postIndex 6870 default: 6871 iNdEx = preIndex 6872 skippy, err := skipTasks(dAtA[iNdEx:]) 6873 if err != nil { 6874 return err 6875 } 6876 if skippy < 0 { 6877 return ErrInvalidLengthTasks 6878 } 6879 if (iNdEx + skippy) < 0 { 6880 return ErrInvalidLengthTasks 6881 } 6882 if (iNdEx + skippy) > l { 6883 return io.ErrUnexpectedEOF 6884 } 6885 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6886 iNdEx += skippy 6887 } 6888 } 6889 6890 if iNdEx > l { 6891 return io.ErrUnexpectedEOF 6892 } 6893 return nil 6894 } 6895 func (m *WaitResponse) Unmarshal(dAtA []byte) error { 6896 l := len(dAtA) 6897 iNdEx := 0 6898 for iNdEx < l { 6899 preIndex := iNdEx 6900 var wire uint64 6901 for shift := uint(0); ; shift += 7 { 6902 if shift >= 64 { 6903 return ErrIntOverflowTasks 6904 } 6905 if iNdEx >= l { 6906 return io.ErrUnexpectedEOF 6907 } 6908 b := dAtA[iNdEx] 6909 iNdEx++ 6910 wire |= uint64(b&0x7F) << shift 6911 if b < 0x80 { 6912 break 6913 } 6914 } 6915 fieldNum := int32(wire >> 3) 6916 wireType := int(wire & 0x7) 6917 if wireType == 4 { 6918 return fmt.Errorf("proto: WaitResponse: wiretype end group for non-group") 6919 } 6920 if fieldNum <= 0 { 6921 return fmt.Errorf("proto: WaitResponse: illegal tag %d (wire type %d)", fieldNum, wire) 6922 } 6923 switch fieldNum { 6924 case 1: 6925 if wireType != 0 { 6926 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 6927 } 6928 m.ExitStatus = 0 6929 for shift := uint(0); ; shift += 7 { 6930 if shift >= 64 { 6931 return ErrIntOverflowTasks 6932 } 6933 if iNdEx >= l { 6934 return io.ErrUnexpectedEOF 6935 } 6936 b := dAtA[iNdEx] 6937 iNdEx++ 6938 m.ExitStatus |= uint32(b&0x7F) << shift 6939 if b < 0x80 { 6940 break 6941 } 6942 } 6943 case 2: 6944 if wireType != 2 { 6945 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 6946 } 6947 var msglen int 6948 for shift := uint(0); ; shift += 7 { 6949 if shift >= 64 { 6950 return ErrIntOverflowTasks 6951 } 6952 if iNdEx >= l { 6953 return io.ErrUnexpectedEOF 6954 } 6955 b := dAtA[iNdEx] 6956 iNdEx++ 6957 msglen |= int(b&0x7F) << shift 6958 if b < 0x80 { 6959 break 6960 } 6961 } 6962 if msglen < 0 { 6963 return ErrInvalidLengthTasks 6964 } 6965 postIndex := iNdEx + msglen 6966 if postIndex < 0 { 6967 return ErrInvalidLengthTasks 6968 } 6969 if postIndex > l { 6970 return io.ErrUnexpectedEOF 6971 } 6972 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 6973 return err 6974 } 6975 iNdEx = postIndex 6976 default: 6977 iNdEx = preIndex 6978 skippy, err := skipTasks(dAtA[iNdEx:]) 6979 if err != nil { 6980 return err 6981 } 6982 if skippy < 0 { 6983 return ErrInvalidLengthTasks 6984 } 6985 if (iNdEx + skippy) < 0 { 6986 return ErrInvalidLengthTasks 6987 } 6988 if (iNdEx + skippy) > l { 6989 return io.ErrUnexpectedEOF 6990 } 6991 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 6992 iNdEx += skippy 6993 } 6994 } 6995 6996 if iNdEx > l { 6997 return io.ErrUnexpectedEOF 6998 } 6999 return nil 7000 } 7001 func skipTasks(dAtA []byte) (n int, err error) { 7002 l := len(dAtA) 7003 iNdEx := 0 7004 for iNdEx < l { 7005 var wire uint64 7006 for shift := uint(0); ; shift += 7 { 7007 if shift >= 64 { 7008 return 0, ErrIntOverflowTasks 7009 } 7010 if iNdEx >= l { 7011 return 0, io.ErrUnexpectedEOF 7012 } 7013 b := dAtA[iNdEx] 7014 iNdEx++ 7015 wire |= (uint64(b) & 0x7F) << shift 7016 if b < 0x80 { 7017 break 7018 } 7019 } 7020 wireType := int(wire & 0x7) 7021 switch wireType { 7022 case 0: 7023 for shift := uint(0); ; shift += 7 { 7024 if shift >= 64 { 7025 return 0, ErrIntOverflowTasks 7026 } 7027 if iNdEx >= l { 7028 return 0, io.ErrUnexpectedEOF 7029 } 7030 iNdEx++ 7031 if dAtA[iNdEx-1] < 0x80 { 7032 break 7033 } 7034 } 7035 return iNdEx, nil 7036 case 1: 7037 iNdEx += 8 7038 return iNdEx, nil 7039 case 2: 7040 var length int 7041 for shift := uint(0); ; shift += 7 { 7042 if shift >= 64 { 7043 return 0, ErrIntOverflowTasks 7044 } 7045 if iNdEx >= l { 7046 return 0, io.ErrUnexpectedEOF 7047 } 7048 b := dAtA[iNdEx] 7049 iNdEx++ 7050 length |= (int(b) & 0x7F) << shift 7051 if b < 0x80 { 7052 break 7053 } 7054 } 7055 if length < 0 { 7056 return 0, ErrInvalidLengthTasks 7057 } 7058 iNdEx += length 7059 if iNdEx < 0 { 7060 return 0, ErrInvalidLengthTasks 7061 } 7062 return iNdEx, nil 7063 case 3: 7064 for { 7065 var innerWire uint64 7066 var start int = iNdEx 7067 for shift := uint(0); ; shift += 7 { 7068 if shift >= 64 { 7069 return 0, ErrIntOverflowTasks 7070 } 7071 if iNdEx >= l { 7072 return 0, io.ErrUnexpectedEOF 7073 } 7074 b := dAtA[iNdEx] 7075 iNdEx++ 7076 innerWire |= (uint64(b) & 0x7F) << shift 7077 if b < 0x80 { 7078 break 7079 } 7080 } 7081 innerWireType := int(innerWire & 0x7) 7082 if innerWireType == 4 { 7083 break 7084 } 7085 next, err := skipTasks(dAtA[start:]) 7086 if err != nil { 7087 return 0, err 7088 } 7089 iNdEx = start + next 7090 if iNdEx < 0 { 7091 return 0, ErrInvalidLengthTasks 7092 } 7093 } 7094 return iNdEx, nil 7095 case 4: 7096 return iNdEx, nil 7097 case 5: 7098 iNdEx += 4 7099 return iNdEx, nil 7100 default: 7101 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 7102 } 7103 } 7104 panic("unreachable") 7105 } 7106 7107 var ( 7108 ErrInvalidLengthTasks = fmt.Errorf("proto: negative length found during unmarshaling") 7109 ErrIntOverflowTasks = fmt.Errorf("proto: integer overflow") 7110 )