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