github.com/demonoid81/containerd@v1.3.4/api/events/task.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/containerd/containerd/api/events/task.proto 3 4 package events 5 6 import ( 7 fmt "fmt" 8 types "github.com/containerd/containerd/api/types" 9 proto "github.com/gogo/protobuf/proto" 10 _ "github.com/gogo/protobuf/types" 11 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 12 io "io" 13 math "math" 14 reflect "reflect" 15 strings "strings" 16 time "time" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var _ = proto.Marshal 21 var _ = fmt.Errorf 22 var _ = math.Inf 23 var _ = time.Kitchen 24 25 // This is a compile-time assertion to ensure that this generated file 26 // is compatible with the proto package it is being compiled against. 27 // A compilation error at this line likely means your copy of the 28 // proto package needs to be updated. 29 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 30 31 type TaskCreate struct { 32 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 33 Bundle string `protobuf:"bytes,2,opt,name=bundle,proto3" json:"bundle,omitempty"` 34 Rootfs []*types.Mount `protobuf:"bytes,3,rep,name=rootfs,proto3" json:"rootfs,omitempty"` 35 IO *TaskIO `protobuf:"bytes,4,opt,name=io,proto3" json:"io,omitempty"` 36 Checkpoint string `protobuf:"bytes,5,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` 37 Pid uint32 `protobuf:"varint,6,opt,name=pid,proto3" json:"pid,omitempty"` 38 XXX_NoUnkeyedLiteral struct{} `json:"-"` 39 XXX_unrecognized []byte `json:"-"` 40 XXX_sizecache int32 `json:"-"` 41 } 42 43 func (m *TaskCreate) Reset() { *m = TaskCreate{} } 44 func (*TaskCreate) ProtoMessage() {} 45 func (*TaskCreate) Descriptor() ([]byte, []int) { 46 return fileDescriptor_8db0813f7adfb63c, []int{0} 47 } 48 func (m *TaskCreate) XXX_Unmarshal(b []byte) error { 49 return m.Unmarshal(b) 50 } 51 func (m *TaskCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 52 if deterministic { 53 return xxx_messageInfo_TaskCreate.Marshal(b, m, deterministic) 54 } else { 55 b = b[:cap(b)] 56 n, err := m.MarshalTo(b) 57 if err != nil { 58 return nil, err 59 } 60 return b[:n], nil 61 } 62 } 63 func (m *TaskCreate) XXX_Merge(src proto.Message) { 64 xxx_messageInfo_TaskCreate.Merge(m, src) 65 } 66 func (m *TaskCreate) XXX_Size() int { 67 return m.Size() 68 } 69 func (m *TaskCreate) XXX_DiscardUnknown() { 70 xxx_messageInfo_TaskCreate.DiscardUnknown(m) 71 } 72 73 var xxx_messageInfo_TaskCreate proto.InternalMessageInfo 74 75 type TaskStart struct { 76 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 77 Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` 78 XXX_NoUnkeyedLiteral struct{} `json:"-"` 79 XXX_unrecognized []byte `json:"-"` 80 XXX_sizecache int32 `json:"-"` 81 } 82 83 func (m *TaskStart) Reset() { *m = TaskStart{} } 84 func (*TaskStart) ProtoMessage() {} 85 func (*TaskStart) Descriptor() ([]byte, []int) { 86 return fileDescriptor_8db0813f7adfb63c, []int{1} 87 } 88 func (m *TaskStart) XXX_Unmarshal(b []byte) error { 89 return m.Unmarshal(b) 90 } 91 func (m *TaskStart) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 92 if deterministic { 93 return xxx_messageInfo_TaskStart.Marshal(b, m, deterministic) 94 } else { 95 b = b[:cap(b)] 96 n, err := m.MarshalTo(b) 97 if err != nil { 98 return nil, err 99 } 100 return b[:n], nil 101 } 102 } 103 func (m *TaskStart) XXX_Merge(src proto.Message) { 104 xxx_messageInfo_TaskStart.Merge(m, src) 105 } 106 func (m *TaskStart) XXX_Size() int { 107 return m.Size() 108 } 109 func (m *TaskStart) XXX_DiscardUnknown() { 110 xxx_messageInfo_TaskStart.DiscardUnknown(m) 111 } 112 113 var xxx_messageInfo_TaskStart proto.InternalMessageInfo 114 115 type TaskDelete struct { 116 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 117 Pid uint32 `protobuf:"varint,2,opt,name=pid,proto3" json:"pid,omitempty"` 118 ExitStatus uint32 `protobuf:"varint,3,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 119 ExitedAt time.Time `protobuf:"bytes,4,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 120 // id is the specific exec. By default if omitted will be `""` thus matches 121 // the init exec of the task matching `container_id`. 122 ID string `protobuf:"bytes,5,opt,name=id,proto3" json:"id,omitempty"` 123 XXX_NoUnkeyedLiteral struct{} `json:"-"` 124 XXX_unrecognized []byte `json:"-"` 125 XXX_sizecache int32 `json:"-"` 126 } 127 128 func (m *TaskDelete) Reset() { *m = TaskDelete{} } 129 func (*TaskDelete) ProtoMessage() {} 130 func (*TaskDelete) Descriptor() ([]byte, []int) { 131 return fileDescriptor_8db0813f7adfb63c, []int{2} 132 } 133 func (m *TaskDelete) XXX_Unmarshal(b []byte) error { 134 return m.Unmarshal(b) 135 } 136 func (m *TaskDelete) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 137 if deterministic { 138 return xxx_messageInfo_TaskDelete.Marshal(b, m, deterministic) 139 } else { 140 b = b[:cap(b)] 141 n, err := m.MarshalTo(b) 142 if err != nil { 143 return nil, err 144 } 145 return b[:n], nil 146 } 147 } 148 func (m *TaskDelete) XXX_Merge(src proto.Message) { 149 xxx_messageInfo_TaskDelete.Merge(m, src) 150 } 151 func (m *TaskDelete) XXX_Size() int { 152 return m.Size() 153 } 154 func (m *TaskDelete) XXX_DiscardUnknown() { 155 xxx_messageInfo_TaskDelete.DiscardUnknown(m) 156 } 157 158 var xxx_messageInfo_TaskDelete proto.InternalMessageInfo 159 160 type TaskIO struct { 161 Stdin string `protobuf:"bytes,1,opt,name=stdin,proto3" json:"stdin,omitempty"` 162 Stdout string `protobuf:"bytes,2,opt,name=stdout,proto3" json:"stdout,omitempty"` 163 Stderr string `protobuf:"bytes,3,opt,name=stderr,proto3" json:"stderr,omitempty"` 164 Terminal bool `protobuf:"varint,4,opt,name=terminal,proto3" json:"terminal,omitempty"` 165 XXX_NoUnkeyedLiteral struct{} `json:"-"` 166 XXX_unrecognized []byte `json:"-"` 167 XXX_sizecache int32 `json:"-"` 168 } 169 170 func (m *TaskIO) Reset() { *m = TaskIO{} } 171 func (*TaskIO) ProtoMessage() {} 172 func (*TaskIO) Descriptor() ([]byte, []int) { 173 return fileDescriptor_8db0813f7adfb63c, []int{3} 174 } 175 func (m *TaskIO) XXX_Unmarshal(b []byte) error { 176 return m.Unmarshal(b) 177 } 178 func (m *TaskIO) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 179 if deterministic { 180 return xxx_messageInfo_TaskIO.Marshal(b, m, deterministic) 181 } else { 182 b = b[:cap(b)] 183 n, err := m.MarshalTo(b) 184 if err != nil { 185 return nil, err 186 } 187 return b[:n], nil 188 } 189 } 190 func (m *TaskIO) XXX_Merge(src proto.Message) { 191 xxx_messageInfo_TaskIO.Merge(m, src) 192 } 193 func (m *TaskIO) XXX_Size() int { 194 return m.Size() 195 } 196 func (m *TaskIO) XXX_DiscardUnknown() { 197 xxx_messageInfo_TaskIO.DiscardUnknown(m) 198 } 199 200 var xxx_messageInfo_TaskIO proto.InternalMessageInfo 201 202 type TaskExit struct { 203 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 204 ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 205 Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` 206 ExitStatus uint32 `protobuf:"varint,4,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 207 ExitedAt time.Time `protobuf:"bytes,5,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 208 XXX_NoUnkeyedLiteral struct{} `json:"-"` 209 XXX_unrecognized []byte `json:"-"` 210 XXX_sizecache int32 `json:"-"` 211 } 212 213 func (m *TaskExit) Reset() { *m = TaskExit{} } 214 func (*TaskExit) ProtoMessage() {} 215 func (*TaskExit) Descriptor() ([]byte, []int) { 216 return fileDescriptor_8db0813f7adfb63c, []int{4} 217 } 218 func (m *TaskExit) XXX_Unmarshal(b []byte) error { 219 return m.Unmarshal(b) 220 } 221 func (m *TaskExit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 222 if deterministic { 223 return xxx_messageInfo_TaskExit.Marshal(b, m, deterministic) 224 } else { 225 b = b[:cap(b)] 226 n, err := m.MarshalTo(b) 227 if err != nil { 228 return nil, err 229 } 230 return b[:n], nil 231 } 232 } 233 func (m *TaskExit) XXX_Merge(src proto.Message) { 234 xxx_messageInfo_TaskExit.Merge(m, src) 235 } 236 func (m *TaskExit) XXX_Size() int { 237 return m.Size() 238 } 239 func (m *TaskExit) XXX_DiscardUnknown() { 240 xxx_messageInfo_TaskExit.DiscardUnknown(m) 241 } 242 243 var xxx_messageInfo_TaskExit proto.InternalMessageInfo 244 245 type TaskOOM struct { 246 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 247 XXX_NoUnkeyedLiteral struct{} `json:"-"` 248 XXX_unrecognized []byte `json:"-"` 249 XXX_sizecache int32 `json:"-"` 250 } 251 252 func (m *TaskOOM) Reset() { *m = TaskOOM{} } 253 func (*TaskOOM) ProtoMessage() {} 254 func (*TaskOOM) Descriptor() ([]byte, []int) { 255 return fileDescriptor_8db0813f7adfb63c, []int{5} 256 } 257 func (m *TaskOOM) XXX_Unmarshal(b []byte) error { 258 return m.Unmarshal(b) 259 } 260 func (m *TaskOOM) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 261 if deterministic { 262 return xxx_messageInfo_TaskOOM.Marshal(b, m, deterministic) 263 } else { 264 b = b[:cap(b)] 265 n, err := m.MarshalTo(b) 266 if err != nil { 267 return nil, err 268 } 269 return b[:n], nil 270 } 271 } 272 func (m *TaskOOM) XXX_Merge(src proto.Message) { 273 xxx_messageInfo_TaskOOM.Merge(m, src) 274 } 275 func (m *TaskOOM) XXX_Size() int { 276 return m.Size() 277 } 278 func (m *TaskOOM) XXX_DiscardUnknown() { 279 xxx_messageInfo_TaskOOM.DiscardUnknown(m) 280 } 281 282 var xxx_messageInfo_TaskOOM proto.InternalMessageInfo 283 284 type TaskExecAdded struct { 285 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 286 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 287 XXX_NoUnkeyedLiteral struct{} `json:"-"` 288 XXX_unrecognized []byte `json:"-"` 289 XXX_sizecache int32 `json:"-"` 290 } 291 292 func (m *TaskExecAdded) Reset() { *m = TaskExecAdded{} } 293 func (*TaskExecAdded) ProtoMessage() {} 294 func (*TaskExecAdded) Descriptor() ([]byte, []int) { 295 return fileDescriptor_8db0813f7adfb63c, []int{6} 296 } 297 func (m *TaskExecAdded) XXX_Unmarshal(b []byte) error { 298 return m.Unmarshal(b) 299 } 300 func (m *TaskExecAdded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 301 if deterministic { 302 return xxx_messageInfo_TaskExecAdded.Marshal(b, m, deterministic) 303 } else { 304 b = b[:cap(b)] 305 n, err := m.MarshalTo(b) 306 if err != nil { 307 return nil, err 308 } 309 return b[:n], nil 310 } 311 } 312 func (m *TaskExecAdded) XXX_Merge(src proto.Message) { 313 xxx_messageInfo_TaskExecAdded.Merge(m, src) 314 } 315 func (m *TaskExecAdded) XXX_Size() int { 316 return m.Size() 317 } 318 func (m *TaskExecAdded) XXX_DiscardUnknown() { 319 xxx_messageInfo_TaskExecAdded.DiscardUnknown(m) 320 } 321 322 var xxx_messageInfo_TaskExecAdded proto.InternalMessageInfo 323 324 type TaskExecStarted struct { 325 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 326 ExecID string `protobuf:"bytes,2,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 327 Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` 328 XXX_NoUnkeyedLiteral struct{} `json:"-"` 329 XXX_unrecognized []byte `json:"-"` 330 XXX_sizecache int32 `json:"-"` 331 } 332 333 func (m *TaskExecStarted) Reset() { *m = TaskExecStarted{} } 334 func (*TaskExecStarted) ProtoMessage() {} 335 func (*TaskExecStarted) Descriptor() ([]byte, []int) { 336 return fileDescriptor_8db0813f7adfb63c, []int{7} 337 } 338 func (m *TaskExecStarted) XXX_Unmarshal(b []byte) error { 339 return m.Unmarshal(b) 340 } 341 func (m *TaskExecStarted) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 342 if deterministic { 343 return xxx_messageInfo_TaskExecStarted.Marshal(b, m, deterministic) 344 } else { 345 b = b[:cap(b)] 346 n, err := m.MarshalTo(b) 347 if err != nil { 348 return nil, err 349 } 350 return b[:n], nil 351 } 352 } 353 func (m *TaskExecStarted) XXX_Merge(src proto.Message) { 354 xxx_messageInfo_TaskExecStarted.Merge(m, src) 355 } 356 func (m *TaskExecStarted) XXX_Size() int { 357 return m.Size() 358 } 359 func (m *TaskExecStarted) XXX_DiscardUnknown() { 360 xxx_messageInfo_TaskExecStarted.DiscardUnknown(m) 361 } 362 363 var xxx_messageInfo_TaskExecStarted proto.InternalMessageInfo 364 365 type TaskPaused struct { 366 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 367 XXX_NoUnkeyedLiteral struct{} `json:"-"` 368 XXX_unrecognized []byte `json:"-"` 369 XXX_sizecache int32 `json:"-"` 370 } 371 372 func (m *TaskPaused) Reset() { *m = TaskPaused{} } 373 func (*TaskPaused) ProtoMessage() {} 374 func (*TaskPaused) Descriptor() ([]byte, []int) { 375 return fileDescriptor_8db0813f7adfb63c, []int{8} 376 } 377 func (m *TaskPaused) XXX_Unmarshal(b []byte) error { 378 return m.Unmarshal(b) 379 } 380 func (m *TaskPaused) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 381 if deterministic { 382 return xxx_messageInfo_TaskPaused.Marshal(b, m, deterministic) 383 } else { 384 b = b[:cap(b)] 385 n, err := m.MarshalTo(b) 386 if err != nil { 387 return nil, err 388 } 389 return b[:n], nil 390 } 391 } 392 func (m *TaskPaused) XXX_Merge(src proto.Message) { 393 xxx_messageInfo_TaskPaused.Merge(m, src) 394 } 395 func (m *TaskPaused) XXX_Size() int { 396 return m.Size() 397 } 398 func (m *TaskPaused) XXX_DiscardUnknown() { 399 xxx_messageInfo_TaskPaused.DiscardUnknown(m) 400 } 401 402 var xxx_messageInfo_TaskPaused proto.InternalMessageInfo 403 404 type TaskResumed struct { 405 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 406 XXX_NoUnkeyedLiteral struct{} `json:"-"` 407 XXX_unrecognized []byte `json:"-"` 408 XXX_sizecache int32 `json:"-"` 409 } 410 411 func (m *TaskResumed) Reset() { *m = TaskResumed{} } 412 func (*TaskResumed) ProtoMessage() {} 413 func (*TaskResumed) Descriptor() ([]byte, []int) { 414 return fileDescriptor_8db0813f7adfb63c, []int{9} 415 } 416 func (m *TaskResumed) XXX_Unmarshal(b []byte) error { 417 return m.Unmarshal(b) 418 } 419 func (m *TaskResumed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 420 if deterministic { 421 return xxx_messageInfo_TaskResumed.Marshal(b, m, deterministic) 422 } else { 423 b = b[:cap(b)] 424 n, err := m.MarshalTo(b) 425 if err != nil { 426 return nil, err 427 } 428 return b[:n], nil 429 } 430 } 431 func (m *TaskResumed) XXX_Merge(src proto.Message) { 432 xxx_messageInfo_TaskResumed.Merge(m, src) 433 } 434 func (m *TaskResumed) XXX_Size() int { 435 return m.Size() 436 } 437 func (m *TaskResumed) XXX_DiscardUnknown() { 438 xxx_messageInfo_TaskResumed.DiscardUnknown(m) 439 } 440 441 var xxx_messageInfo_TaskResumed proto.InternalMessageInfo 442 443 type TaskCheckpointed struct { 444 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 445 Checkpoint string `protobuf:"bytes,2,opt,name=checkpoint,proto3" json:"checkpoint,omitempty"` 446 XXX_NoUnkeyedLiteral struct{} `json:"-"` 447 XXX_unrecognized []byte `json:"-"` 448 XXX_sizecache int32 `json:"-"` 449 } 450 451 func (m *TaskCheckpointed) Reset() { *m = TaskCheckpointed{} } 452 func (*TaskCheckpointed) ProtoMessage() {} 453 func (*TaskCheckpointed) Descriptor() ([]byte, []int) { 454 return fileDescriptor_8db0813f7adfb63c, []int{10} 455 } 456 func (m *TaskCheckpointed) XXX_Unmarshal(b []byte) error { 457 return m.Unmarshal(b) 458 } 459 func (m *TaskCheckpointed) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 460 if deterministic { 461 return xxx_messageInfo_TaskCheckpointed.Marshal(b, m, deterministic) 462 } else { 463 b = b[:cap(b)] 464 n, err := m.MarshalTo(b) 465 if err != nil { 466 return nil, err 467 } 468 return b[:n], nil 469 } 470 } 471 func (m *TaskCheckpointed) XXX_Merge(src proto.Message) { 472 xxx_messageInfo_TaskCheckpointed.Merge(m, src) 473 } 474 func (m *TaskCheckpointed) XXX_Size() int { 475 return m.Size() 476 } 477 func (m *TaskCheckpointed) XXX_DiscardUnknown() { 478 xxx_messageInfo_TaskCheckpointed.DiscardUnknown(m) 479 } 480 481 var xxx_messageInfo_TaskCheckpointed proto.InternalMessageInfo 482 483 func init() { 484 proto.RegisterType((*TaskCreate)(nil), "containerd.events.TaskCreate") 485 proto.RegisterType((*TaskStart)(nil), "containerd.events.TaskStart") 486 proto.RegisterType((*TaskDelete)(nil), "containerd.events.TaskDelete") 487 proto.RegisterType((*TaskIO)(nil), "containerd.events.TaskIO") 488 proto.RegisterType((*TaskExit)(nil), "containerd.events.TaskExit") 489 proto.RegisterType((*TaskOOM)(nil), "containerd.events.TaskOOM") 490 proto.RegisterType((*TaskExecAdded)(nil), "containerd.events.TaskExecAdded") 491 proto.RegisterType((*TaskExecStarted)(nil), "containerd.events.TaskExecStarted") 492 proto.RegisterType((*TaskPaused)(nil), "containerd.events.TaskPaused") 493 proto.RegisterType((*TaskResumed)(nil), "containerd.events.TaskResumed") 494 proto.RegisterType((*TaskCheckpointed)(nil), "containerd.events.TaskCheckpointed") 495 } 496 497 func init() { 498 proto.RegisterFile("github.com/containerd/containerd/api/events/task.proto", fileDescriptor_8db0813f7adfb63c) 499 } 500 501 var fileDescriptor_8db0813f7adfb63c = []byte{ 502 // 644 bytes of a gzipped FileDescriptorProto 503 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0xcd, 0x6e, 0xd3, 0x40, 504 0x10, 0xc7, 0x63, 0xa7, 0x75, 0xd3, 0x09, 0x55, 0x8b, 0x55, 0x95, 0x90, 0x83, 0x1d, 0x99, 0x4b, 505 0x4e, 0xb6, 0x08, 0x12, 0x17, 0x84, 0xd4, 0xa4, 0xe1, 0x90, 0x43, 0x95, 0xe2, 0xf6, 0x50, 0x71, 506 0x89, 0x36, 0xd9, 0x4d, 0xb2, 0x34, 0xf1, 0x5a, 0xf6, 0x18, 0x15, 0x89, 0x03, 0x8f, 0xc0, 0x23, 507 0xf0, 0x38, 0x3d, 0x20, 0xc4, 0x91, 0x53, 0xa0, 0x7e, 0x00, 0x4e, 0x3c, 0x00, 0x5a, 0xaf, 0x93, 508 0xb6, 0x54, 0x7c, 0x59, 0xe2, 0x94, 0x9d, 0xd9, 0xd9, 0xff, 0xec, 0xfc, 0x76, 0x3c, 0x81, 0xc7, 509 0x13, 0x8e, 0xd3, 0x64, 0xe8, 0x8e, 0xc4, 0xdc, 0x1b, 0x89, 0x00, 0x09, 0x0f, 0x58, 0x44, 0xaf, 510 0x2f, 0x49, 0xc8, 0x3d, 0xf6, 0x8a, 0x05, 0x18, 0x7b, 0x48, 0xe2, 0x33, 0x37, 0x8c, 0x04, 0x0a, 511 0xf3, 0xee, 0x55, 0x84, 0xab, 0x76, 0xeb, 0xbb, 0x13, 0x31, 0x11, 0xd9, 0xae, 0x27, 0x57, 0x2a, 512 0xb0, 0x6e, 0x4f, 0x84, 0x98, 0xcc, 0x98, 0x97, 0x59, 0xc3, 0x64, 0xec, 0x21, 0x9f, 0xb3, 0x18, 513 0xc9, 0x3c, 0xcc, 0x03, 0xfe, 0xee, 0x06, 0xf8, 0x3a, 0x64, 0xb1, 0x37, 0x17, 0x49, 0x80, 0xf9, 514 0xb9, 0xfd, 0x3f, 0x9e, 0x5b, 0xa5, 0x0c, 0x67, 0xc9, 0x84, 0x07, 0xde, 0x98, 0xb3, 0x19, 0x0d, 515 0x09, 0x4e, 0x95, 0x82, 0xf3, 0x4d, 0x03, 0x38, 0x21, 0xf1, 0xd9, 0x41, 0xc4, 0x08, 0x32, 0xb3, 516 0x05, 0x77, 0x56, 0x87, 0x07, 0x9c, 0xd6, 0xb4, 0x86, 0xd6, 0xdc, 0xec, 0x6c, 0xa7, 0x0b, 0xbb, 517 0x7a, 0xb0, 0xf4, 0xf7, 0xba, 0x7e, 0x75, 0x15, 0xd4, 0xa3, 0xe6, 0x1e, 0x18, 0xc3, 0x24, 0xa0, 518 0x33, 0x56, 0xd3, 0x65, 0xb4, 0x9f, 0x5b, 0xa6, 0x07, 0x46, 0x24, 0x04, 0x8e, 0xe3, 0x5a, 0xb9, 519 0x51, 0x6e, 0x56, 0x5b, 0xf7, 0xdc, 0x6b, 0xbc, 0xb2, 0x5a, 0xdc, 0x43, 0x59, 0x8b, 0x9f, 0x87, 520 0x99, 0x0f, 0x41, 0xe7, 0xa2, 0xb6, 0xd6, 0xd0, 0x9a, 0xd5, 0xd6, 0x7d, 0xf7, 0x16, 0x5c, 0x57, 521 0xde, 0xb3, 0xd7, 0xef, 0x18, 0xe9, 0xc2, 0xd6, 0x7b, 0x7d, 0x5f, 0xe7, 0xc2, 0xb4, 0x00, 0x46, 522 0x53, 0x36, 0x3a, 0x0b, 0x05, 0x0f, 0xb0, 0xb6, 0x9e, 0xe5, 0xbf, 0xe6, 0x31, 0x77, 0xa0, 0x1c, 523 0x72, 0x5a, 0x33, 0x1a, 0x5a, 0x73, 0xcb, 0x97, 0x4b, 0xe7, 0x39, 0x6c, 0x4a, 0x9d, 0x63, 0x24, 524 0x11, 0x16, 0x2a, 0x37, 0x97, 0xd4, 0xaf, 0x24, 0x3f, 0xe6, 0x0c, 0xbb, 0x6c, 0xc6, 0x0a, 0x32, 525 0xbc, 0x25, 0x6a, 0xda, 0x50, 0x65, 0xe7, 0x1c, 0x07, 0x31, 0x12, 0x4c, 0x24, 0x42, 0xb9, 0x03, 526 0xd2, 0x75, 0x9c, 0x79, 0xcc, 0x36, 0x6c, 0x4a, 0x8b, 0xd1, 0x01, 0xc1, 0x1c, 0x5a, 0xdd, 0x55, 527 0x8d, 0xe6, 0x2e, 0x5f, 0xdd, 0x3d, 0x59, 0x36, 0x5a, 0xa7, 0x72, 0xb1, 0xb0, 0x4b, 0xef, 0xbe, 528 0xd8, 0x9a, 0x5f, 0x51, 0xc7, 0xda, 0x68, 0xee, 0x81, 0xce, 0xa9, 0xa2, 0x96, 0x53, 0xed, 0xfa, 529 0x3a, 0xa7, 0xce, 0x4b, 0x30, 0x14, 0x6b, 0x73, 0x17, 0xd6, 0x63, 0xa4, 0x3c, 0x50, 0x45, 0xf8, 530 0xca, 0x90, 0x2f, 0x1e, 0x23, 0x15, 0x09, 0x2e, 0x5f, 0x5c, 0x59, 0xb9, 0x9f, 0x45, 0x51, 0x76, 531 0x5d, 0xe5, 0x67, 0x51, 0x64, 0xd6, 0xa1, 0x82, 0x2c, 0x9a, 0xf3, 0x80, 0xcc, 0xb2, 0x9b, 0x56, 532 0xfc, 0x95, 0xed, 0x7c, 0xd0, 0xa0, 0x22, 0x93, 0x3d, 0x3b, 0xe7, 0x58, 0xb0, 0xfd, 0xf4, 0x9c, 533 0xdc, 0x8d, 0x22, 0x96, 0x48, 0xcb, 0xbf, 0x44, 0xba, 0xf6, 0x7b, 0xa4, 0xeb, 0x45, 0x90, 0x3a, 534 0x4f, 0x61, 0x43, 0x56, 0xd3, 0xef, 0x1f, 0x16, 0x29, 0xc6, 0x99, 0xc2, 0x96, 0x82, 0xc1, 0x46, 535 0x6d, 0x4a, 0x19, 0x2d, 0x44, 0xe4, 0x01, 0x6c, 0xb0, 0x73, 0x36, 0x1a, 0xac, 0xb0, 0x40, 0xba, 536 0xb0, 0x0d, 0xa9, 0xd9, 0xeb, 0xfa, 0x86, 0xdc, 0xea, 0x51, 0xe7, 0x0d, 0x6c, 0x2f, 0x33, 0x65, 537 0xdf, 0xc2, 0x7f, 0xcc, 0x75, 0xfb, 0x29, 0x9c, 0x7d, 0xf5, 0xc5, 0x1c, 0x91, 0x24, 0x2e, 0x96, 538 0xd8, 0x69, 0x43, 0x55, 0x2a, 0xf8, 0x2c, 0x4e, 0xe6, 0x05, 0x25, 0xc6, 0xb0, 0x93, 0x8d, 0xbe, 539 0xd5, 0xb8, 0x28, 0xc8, 0xe0, 0xe6, 0x10, 0xd2, 0x7f, 0x1e, 0x42, 0x9d, 0xa3, 0x8b, 0x4b, 0xab, 540 0xf4, 0xf9, 0xd2, 0x2a, 0xbd, 0x4d, 0x2d, 0xed, 0x22, 0xb5, 0xb4, 0x4f, 0xa9, 0xa5, 0x7d, 0x4d, 541 0x2d, 0xed, 0xfd, 0x77, 0x4b, 0x7b, 0xd1, 0xfa, 0x87, 0x7f, 0x9f, 0x27, 0xea, 0xe7, 0xb4, 0x74, 542 0x5a, 0x1e, 0x1a, 0x59, 0x47, 0x3e, 0xfa, 0x11, 0x00, 0x00, 0xff, 0xff, 0xc5, 0x58, 0x0f, 0xec, 543 0xbe, 0x06, 0x00, 0x00, 544 } 545 546 // Field returns the value for the given fieldpath as a string, if defined. 547 // If the value is not defined, the second value will be false. 548 func (m *TaskCreate) Field(fieldpath []string) (string, bool) { 549 if len(fieldpath) == 0 { 550 return "", false 551 } 552 553 switch fieldpath[0] { 554 // unhandled: rootfs 555 // unhandled: pid 556 case "container_id": 557 return string(m.ContainerID), len(m.ContainerID) > 0 558 case "bundle": 559 return string(m.Bundle), len(m.Bundle) > 0 560 case "io": 561 // NOTE(stevvooe): This is probably not correct in many cases. 562 // We assume that the target message also implements the Field 563 // method, which isn't likely true in a lot of cases. 564 // 565 // If you have a broken build and have found this comment, 566 // you may be closer to a solution. 567 if m.IO == nil { 568 return "", false 569 } 570 571 return m.IO.Field(fieldpath[1:]) 572 case "checkpoint": 573 return string(m.Checkpoint), len(m.Checkpoint) > 0 574 } 575 return "", false 576 } 577 578 // Field returns the value for the given fieldpath as a string, if defined. 579 // If the value is not defined, the second value will be false. 580 func (m *TaskStart) Field(fieldpath []string) (string, bool) { 581 if len(fieldpath) == 0 { 582 return "", false 583 } 584 585 switch fieldpath[0] { 586 // unhandled: pid 587 case "container_id": 588 return string(m.ContainerID), len(m.ContainerID) > 0 589 } 590 return "", false 591 } 592 593 // Field returns the value for the given fieldpath as a string, if defined. 594 // If the value is not defined, the second value will be false. 595 func (m *TaskDelete) Field(fieldpath []string) (string, bool) { 596 if len(fieldpath) == 0 { 597 return "", false 598 } 599 600 switch fieldpath[0] { 601 // unhandled: pid 602 // unhandled: exit_status 603 // unhandled: exited_at 604 case "container_id": 605 return string(m.ContainerID), len(m.ContainerID) > 0 606 case "id": 607 return string(m.ID), len(m.ID) > 0 608 } 609 return "", false 610 } 611 612 // Field returns the value for the given fieldpath as a string, if defined. 613 // If the value is not defined, the second value will be false. 614 func (m *TaskIO) Field(fieldpath []string) (string, bool) { 615 if len(fieldpath) == 0 { 616 return "", false 617 } 618 619 switch fieldpath[0] { 620 case "stdin": 621 return string(m.Stdin), len(m.Stdin) > 0 622 case "stdout": 623 return string(m.Stdout), len(m.Stdout) > 0 624 case "stderr": 625 return string(m.Stderr), len(m.Stderr) > 0 626 case "terminal": 627 return fmt.Sprint(m.Terminal), true 628 } 629 return "", false 630 } 631 632 // Field returns the value for the given fieldpath as a string, if defined. 633 // If the value is not defined, the second value will be false. 634 func (m *TaskExit) Field(fieldpath []string) (string, bool) { 635 if len(fieldpath) == 0 { 636 return "", false 637 } 638 639 switch fieldpath[0] { 640 // unhandled: pid 641 // unhandled: exit_status 642 // unhandled: exited_at 643 case "container_id": 644 return string(m.ContainerID), len(m.ContainerID) > 0 645 case "id": 646 return string(m.ID), len(m.ID) > 0 647 } 648 return "", false 649 } 650 651 // Field returns the value for the given fieldpath as a string, if defined. 652 // If the value is not defined, the second value will be false. 653 func (m *TaskOOM) Field(fieldpath []string) (string, bool) { 654 if len(fieldpath) == 0 { 655 return "", false 656 } 657 658 switch fieldpath[0] { 659 case "container_id": 660 return string(m.ContainerID), len(m.ContainerID) > 0 661 } 662 return "", false 663 } 664 665 // Field returns the value for the given fieldpath as a string, if defined. 666 // If the value is not defined, the second value will be false. 667 func (m *TaskExecAdded) Field(fieldpath []string) (string, bool) { 668 if len(fieldpath) == 0 { 669 return "", false 670 } 671 672 switch fieldpath[0] { 673 case "container_id": 674 return string(m.ContainerID), len(m.ContainerID) > 0 675 case "exec_id": 676 return string(m.ExecID), len(m.ExecID) > 0 677 } 678 return "", false 679 } 680 681 // Field returns the value for the given fieldpath as a string, if defined. 682 // If the value is not defined, the second value will be false. 683 func (m *TaskExecStarted) Field(fieldpath []string) (string, bool) { 684 if len(fieldpath) == 0 { 685 return "", false 686 } 687 688 switch fieldpath[0] { 689 // unhandled: pid 690 case "container_id": 691 return string(m.ContainerID), len(m.ContainerID) > 0 692 case "exec_id": 693 return string(m.ExecID), len(m.ExecID) > 0 694 } 695 return "", false 696 } 697 698 // Field returns the value for the given fieldpath as a string, if defined. 699 // If the value is not defined, the second value will be false. 700 func (m *TaskPaused) Field(fieldpath []string) (string, bool) { 701 if len(fieldpath) == 0 { 702 return "", false 703 } 704 705 switch fieldpath[0] { 706 case "container_id": 707 return string(m.ContainerID), len(m.ContainerID) > 0 708 } 709 return "", false 710 } 711 712 // Field returns the value for the given fieldpath as a string, if defined. 713 // If the value is not defined, the second value will be false. 714 func (m *TaskResumed) Field(fieldpath []string) (string, bool) { 715 if len(fieldpath) == 0 { 716 return "", false 717 } 718 719 switch fieldpath[0] { 720 case "container_id": 721 return string(m.ContainerID), len(m.ContainerID) > 0 722 } 723 return "", false 724 } 725 726 // Field returns the value for the given fieldpath as a string, if defined. 727 // If the value is not defined, the second value will be false. 728 func (m *TaskCheckpointed) Field(fieldpath []string) (string, bool) { 729 if len(fieldpath) == 0 { 730 return "", false 731 } 732 733 switch fieldpath[0] { 734 case "container_id": 735 return string(m.ContainerID), len(m.ContainerID) > 0 736 case "checkpoint": 737 return string(m.Checkpoint), len(m.Checkpoint) > 0 738 } 739 return "", false 740 } 741 func (m *TaskCreate) Marshal() (dAtA []byte, err error) { 742 size := m.Size() 743 dAtA = make([]byte, size) 744 n, err := m.MarshalTo(dAtA) 745 if err != nil { 746 return nil, err 747 } 748 return dAtA[:n], nil 749 } 750 751 func (m *TaskCreate) MarshalTo(dAtA []byte) (int, error) { 752 var i int 753 _ = i 754 var l int 755 _ = l 756 if len(m.ContainerID) > 0 { 757 dAtA[i] = 0xa 758 i++ 759 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 760 i += copy(dAtA[i:], m.ContainerID) 761 } 762 if len(m.Bundle) > 0 { 763 dAtA[i] = 0x12 764 i++ 765 i = encodeVarintTask(dAtA, i, uint64(len(m.Bundle))) 766 i += copy(dAtA[i:], m.Bundle) 767 } 768 if len(m.Rootfs) > 0 { 769 for _, msg := range m.Rootfs { 770 dAtA[i] = 0x1a 771 i++ 772 i = encodeVarintTask(dAtA, i, uint64(msg.Size())) 773 n, err := msg.MarshalTo(dAtA[i:]) 774 if err != nil { 775 return 0, err 776 } 777 i += n 778 } 779 } 780 if m.IO != nil { 781 dAtA[i] = 0x22 782 i++ 783 i = encodeVarintTask(dAtA, i, uint64(m.IO.Size())) 784 n1, err := m.IO.MarshalTo(dAtA[i:]) 785 if err != nil { 786 return 0, err 787 } 788 i += n1 789 } 790 if len(m.Checkpoint) > 0 { 791 dAtA[i] = 0x2a 792 i++ 793 i = encodeVarintTask(dAtA, i, uint64(len(m.Checkpoint))) 794 i += copy(dAtA[i:], m.Checkpoint) 795 } 796 if m.Pid != 0 { 797 dAtA[i] = 0x30 798 i++ 799 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 800 } 801 if m.XXX_unrecognized != nil { 802 i += copy(dAtA[i:], m.XXX_unrecognized) 803 } 804 return i, nil 805 } 806 807 func (m *TaskStart) Marshal() (dAtA []byte, err error) { 808 size := m.Size() 809 dAtA = make([]byte, size) 810 n, err := m.MarshalTo(dAtA) 811 if err != nil { 812 return nil, err 813 } 814 return dAtA[:n], nil 815 } 816 817 func (m *TaskStart) MarshalTo(dAtA []byte) (int, error) { 818 var i int 819 _ = i 820 var l int 821 _ = l 822 if len(m.ContainerID) > 0 { 823 dAtA[i] = 0xa 824 i++ 825 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 826 i += copy(dAtA[i:], m.ContainerID) 827 } 828 if m.Pid != 0 { 829 dAtA[i] = 0x10 830 i++ 831 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 832 } 833 if m.XXX_unrecognized != nil { 834 i += copy(dAtA[i:], m.XXX_unrecognized) 835 } 836 return i, nil 837 } 838 839 func (m *TaskDelete) Marshal() (dAtA []byte, err error) { 840 size := m.Size() 841 dAtA = make([]byte, size) 842 n, err := m.MarshalTo(dAtA) 843 if err != nil { 844 return nil, err 845 } 846 return dAtA[:n], nil 847 } 848 849 func (m *TaskDelete) MarshalTo(dAtA []byte) (int, error) { 850 var i int 851 _ = i 852 var l int 853 _ = l 854 if len(m.ContainerID) > 0 { 855 dAtA[i] = 0xa 856 i++ 857 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 858 i += copy(dAtA[i:], m.ContainerID) 859 } 860 if m.Pid != 0 { 861 dAtA[i] = 0x10 862 i++ 863 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 864 } 865 if m.ExitStatus != 0 { 866 dAtA[i] = 0x18 867 i++ 868 i = encodeVarintTask(dAtA, i, uint64(m.ExitStatus)) 869 } 870 dAtA[i] = 0x22 871 i++ 872 i = encodeVarintTask(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt))) 873 n2, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i:]) 874 if err != nil { 875 return 0, err 876 } 877 i += n2 878 if len(m.ID) > 0 { 879 dAtA[i] = 0x2a 880 i++ 881 i = encodeVarintTask(dAtA, i, uint64(len(m.ID))) 882 i += copy(dAtA[i:], m.ID) 883 } 884 if m.XXX_unrecognized != nil { 885 i += copy(dAtA[i:], m.XXX_unrecognized) 886 } 887 return i, nil 888 } 889 890 func (m *TaskIO) Marshal() (dAtA []byte, err error) { 891 size := m.Size() 892 dAtA = make([]byte, size) 893 n, err := m.MarshalTo(dAtA) 894 if err != nil { 895 return nil, err 896 } 897 return dAtA[:n], nil 898 } 899 900 func (m *TaskIO) MarshalTo(dAtA []byte) (int, error) { 901 var i int 902 _ = i 903 var l int 904 _ = l 905 if len(m.Stdin) > 0 { 906 dAtA[i] = 0xa 907 i++ 908 i = encodeVarintTask(dAtA, i, uint64(len(m.Stdin))) 909 i += copy(dAtA[i:], m.Stdin) 910 } 911 if len(m.Stdout) > 0 { 912 dAtA[i] = 0x12 913 i++ 914 i = encodeVarintTask(dAtA, i, uint64(len(m.Stdout))) 915 i += copy(dAtA[i:], m.Stdout) 916 } 917 if len(m.Stderr) > 0 { 918 dAtA[i] = 0x1a 919 i++ 920 i = encodeVarintTask(dAtA, i, uint64(len(m.Stderr))) 921 i += copy(dAtA[i:], m.Stderr) 922 } 923 if m.Terminal { 924 dAtA[i] = 0x20 925 i++ 926 if m.Terminal { 927 dAtA[i] = 1 928 } else { 929 dAtA[i] = 0 930 } 931 i++ 932 } 933 if m.XXX_unrecognized != nil { 934 i += copy(dAtA[i:], m.XXX_unrecognized) 935 } 936 return i, nil 937 } 938 939 func (m *TaskExit) Marshal() (dAtA []byte, err error) { 940 size := m.Size() 941 dAtA = make([]byte, size) 942 n, err := m.MarshalTo(dAtA) 943 if err != nil { 944 return nil, err 945 } 946 return dAtA[:n], nil 947 } 948 949 func (m *TaskExit) MarshalTo(dAtA []byte) (int, error) { 950 var i int 951 _ = i 952 var l int 953 _ = l 954 if len(m.ContainerID) > 0 { 955 dAtA[i] = 0xa 956 i++ 957 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 958 i += copy(dAtA[i:], m.ContainerID) 959 } 960 if len(m.ID) > 0 { 961 dAtA[i] = 0x12 962 i++ 963 i = encodeVarintTask(dAtA, i, uint64(len(m.ID))) 964 i += copy(dAtA[i:], m.ID) 965 } 966 if m.Pid != 0 { 967 dAtA[i] = 0x18 968 i++ 969 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 970 } 971 if m.ExitStatus != 0 { 972 dAtA[i] = 0x20 973 i++ 974 i = encodeVarintTask(dAtA, i, uint64(m.ExitStatus)) 975 } 976 dAtA[i] = 0x2a 977 i++ 978 i = encodeVarintTask(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt))) 979 n3, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i:]) 980 if err != nil { 981 return 0, err 982 } 983 i += n3 984 if m.XXX_unrecognized != nil { 985 i += copy(dAtA[i:], m.XXX_unrecognized) 986 } 987 return i, nil 988 } 989 990 func (m *TaskOOM) Marshal() (dAtA []byte, err error) { 991 size := m.Size() 992 dAtA = make([]byte, size) 993 n, err := m.MarshalTo(dAtA) 994 if err != nil { 995 return nil, err 996 } 997 return dAtA[:n], nil 998 } 999 1000 func (m *TaskOOM) MarshalTo(dAtA []byte) (int, error) { 1001 var i int 1002 _ = i 1003 var l int 1004 _ = l 1005 if len(m.ContainerID) > 0 { 1006 dAtA[i] = 0xa 1007 i++ 1008 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1009 i += copy(dAtA[i:], m.ContainerID) 1010 } 1011 if m.XXX_unrecognized != nil { 1012 i += copy(dAtA[i:], m.XXX_unrecognized) 1013 } 1014 return i, nil 1015 } 1016 1017 func (m *TaskExecAdded) Marshal() (dAtA []byte, err error) { 1018 size := m.Size() 1019 dAtA = make([]byte, size) 1020 n, err := m.MarshalTo(dAtA) 1021 if err != nil { 1022 return nil, err 1023 } 1024 return dAtA[:n], nil 1025 } 1026 1027 func (m *TaskExecAdded) MarshalTo(dAtA []byte) (int, error) { 1028 var i int 1029 _ = i 1030 var l int 1031 _ = l 1032 if len(m.ContainerID) > 0 { 1033 dAtA[i] = 0xa 1034 i++ 1035 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1036 i += copy(dAtA[i:], m.ContainerID) 1037 } 1038 if len(m.ExecID) > 0 { 1039 dAtA[i] = 0x12 1040 i++ 1041 i = encodeVarintTask(dAtA, i, uint64(len(m.ExecID))) 1042 i += copy(dAtA[i:], m.ExecID) 1043 } 1044 if m.XXX_unrecognized != nil { 1045 i += copy(dAtA[i:], m.XXX_unrecognized) 1046 } 1047 return i, nil 1048 } 1049 1050 func (m *TaskExecStarted) Marshal() (dAtA []byte, err error) { 1051 size := m.Size() 1052 dAtA = make([]byte, size) 1053 n, err := m.MarshalTo(dAtA) 1054 if err != nil { 1055 return nil, err 1056 } 1057 return dAtA[:n], nil 1058 } 1059 1060 func (m *TaskExecStarted) MarshalTo(dAtA []byte) (int, error) { 1061 var i int 1062 _ = i 1063 var l int 1064 _ = l 1065 if len(m.ContainerID) > 0 { 1066 dAtA[i] = 0xa 1067 i++ 1068 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1069 i += copy(dAtA[i:], m.ContainerID) 1070 } 1071 if len(m.ExecID) > 0 { 1072 dAtA[i] = 0x12 1073 i++ 1074 i = encodeVarintTask(dAtA, i, uint64(len(m.ExecID))) 1075 i += copy(dAtA[i:], m.ExecID) 1076 } 1077 if m.Pid != 0 { 1078 dAtA[i] = 0x18 1079 i++ 1080 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 1081 } 1082 if m.XXX_unrecognized != nil { 1083 i += copy(dAtA[i:], m.XXX_unrecognized) 1084 } 1085 return i, nil 1086 } 1087 1088 func (m *TaskPaused) Marshal() (dAtA []byte, err error) { 1089 size := m.Size() 1090 dAtA = make([]byte, size) 1091 n, err := m.MarshalTo(dAtA) 1092 if err != nil { 1093 return nil, err 1094 } 1095 return dAtA[:n], nil 1096 } 1097 1098 func (m *TaskPaused) MarshalTo(dAtA []byte) (int, error) { 1099 var i int 1100 _ = i 1101 var l int 1102 _ = l 1103 if len(m.ContainerID) > 0 { 1104 dAtA[i] = 0xa 1105 i++ 1106 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1107 i += copy(dAtA[i:], m.ContainerID) 1108 } 1109 if m.XXX_unrecognized != nil { 1110 i += copy(dAtA[i:], m.XXX_unrecognized) 1111 } 1112 return i, nil 1113 } 1114 1115 func (m *TaskResumed) Marshal() (dAtA []byte, err error) { 1116 size := m.Size() 1117 dAtA = make([]byte, size) 1118 n, err := m.MarshalTo(dAtA) 1119 if err != nil { 1120 return nil, err 1121 } 1122 return dAtA[:n], nil 1123 } 1124 1125 func (m *TaskResumed) MarshalTo(dAtA []byte) (int, error) { 1126 var i int 1127 _ = i 1128 var l int 1129 _ = l 1130 if len(m.ContainerID) > 0 { 1131 dAtA[i] = 0xa 1132 i++ 1133 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1134 i += copy(dAtA[i:], m.ContainerID) 1135 } 1136 if m.XXX_unrecognized != nil { 1137 i += copy(dAtA[i:], m.XXX_unrecognized) 1138 } 1139 return i, nil 1140 } 1141 1142 func (m *TaskCheckpointed) Marshal() (dAtA []byte, err error) { 1143 size := m.Size() 1144 dAtA = make([]byte, size) 1145 n, err := m.MarshalTo(dAtA) 1146 if err != nil { 1147 return nil, err 1148 } 1149 return dAtA[:n], nil 1150 } 1151 1152 func (m *TaskCheckpointed) MarshalTo(dAtA []byte) (int, error) { 1153 var i int 1154 _ = i 1155 var l int 1156 _ = l 1157 if len(m.ContainerID) > 0 { 1158 dAtA[i] = 0xa 1159 i++ 1160 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 1161 i += copy(dAtA[i:], m.ContainerID) 1162 } 1163 if len(m.Checkpoint) > 0 { 1164 dAtA[i] = 0x12 1165 i++ 1166 i = encodeVarintTask(dAtA, i, uint64(len(m.Checkpoint))) 1167 i += copy(dAtA[i:], m.Checkpoint) 1168 } 1169 if m.XXX_unrecognized != nil { 1170 i += copy(dAtA[i:], m.XXX_unrecognized) 1171 } 1172 return i, nil 1173 } 1174 1175 func encodeVarintTask(dAtA []byte, offset int, v uint64) int { 1176 for v >= 1<<7 { 1177 dAtA[offset] = uint8(v&0x7f | 0x80) 1178 v >>= 7 1179 offset++ 1180 } 1181 dAtA[offset] = uint8(v) 1182 return offset + 1 1183 } 1184 func (m *TaskCreate) Size() (n int) { 1185 if m == nil { 1186 return 0 1187 } 1188 var l int 1189 _ = l 1190 l = len(m.ContainerID) 1191 if l > 0 { 1192 n += 1 + l + sovTask(uint64(l)) 1193 } 1194 l = len(m.Bundle) 1195 if l > 0 { 1196 n += 1 + l + sovTask(uint64(l)) 1197 } 1198 if len(m.Rootfs) > 0 { 1199 for _, e := range m.Rootfs { 1200 l = e.Size() 1201 n += 1 + l + sovTask(uint64(l)) 1202 } 1203 } 1204 if m.IO != nil { 1205 l = m.IO.Size() 1206 n += 1 + l + sovTask(uint64(l)) 1207 } 1208 l = len(m.Checkpoint) 1209 if l > 0 { 1210 n += 1 + l + sovTask(uint64(l)) 1211 } 1212 if m.Pid != 0 { 1213 n += 1 + sovTask(uint64(m.Pid)) 1214 } 1215 if m.XXX_unrecognized != nil { 1216 n += len(m.XXX_unrecognized) 1217 } 1218 return n 1219 } 1220 1221 func (m *TaskStart) Size() (n int) { 1222 if m == nil { 1223 return 0 1224 } 1225 var l int 1226 _ = l 1227 l = len(m.ContainerID) 1228 if l > 0 { 1229 n += 1 + l + sovTask(uint64(l)) 1230 } 1231 if m.Pid != 0 { 1232 n += 1 + sovTask(uint64(m.Pid)) 1233 } 1234 if m.XXX_unrecognized != nil { 1235 n += len(m.XXX_unrecognized) 1236 } 1237 return n 1238 } 1239 1240 func (m *TaskDelete) Size() (n int) { 1241 if m == nil { 1242 return 0 1243 } 1244 var l int 1245 _ = l 1246 l = len(m.ContainerID) 1247 if l > 0 { 1248 n += 1 + l + sovTask(uint64(l)) 1249 } 1250 if m.Pid != 0 { 1251 n += 1 + sovTask(uint64(m.Pid)) 1252 } 1253 if m.ExitStatus != 0 { 1254 n += 1 + sovTask(uint64(m.ExitStatus)) 1255 } 1256 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 1257 n += 1 + l + sovTask(uint64(l)) 1258 l = len(m.ID) 1259 if l > 0 { 1260 n += 1 + l + sovTask(uint64(l)) 1261 } 1262 if m.XXX_unrecognized != nil { 1263 n += len(m.XXX_unrecognized) 1264 } 1265 return n 1266 } 1267 1268 func (m *TaskIO) Size() (n int) { 1269 if m == nil { 1270 return 0 1271 } 1272 var l int 1273 _ = l 1274 l = len(m.Stdin) 1275 if l > 0 { 1276 n += 1 + l + sovTask(uint64(l)) 1277 } 1278 l = len(m.Stdout) 1279 if l > 0 { 1280 n += 1 + l + sovTask(uint64(l)) 1281 } 1282 l = len(m.Stderr) 1283 if l > 0 { 1284 n += 1 + l + sovTask(uint64(l)) 1285 } 1286 if m.Terminal { 1287 n += 2 1288 } 1289 if m.XXX_unrecognized != nil { 1290 n += len(m.XXX_unrecognized) 1291 } 1292 return n 1293 } 1294 1295 func (m *TaskExit) Size() (n int) { 1296 if m == nil { 1297 return 0 1298 } 1299 var l int 1300 _ = l 1301 l = len(m.ContainerID) 1302 if l > 0 { 1303 n += 1 + l + sovTask(uint64(l)) 1304 } 1305 l = len(m.ID) 1306 if l > 0 { 1307 n += 1 + l + sovTask(uint64(l)) 1308 } 1309 if m.Pid != 0 { 1310 n += 1 + sovTask(uint64(m.Pid)) 1311 } 1312 if m.ExitStatus != 0 { 1313 n += 1 + sovTask(uint64(m.ExitStatus)) 1314 } 1315 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 1316 n += 1 + l + sovTask(uint64(l)) 1317 if m.XXX_unrecognized != nil { 1318 n += len(m.XXX_unrecognized) 1319 } 1320 return n 1321 } 1322 1323 func (m *TaskOOM) Size() (n int) { 1324 if m == nil { 1325 return 0 1326 } 1327 var l int 1328 _ = l 1329 l = len(m.ContainerID) 1330 if l > 0 { 1331 n += 1 + l + sovTask(uint64(l)) 1332 } 1333 if m.XXX_unrecognized != nil { 1334 n += len(m.XXX_unrecognized) 1335 } 1336 return n 1337 } 1338 1339 func (m *TaskExecAdded) Size() (n int) { 1340 if m == nil { 1341 return 0 1342 } 1343 var l int 1344 _ = l 1345 l = len(m.ContainerID) 1346 if l > 0 { 1347 n += 1 + l + sovTask(uint64(l)) 1348 } 1349 l = len(m.ExecID) 1350 if l > 0 { 1351 n += 1 + l + sovTask(uint64(l)) 1352 } 1353 if m.XXX_unrecognized != nil { 1354 n += len(m.XXX_unrecognized) 1355 } 1356 return n 1357 } 1358 1359 func (m *TaskExecStarted) Size() (n int) { 1360 if m == nil { 1361 return 0 1362 } 1363 var l int 1364 _ = l 1365 l = len(m.ContainerID) 1366 if l > 0 { 1367 n += 1 + l + sovTask(uint64(l)) 1368 } 1369 l = len(m.ExecID) 1370 if l > 0 { 1371 n += 1 + l + sovTask(uint64(l)) 1372 } 1373 if m.Pid != 0 { 1374 n += 1 + sovTask(uint64(m.Pid)) 1375 } 1376 if m.XXX_unrecognized != nil { 1377 n += len(m.XXX_unrecognized) 1378 } 1379 return n 1380 } 1381 1382 func (m *TaskPaused) Size() (n int) { 1383 if m == nil { 1384 return 0 1385 } 1386 var l int 1387 _ = l 1388 l = len(m.ContainerID) 1389 if l > 0 { 1390 n += 1 + l + sovTask(uint64(l)) 1391 } 1392 if m.XXX_unrecognized != nil { 1393 n += len(m.XXX_unrecognized) 1394 } 1395 return n 1396 } 1397 1398 func (m *TaskResumed) Size() (n int) { 1399 if m == nil { 1400 return 0 1401 } 1402 var l int 1403 _ = l 1404 l = len(m.ContainerID) 1405 if l > 0 { 1406 n += 1 + l + sovTask(uint64(l)) 1407 } 1408 if m.XXX_unrecognized != nil { 1409 n += len(m.XXX_unrecognized) 1410 } 1411 return n 1412 } 1413 1414 func (m *TaskCheckpointed) Size() (n int) { 1415 if m == nil { 1416 return 0 1417 } 1418 var l int 1419 _ = l 1420 l = len(m.ContainerID) 1421 if l > 0 { 1422 n += 1 + l + sovTask(uint64(l)) 1423 } 1424 l = len(m.Checkpoint) 1425 if l > 0 { 1426 n += 1 + l + sovTask(uint64(l)) 1427 } 1428 if m.XXX_unrecognized != nil { 1429 n += len(m.XXX_unrecognized) 1430 } 1431 return n 1432 } 1433 1434 func sovTask(x uint64) (n int) { 1435 for { 1436 n++ 1437 x >>= 7 1438 if x == 0 { 1439 break 1440 } 1441 } 1442 return n 1443 } 1444 func sozTask(x uint64) (n int) { 1445 return sovTask(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1446 } 1447 func (this *TaskCreate) String() string { 1448 if this == nil { 1449 return "nil" 1450 } 1451 s := strings.Join([]string{`&TaskCreate{`, 1452 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1453 `Bundle:` + fmt.Sprintf("%v", this.Bundle) + `,`, 1454 `Rootfs:` + strings.Replace(fmt.Sprintf("%v", this.Rootfs), "Mount", "types.Mount", 1) + `,`, 1455 `IO:` + strings.Replace(fmt.Sprintf("%v", this.IO), "TaskIO", "TaskIO", 1) + `,`, 1456 `Checkpoint:` + fmt.Sprintf("%v", this.Checkpoint) + `,`, 1457 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1458 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1459 `}`, 1460 }, "") 1461 return s 1462 } 1463 func (this *TaskStart) String() string { 1464 if this == nil { 1465 return "nil" 1466 } 1467 s := strings.Join([]string{`&TaskStart{`, 1468 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1469 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1470 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1471 `}`, 1472 }, "") 1473 return s 1474 } 1475 func (this *TaskDelete) String() string { 1476 if this == nil { 1477 return "nil" 1478 } 1479 s := strings.Join([]string{`&TaskDelete{`, 1480 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1481 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1482 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 1483 `ExitedAt:` + strings.Replace(strings.Replace(this.ExitedAt.String(), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 1484 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 1485 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1486 `}`, 1487 }, "") 1488 return s 1489 } 1490 func (this *TaskIO) String() string { 1491 if this == nil { 1492 return "nil" 1493 } 1494 s := strings.Join([]string{`&TaskIO{`, 1495 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 1496 `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, 1497 `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, 1498 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 1499 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1500 `}`, 1501 }, "") 1502 return s 1503 } 1504 func (this *TaskExit) String() string { 1505 if this == nil { 1506 return "nil" 1507 } 1508 s := strings.Join([]string{`&TaskExit{`, 1509 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1510 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 1511 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1512 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 1513 `ExitedAt:` + strings.Replace(strings.Replace(this.ExitedAt.String(), "Timestamp", "types1.Timestamp", 1), `&`, ``, 1) + `,`, 1514 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1515 `}`, 1516 }, "") 1517 return s 1518 } 1519 func (this *TaskOOM) String() string { 1520 if this == nil { 1521 return "nil" 1522 } 1523 s := strings.Join([]string{`&TaskOOM{`, 1524 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1525 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1526 `}`, 1527 }, "") 1528 return s 1529 } 1530 func (this *TaskExecAdded) String() string { 1531 if this == nil { 1532 return "nil" 1533 } 1534 s := strings.Join([]string{`&TaskExecAdded{`, 1535 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1536 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 1537 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1538 `}`, 1539 }, "") 1540 return s 1541 } 1542 func (this *TaskExecStarted) String() string { 1543 if this == nil { 1544 return "nil" 1545 } 1546 s := strings.Join([]string{`&TaskExecStarted{`, 1547 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1548 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 1549 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 1550 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1551 `}`, 1552 }, "") 1553 return s 1554 } 1555 func (this *TaskPaused) String() string { 1556 if this == nil { 1557 return "nil" 1558 } 1559 s := strings.Join([]string{`&TaskPaused{`, 1560 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1561 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1562 `}`, 1563 }, "") 1564 return s 1565 } 1566 func (this *TaskResumed) String() string { 1567 if this == nil { 1568 return "nil" 1569 } 1570 s := strings.Join([]string{`&TaskResumed{`, 1571 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1572 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1573 `}`, 1574 }, "") 1575 return s 1576 } 1577 func (this *TaskCheckpointed) String() string { 1578 if this == nil { 1579 return "nil" 1580 } 1581 s := strings.Join([]string{`&TaskCheckpointed{`, 1582 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 1583 `Checkpoint:` + fmt.Sprintf("%v", this.Checkpoint) + `,`, 1584 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 1585 `}`, 1586 }, "") 1587 return s 1588 } 1589 func valueToStringTask(v interface{}) string { 1590 rv := reflect.ValueOf(v) 1591 if rv.IsNil() { 1592 return "nil" 1593 } 1594 pv := reflect.Indirect(rv).Interface() 1595 return fmt.Sprintf("*%v", pv) 1596 } 1597 func (m *TaskCreate) Unmarshal(dAtA []byte) error { 1598 l := len(dAtA) 1599 iNdEx := 0 1600 for iNdEx < l { 1601 preIndex := iNdEx 1602 var wire uint64 1603 for shift := uint(0); ; shift += 7 { 1604 if shift >= 64 { 1605 return ErrIntOverflowTask 1606 } 1607 if iNdEx >= l { 1608 return io.ErrUnexpectedEOF 1609 } 1610 b := dAtA[iNdEx] 1611 iNdEx++ 1612 wire |= uint64(b&0x7F) << shift 1613 if b < 0x80 { 1614 break 1615 } 1616 } 1617 fieldNum := int32(wire >> 3) 1618 wireType := int(wire & 0x7) 1619 if wireType == 4 { 1620 return fmt.Errorf("proto: TaskCreate: wiretype end group for non-group") 1621 } 1622 if fieldNum <= 0 { 1623 return fmt.Errorf("proto: TaskCreate: illegal tag %d (wire type %d)", fieldNum, wire) 1624 } 1625 switch fieldNum { 1626 case 1: 1627 if wireType != 2 { 1628 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 1629 } 1630 var stringLen uint64 1631 for shift := uint(0); ; shift += 7 { 1632 if shift >= 64 { 1633 return ErrIntOverflowTask 1634 } 1635 if iNdEx >= l { 1636 return io.ErrUnexpectedEOF 1637 } 1638 b := dAtA[iNdEx] 1639 iNdEx++ 1640 stringLen |= uint64(b&0x7F) << shift 1641 if b < 0x80 { 1642 break 1643 } 1644 } 1645 intStringLen := int(stringLen) 1646 if intStringLen < 0 { 1647 return ErrInvalidLengthTask 1648 } 1649 postIndex := iNdEx + intStringLen 1650 if postIndex < 0 { 1651 return ErrInvalidLengthTask 1652 } 1653 if postIndex > l { 1654 return io.ErrUnexpectedEOF 1655 } 1656 m.ContainerID = string(dAtA[iNdEx:postIndex]) 1657 iNdEx = postIndex 1658 case 2: 1659 if wireType != 2 { 1660 return fmt.Errorf("proto: wrong wireType = %d for field Bundle", wireType) 1661 } 1662 var stringLen uint64 1663 for shift := uint(0); ; shift += 7 { 1664 if shift >= 64 { 1665 return ErrIntOverflowTask 1666 } 1667 if iNdEx >= l { 1668 return io.ErrUnexpectedEOF 1669 } 1670 b := dAtA[iNdEx] 1671 iNdEx++ 1672 stringLen |= uint64(b&0x7F) << shift 1673 if b < 0x80 { 1674 break 1675 } 1676 } 1677 intStringLen := int(stringLen) 1678 if intStringLen < 0 { 1679 return ErrInvalidLengthTask 1680 } 1681 postIndex := iNdEx + intStringLen 1682 if postIndex < 0 { 1683 return ErrInvalidLengthTask 1684 } 1685 if postIndex > l { 1686 return io.ErrUnexpectedEOF 1687 } 1688 m.Bundle = string(dAtA[iNdEx:postIndex]) 1689 iNdEx = postIndex 1690 case 3: 1691 if wireType != 2 { 1692 return fmt.Errorf("proto: wrong wireType = %d for field Rootfs", wireType) 1693 } 1694 var msglen int 1695 for shift := uint(0); ; shift += 7 { 1696 if shift >= 64 { 1697 return ErrIntOverflowTask 1698 } 1699 if iNdEx >= l { 1700 return io.ErrUnexpectedEOF 1701 } 1702 b := dAtA[iNdEx] 1703 iNdEx++ 1704 msglen |= int(b&0x7F) << shift 1705 if b < 0x80 { 1706 break 1707 } 1708 } 1709 if msglen < 0 { 1710 return ErrInvalidLengthTask 1711 } 1712 postIndex := iNdEx + msglen 1713 if postIndex < 0 { 1714 return ErrInvalidLengthTask 1715 } 1716 if postIndex > l { 1717 return io.ErrUnexpectedEOF 1718 } 1719 m.Rootfs = append(m.Rootfs, &types.Mount{}) 1720 if err := m.Rootfs[len(m.Rootfs)-1].Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1721 return err 1722 } 1723 iNdEx = postIndex 1724 case 4: 1725 if wireType != 2 { 1726 return fmt.Errorf("proto: wrong wireType = %d for field IO", wireType) 1727 } 1728 var msglen int 1729 for shift := uint(0); ; shift += 7 { 1730 if shift >= 64 { 1731 return ErrIntOverflowTask 1732 } 1733 if iNdEx >= l { 1734 return io.ErrUnexpectedEOF 1735 } 1736 b := dAtA[iNdEx] 1737 iNdEx++ 1738 msglen |= int(b&0x7F) << shift 1739 if b < 0x80 { 1740 break 1741 } 1742 } 1743 if msglen < 0 { 1744 return ErrInvalidLengthTask 1745 } 1746 postIndex := iNdEx + msglen 1747 if postIndex < 0 { 1748 return ErrInvalidLengthTask 1749 } 1750 if postIndex > l { 1751 return io.ErrUnexpectedEOF 1752 } 1753 if m.IO == nil { 1754 m.IO = &TaskIO{} 1755 } 1756 if err := m.IO.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 1757 return err 1758 } 1759 iNdEx = postIndex 1760 case 5: 1761 if wireType != 2 { 1762 return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType) 1763 } 1764 var stringLen uint64 1765 for shift := uint(0); ; shift += 7 { 1766 if shift >= 64 { 1767 return ErrIntOverflowTask 1768 } 1769 if iNdEx >= l { 1770 return io.ErrUnexpectedEOF 1771 } 1772 b := dAtA[iNdEx] 1773 iNdEx++ 1774 stringLen |= uint64(b&0x7F) << shift 1775 if b < 0x80 { 1776 break 1777 } 1778 } 1779 intStringLen := int(stringLen) 1780 if intStringLen < 0 { 1781 return ErrInvalidLengthTask 1782 } 1783 postIndex := iNdEx + intStringLen 1784 if postIndex < 0 { 1785 return ErrInvalidLengthTask 1786 } 1787 if postIndex > l { 1788 return io.ErrUnexpectedEOF 1789 } 1790 m.Checkpoint = string(dAtA[iNdEx:postIndex]) 1791 iNdEx = postIndex 1792 case 6: 1793 if wireType != 0 { 1794 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 1795 } 1796 m.Pid = 0 1797 for shift := uint(0); ; shift += 7 { 1798 if shift >= 64 { 1799 return ErrIntOverflowTask 1800 } 1801 if iNdEx >= l { 1802 return io.ErrUnexpectedEOF 1803 } 1804 b := dAtA[iNdEx] 1805 iNdEx++ 1806 m.Pid |= uint32(b&0x7F) << shift 1807 if b < 0x80 { 1808 break 1809 } 1810 } 1811 default: 1812 iNdEx = preIndex 1813 skippy, err := skipTask(dAtA[iNdEx:]) 1814 if err != nil { 1815 return err 1816 } 1817 if skippy < 0 { 1818 return ErrInvalidLengthTask 1819 } 1820 if (iNdEx + skippy) < 0 { 1821 return ErrInvalidLengthTask 1822 } 1823 if (iNdEx + skippy) > l { 1824 return io.ErrUnexpectedEOF 1825 } 1826 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1827 iNdEx += skippy 1828 } 1829 } 1830 1831 if iNdEx > l { 1832 return io.ErrUnexpectedEOF 1833 } 1834 return nil 1835 } 1836 func (m *TaskStart) Unmarshal(dAtA []byte) error { 1837 l := len(dAtA) 1838 iNdEx := 0 1839 for iNdEx < l { 1840 preIndex := iNdEx 1841 var wire uint64 1842 for shift := uint(0); ; shift += 7 { 1843 if shift >= 64 { 1844 return ErrIntOverflowTask 1845 } 1846 if iNdEx >= l { 1847 return io.ErrUnexpectedEOF 1848 } 1849 b := dAtA[iNdEx] 1850 iNdEx++ 1851 wire |= uint64(b&0x7F) << shift 1852 if b < 0x80 { 1853 break 1854 } 1855 } 1856 fieldNum := int32(wire >> 3) 1857 wireType := int(wire & 0x7) 1858 if wireType == 4 { 1859 return fmt.Errorf("proto: TaskStart: wiretype end group for non-group") 1860 } 1861 if fieldNum <= 0 { 1862 return fmt.Errorf("proto: TaskStart: illegal tag %d (wire type %d)", fieldNum, wire) 1863 } 1864 switch fieldNum { 1865 case 1: 1866 if wireType != 2 { 1867 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 1868 } 1869 var stringLen uint64 1870 for shift := uint(0); ; shift += 7 { 1871 if shift >= 64 { 1872 return ErrIntOverflowTask 1873 } 1874 if iNdEx >= l { 1875 return io.ErrUnexpectedEOF 1876 } 1877 b := dAtA[iNdEx] 1878 iNdEx++ 1879 stringLen |= uint64(b&0x7F) << shift 1880 if b < 0x80 { 1881 break 1882 } 1883 } 1884 intStringLen := int(stringLen) 1885 if intStringLen < 0 { 1886 return ErrInvalidLengthTask 1887 } 1888 postIndex := iNdEx + intStringLen 1889 if postIndex < 0 { 1890 return ErrInvalidLengthTask 1891 } 1892 if postIndex > l { 1893 return io.ErrUnexpectedEOF 1894 } 1895 m.ContainerID = string(dAtA[iNdEx:postIndex]) 1896 iNdEx = postIndex 1897 case 2: 1898 if wireType != 0 { 1899 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 1900 } 1901 m.Pid = 0 1902 for shift := uint(0); ; shift += 7 { 1903 if shift >= 64 { 1904 return ErrIntOverflowTask 1905 } 1906 if iNdEx >= l { 1907 return io.ErrUnexpectedEOF 1908 } 1909 b := dAtA[iNdEx] 1910 iNdEx++ 1911 m.Pid |= uint32(b&0x7F) << shift 1912 if b < 0x80 { 1913 break 1914 } 1915 } 1916 default: 1917 iNdEx = preIndex 1918 skippy, err := skipTask(dAtA[iNdEx:]) 1919 if err != nil { 1920 return err 1921 } 1922 if skippy < 0 { 1923 return ErrInvalidLengthTask 1924 } 1925 if (iNdEx + skippy) < 0 { 1926 return ErrInvalidLengthTask 1927 } 1928 if (iNdEx + skippy) > l { 1929 return io.ErrUnexpectedEOF 1930 } 1931 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1932 iNdEx += skippy 1933 } 1934 } 1935 1936 if iNdEx > l { 1937 return io.ErrUnexpectedEOF 1938 } 1939 return nil 1940 } 1941 func (m *TaskDelete) Unmarshal(dAtA []byte) error { 1942 l := len(dAtA) 1943 iNdEx := 0 1944 for iNdEx < l { 1945 preIndex := iNdEx 1946 var wire uint64 1947 for shift := uint(0); ; shift += 7 { 1948 if shift >= 64 { 1949 return ErrIntOverflowTask 1950 } 1951 if iNdEx >= l { 1952 return io.ErrUnexpectedEOF 1953 } 1954 b := dAtA[iNdEx] 1955 iNdEx++ 1956 wire |= uint64(b&0x7F) << shift 1957 if b < 0x80 { 1958 break 1959 } 1960 } 1961 fieldNum := int32(wire >> 3) 1962 wireType := int(wire & 0x7) 1963 if wireType == 4 { 1964 return fmt.Errorf("proto: TaskDelete: wiretype end group for non-group") 1965 } 1966 if fieldNum <= 0 { 1967 return fmt.Errorf("proto: TaskDelete: illegal tag %d (wire type %d)", fieldNum, wire) 1968 } 1969 switch fieldNum { 1970 case 1: 1971 if wireType != 2 { 1972 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 1973 } 1974 var stringLen uint64 1975 for shift := uint(0); ; shift += 7 { 1976 if shift >= 64 { 1977 return ErrIntOverflowTask 1978 } 1979 if iNdEx >= l { 1980 return io.ErrUnexpectedEOF 1981 } 1982 b := dAtA[iNdEx] 1983 iNdEx++ 1984 stringLen |= uint64(b&0x7F) << shift 1985 if b < 0x80 { 1986 break 1987 } 1988 } 1989 intStringLen := int(stringLen) 1990 if intStringLen < 0 { 1991 return ErrInvalidLengthTask 1992 } 1993 postIndex := iNdEx + intStringLen 1994 if postIndex < 0 { 1995 return ErrInvalidLengthTask 1996 } 1997 if postIndex > l { 1998 return io.ErrUnexpectedEOF 1999 } 2000 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2001 iNdEx = postIndex 2002 case 2: 2003 if wireType != 0 { 2004 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 2005 } 2006 m.Pid = 0 2007 for shift := uint(0); ; shift += 7 { 2008 if shift >= 64 { 2009 return ErrIntOverflowTask 2010 } 2011 if iNdEx >= l { 2012 return io.ErrUnexpectedEOF 2013 } 2014 b := dAtA[iNdEx] 2015 iNdEx++ 2016 m.Pid |= uint32(b&0x7F) << shift 2017 if b < 0x80 { 2018 break 2019 } 2020 } 2021 case 3: 2022 if wireType != 0 { 2023 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 2024 } 2025 m.ExitStatus = 0 2026 for shift := uint(0); ; shift += 7 { 2027 if shift >= 64 { 2028 return ErrIntOverflowTask 2029 } 2030 if iNdEx >= l { 2031 return io.ErrUnexpectedEOF 2032 } 2033 b := dAtA[iNdEx] 2034 iNdEx++ 2035 m.ExitStatus |= uint32(b&0x7F) << shift 2036 if b < 0x80 { 2037 break 2038 } 2039 } 2040 case 4: 2041 if wireType != 2 { 2042 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 2043 } 2044 var msglen int 2045 for shift := uint(0); ; shift += 7 { 2046 if shift >= 64 { 2047 return ErrIntOverflowTask 2048 } 2049 if iNdEx >= l { 2050 return io.ErrUnexpectedEOF 2051 } 2052 b := dAtA[iNdEx] 2053 iNdEx++ 2054 msglen |= int(b&0x7F) << shift 2055 if b < 0x80 { 2056 break 2057 } 2058 } 2059 if msglen < 0 { 2060 return ErrInvalidLengthTask 2061 } 2062 postIndex := iNdEx + msglen 2063 if postIndex < 0 { 2064 return ErrInvalidLengthTask 2065 } 2066 if postIndex > l { 2067 return io.ErrUnexpectedEOF 2068 } 2069 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 2070 return err 2071 } 2072 iNdEx = postIndex 2073 case 5: 2074 if wireType != 2 { 2075 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 2076 } 2077 var stringLen uint64 2078 for shift := uint(0); ; shift += 7 { 2079 if shift >= 64 { 2080 return ErrIntOverflowTask 2081 } 2082 if iNdEx >= l { 2083 return io.ErrUnexpectedEOF 2084 } 2085 b := dAtA[iNdEx] 2086 iNdEx++ 2087 stringLen |= uint64(b&0x7F) << shift 2088 if b < 0x80 { 2089 break 2090 } 2091 } 2092 intStringLen := int(stringLen) 2093 if intStringLen < 0 { 2094 return ErrInvalidLengthTask 2095 } 2096 postIndex := iNdEx + intStringLen 2097 if postIndex < 0 { 2098 return ErrInvalidLengthTask 2099 } 2100 if postIndex > l { 2101 return io.ErrUnexpectedEOF 2102 } 2103 m.ID = string(dAtA[iNdEx:postIndex]) 2104 iNdEx = postIndex 2105 default: 2106 iNdEx = preIndex 2107 skippy, err := skipTask(dAtA[iNdEx:]) 2108 if err != nil { 2109 return err 2110 } 2111 if skippy < 0 { 2112 return ErrInvalidLengthTask 2113 } 2114 if (iNdEx + skippy) < 0 { 2115 return ErrInvalidLengthTask 2116 } 2117 if (iNdEx + skippy) > l { 2118 return io.ErrUnexpectedEOF 2119 } 2120 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2121 iNdEx += skippy 2122 } 2123 } 2124 2125 if iNdEx > l { 2126 return io.ErrUnexpectedEOF 2127 } 2128 return nil 2129 } 2130 func (m *TaskIO) Unmarshal(dAtA []byte) error { 2131 l := len(dAtA) 2132 iNdEx := 0 2133 for iNdEx < l { 2134 preIndex := iNdEx 2135 var wire uint64 2136 for shift := uint(0); ; shift += 7 { 2137 if shift >= 64 { 2138 return ErrIntOverflowTask 2139 } 2140 if iNdEx >= l { 2141 return io.ErrUnexpectedEOF 2142 } 2143 b := dAtA[iNdEx] 2144 iNdEx++ 2145 wire |= uint64(b&0x7F) << shift 2146 if b < 0x80 { 2147 break 2148 } 2149 } 2150 fieldNum := int32(wire >> 3) 2151 wireType := int(wire & 0x7) 2152 if wireType == 4 { 2153 return fmt.Errorf("proto: TaskIO: wiretype end group for non-group") 2154 } 2155 if fieldNum <= 0 { 2156 return fmt.Errorf("proto: TaskIO: illegal tag %d (wire type %d)", fieldNum, wire) 2157 } 2158 switch fieldNum { 2159 case 1: 2160 if wireType != 2 { 2161 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 2162 } 2163 var stringLen uint64 2164 for shift := uint(0); ; shift += 7 { 2165 if shift >= 64 { 2166 return ErrIntOverflowTask 2167 } 2168 if iNdEx >= l { 2169 return io.ErrUnexpectedEOF 2170 } 2171 b := dAtA[iNdEx] 2172 iNdEx++ 2173 stringLen |= uint64(b&0x7F) << shift 2174 if b < 0x80 { 2175 break 2176 } 2177 } 2178 intStringLen := int(stringLen) 2179 if intStringLen < 0 { 2180 return ErrInvalidLengthTask 2181 } 2182 postIndex := iNdEx + intStringLen 2183 if postIndex < 0 { 2184 return ErrInvalidLengthTask 2185 } 2186 if postIndex > l { 2187 return io.ErrUnexpectedEOF 2188 } 2189 m.Stdin = string(dAtA[iNdEx:postIndex]) 2190 iNdEx = postIndex 2191 case 2: 2192 if wireType != 2 { 2193 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 2194 } 2195 var stringLen uint64 2196 for shift := uint(0); ; shift += 7 { 2197 if shift >= 64 { 2198 return ErrIntOverflowTask 2199 } 2200 if iNdEx >= l { 2201 return io.ErrUnexpectedEOF 2202 } 2203 b := dAtA[iNdEx] 2204 iNdEx++ 2205 stringLen |= uint64(b&0x7F) << shift 2206 if b < 0x80 { 2207 break 2208 } 2209 } 2210 intStringLen := int(stringLen) 2211 if intStringLen < 0 { 2212 return ErrInvalidLengthTask 2213 } 2214 postIndex := iNdEx + intStringLen 2215 if postIndex < 0 { 2216 return ErrInvalidLengthTask 2217 } 2218 if postIndex > l { 2219 return io.ErrUnexpectedEOF 2220 } 2221 m.Stdout = string(dAtA[iNdEx:postIndex]) 2222 iNdEx = postIndex 2223 case 3: 2224 if wireType != 2 { 2225 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 2226 } 2227 var stringLen uint64 2228 for shift := uint(0); ; shift += 7 { 2229 if shift >= 64 { 2230 return ErrIntOverflowTask 2231 } 2232 if iNdEx >= l { 2233 return io.ErrUnexpectedEOF 2234 } 2235 b := dAtA[iNdEx] 2236 iNdEx++ 2237 stringLen |= uint64(b&0x7F) << shift 2238 if b < 0x80 { 2239 break 2240 } 2241 } 2242 intStringLen := int(stringLen) 2243 if intStringLen < 0 { 2244 return ErrInvalidLengthTask 2245 } 2246 postIndex := iNdEx + intStringLen 2247 if postIndex < 0 { 2248 return ErrInvalidLengthTask 2249 } 2250 if postIndex > l { 2251 return io.ErrUnexpectedEOF 2252 } 2253 m.Stderr = string(dAtA[iNdEx:postIndex]) 2254 iNdEx = postIndex 2255 case 4: 2256 if wireType != 0 { 2257 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 2258 } 2259 var v int 2260 for shift := uint(0); ; shift += 7 { 2261 if shift >= 64 { 2262 return ErrIntOverflowTask 2263 } 2264 if iNdEx >= l { 2265 return io.ErrUnexpectedEOF 2266 } 2267 b := dAtA[iNdEx] 2268 iNdEx++ 2269 v |= int(b&0x7F) << shift 2270 if b < 0x80 { 2271 break 2272 } 2273 } 2274 m.Terminal = bool(v != 0) 2275 default: 2276 iNdEx = preIndex 2277 skippy, err := skipTask(dAtA[iNdEx:]) 2278 if err != nil { 2279 return err 2280 } 2281 if skippy < 0 { 2282 return ErrInvalidLengthTask 2283 } 2284 if (iNdEx + skippy) < 0 { 2285 return ErrInvalidLengthTask 2286 } 2287 if (iNdEx + skippy) > l { 2288 return io.ErrUnexpectedEOF 2289 } 2290 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2291 iNdEx += skippy 2292 } 2293 } 2294 2295 if iNdEx > l { 2296 return io.ErrUnexpectedEOF 2297 } 2298 return nil 2299 } 2300 func (m *TaskExit) Unmarshal(dAtA []byte) error { 2301 l := len(dAtA) 2302 iNdEx := 0 2303 for iNdEx < l { 2304 preIndex := iNdEx 2305 var wire uint64 2306 for shift := uint(0); ; shift += 7 { 2307 if shift >= 64 { 2308 return ErrIntOverflowTask 2309 } 2310 if iNdEx >= l { 2311 return io.ErrUnexpectedEOF 2312 } 2313 b := dAtA[iNdEx] 2314 iNdEx++ 2315 wire |= uint64(b&0x7F) << shift 2316 if b < 0x80 { 2317 break 2318 } 2319 } 2320 fieldNum := int32(wire >> 3) 2321 wireType := int(wire & 0x7) 2322 if wireType == 4 { 2323 return fmt.Errorf("proto: TaskExit: wiretype end group for non-group") 2324 } 2325 if fieldNum <= 0 { 2326 return fmt.Errorf("proto: TaskExit: illegal tag %d (wire type %d)", fieldNum, wire) 2327 } 2328 switch fieldNum { 2329 case 1: 2330 if wireType != 2 { 2331 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2332 } 2333 var stringLen uint64 2334 for shift := uint(0); ; shift += 7 { 2335 if shift >= 64 { 2336 return ErrIntOverflowTask 2337 } 2338 if iNdEx >= l { 2339 return io.ErrUnexpectedEOF 2340 } 2341 b := dAtA[iNdEx] 2342 iNdEx++ 2343 stringLen |= uint64(b&0x7F) << shift 2344 if b < 0x80 { 2345 break 2346 } 2347 } 2348 intStringLen := int(stringLen) 2349 if intStringLen < 0 { 2350 return ErrInvalidLengthTask 2351 } 2352 postIndex := iNdEx + intStringLen 2353 if postIndex < 0 { 2354 return ErrInvalidLengthTask 2355 } 2356 if postIndex > l { 2357 return io.ErrUnexpectedEOF 2358 } 2359 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2360 iNdEx = postIndex 2361 case 2: 2362 if wireType != 2 { 2363 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 2364 } 2365 var stringLen uint64 2366 for shift := uint(0); ; shift += 7 { 2367 if shift >= 64 { 2368 return ErrIntOverflowTask 2369 } 2370 if iNdEx >= l { 2371 return io.ErrUnexpectedEOF 2372 } 2373 b := dAtA[iNdEx] 2374 iNdEx++ 2375 stringLen |= uint64(b&0x7F) << shift 2376 if b < 0x80 { 2377 break 2378 } 2379 } 2380 intStringLen := int(stringLen) 2381 if intStringLen < 0 { 2382 return ErrInvalidLengthTask 2383 } 2384 postIndex := iNdEx + intStringLen 2385 if postIndex < 0 { 2386 return ErrInvalidLengthTask 2387 } 2388 if postIndex > l { 2389 return io.ErrUnexpectedEOF 2390 } 2391 m.ID = string(dAtA[iNdEx:postIndex]) 2392 iNdEx = postIndex 2393 case 3: 2394 if wireType != 0 { 2395 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 2396 } 2397 m.Pid = 0 2398 for shift := uint(0); ; shift += 7 { 2399 if shift >= 64 { 2400 return ErrIntOverflowTask 2401 } 2402 if iNdEx >= l { 2403 return io.ErrUnexpectedEOF 2404 } 2405 b := dAtA[iNdEx] 2406 iNdEx++ 2407 m.Pid |= uint32(b&0x7F) << shift 2408 if b < 0x80 { 2409 break 2410 } 2411 } 2412 case 4: 2413 if wireType != 0 { 2414 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 2415 } 2416 m.ExitStatus = 0 2417 for shift := uint(0); ; shift += 7 { 2418 if shift >= 64 { 2419 return ErrIntOverflowTask 2420 } 2421 if iNdEx >= l { 2422 return io.ErrUnexpectedEOF 2423 } 2424 b := dAtA[iNdEx] 2425 iNdEx++ 2426 m.ExitStatus |= uint32(b&0x7F) << shift 2427 if b < 0x80 { 2428 break 2429 } 2430 } 2431 case 5: 2432 if wireType != 2 { 2433 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 2434 } 2435 var msglen int 2436 for shift := uint(0); ; shift += 7 { 2437 if shift >= 64 { 2438 return ErrIntOverflowTask 2439 } 2440 if iNdEx >= l { 2441 return io.ErrUnexpectedEOF 2442 } 2443 b := dAtA[iNdEx] 2444 iNdEx++ 2445 msglen |= int(b&0x7F) << shift 2446 if b < 0x80 { 2447 break 2448 } 2449 } 2450 if msglen < 0 { 2451 return ErrInvalidLengthTask 2452 } 2453 postIndex := iNdEx + msglen 2454 if postIndex < 0 { 2455 return ErrInvalidLengthTask 2456 } 2457 if postIndex > l { 2458 return io.ErrUnexpectedEOF 2459 } 2460 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 2461 return err 2462 } 2463 iNdEx = postIndex 2464 default: 2465 iNdEx = preIndex 2466 skippy, err := skipTask(dAtA[iNdEx:]) 2467 if err != nil { 2468 return err 2469 } 2470 if skippy < 0 { 2471 return ErrInvalidLengthTask 2472 } 2473 if (iNdEx + skippy) < 0 { 2474 return ErrInvalidLengthTask 2475 } 2476 if (iNdEx + skippy) > l { 2477 return io.ErrUnexpectedEOF 2478 } 2479 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2480 iNdEx += skippy 2481 } 2482 } 2483 2484 if iNdEx > l { 2485 return io.ErrUnexpectedEOF 2486 } 2487 return nil 2488 } 2489 func (m *TaskOOM) Unmarshal(dAtA []byte) error { 2490 l := len(dAtA) 2491 iNdEx := 0 2492 for iNdEx < l { 2493 preIndex := iNdEx 2494 var wire uint64 2495 for shift := uint(0); ; shift += 7 { 2496 if shift >= 64 { 2497 return ErrIntOverflowTask 2498 } 2499 if iNdEx >= l { 2500 return io.ErrUnexpectedEOF 2501 } 2502 b := dAtA[iNdEx] 2503 iNdEx++ 2504 wire |= uint64(b&0x7F) << shift 2505 if b < 0x80 { 2506 break 2507 } 2508 } 2509 fieldNum := int32(wire >> 3) 2510 wireType := int(wire & 0x7) 2511 if wireType == 4 { 2512 return fmt.Errorf("proto: TaskOOM: wiretype end group for non-group") 2513 } 2514 if fieldNum <= 0 { 2515 return fmt.Errorf("proto: TaskOOM: illegal tag %d (wire type %d)", fieldNum, wire) 2516 } 2517 switch fieldNum { 2518 case 1: 2519 if wireType != 2 { 2520 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2521 } 2522 var stringLen uint64 2523 for shift := uint(0); ; shift += 7 { 2524 if shift >= 64 { 2525 return ErrIntOverflowTask 2526 } 2527 if iNdEx >= l { 2528 return io.ErrUnexpectedEOF 2529 } 2530 b := dAtA[iNdEx] 2531 iNdEx++ 2532 stringLen |= uint64(b&0x7F) << shift 2533 if b < 0x80 { 2534 break 2535 } 2536 } 2537 intStringLen := int(stringLen) 2538 if intStringLen < 0 { 2539 return ErrInvalidLengthTask 2540 } 2541 postIndex := iNdEx + intStringLen 2542 if postIndex < 0 { 2543 return ErrInvalidLengthTask 2544 } 2545 if postIndex > l { 2546 return io.ErrUnexpectedEOF 2547 } 2548 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2549 iNdEx = postIndex 2550 default: 2551 iNdEx = preIndex 2552 skippy, err := skipTask(dAtA[iNdEx:]) 2553 if err != nil { 2554 return err 2555 } 2556 if skippy < 0 { 2557 return ErrInvalidLengthTask 2558 } 2559 if (iNdEx + skippy) < 0 { 2560 return ErrInvalidLengthTask 2561 } 2562 if (iNdEx + skippy) > l { 2563 return io.ErrUnexpectedEOF 2564 } 2565 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2566 iNdEx += skippy 2567 } 2568 } 2569 2570 if iNdEx > l { 2571 return io.ErrUnexpectedEOF 2572 } 2573 return nil 2574 } 2575 func (m *TaskExecAdded) Unmarshal(dAtA []byte) error { 2576 l := len(dAtA) 2577 iNdEx := 0 2578 for iNdEx < l { 2579 preIndex := iNdEx 2580 var wire uint64 2581 for shift := uint(0); ; shift += 7 { 2582 if shift >= 64 { 2583 return ErrIntOverflowTask 2584 } 2585 if iNdEx >= l { 2586 return io.ErrUnexpectedEOF 2587 } 2588 b := dAtA[iNdEx] 2589 iNdEx++ 2590 wire |= uint64(b&0x7F) << shift 2591 if b < 0x80 { 2592 break 2593 } 2594 } 2595 fieldNum := int32(wire >> 3) 2596 wireType := int(wire & 0x7) 2597 if wireType == 4 { 2598 return fmt.Errorf("proto: TaskExecAdded: wiretype end group for non-group") 2599 } 2600 if fieldNum <= 0 { 2601 return fmt.Errorf("proto: TaskExecAdded: illegal tag %d (wire type %d)", fieldNum, wire) 2602 } 2603 switch fieldNum { 2604 case 1: 2605 if wireType != 2 { 2606 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2607 } 2608 var stringLen uint64 2609 for shift := uint(0); ; shift += 7 { 2610 if shift >= 64 { 2611 return ErrIntOverflowTask 2612 } 2613 if iNdEx >= l { 2614 return io.ErrUnexpectedEOF 2615 } 2616 b := dAtA[iNdEx] 2617 iNdEx++ 2618 stringLen |= uint64(b&0x7F) << shift 2619 if b < 0x80 { 2620 break 2621 } 2622 } 2623 intStringLen := int(stringLen) 2624 if intStringLen < 0 { 2625 return ErrInvalidLengthTask 2626 } 2627 postIndex := iNdEx + intStringLen 2628 if postIndex < 0 { 2629 return ErrInvalidLengthTask 2630 } 2631 if postIndex > l { 2632 return io.ErrUnexpectedEOF 2633 } 2634 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2635 iNdEx = postIndex 2636 case 2: 2637 if wireType != 2 { 2638 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 2639 } 2640 var stringLen uint64 2641 for shift := uint(0); ; shift += 7 { 2642 if shift >= 64 { 2643 return ErrIntOverflowTask 2644 } 2645 if iNdEx >= l { 2646 return io.ErrUnexpectedEOF 2647 } 2648 b := dAtA[iNdEx] 2649 iNdEx++ 2650 stringLen |= uint64(b&0x7F) << shift 2651 if b < 0x80 { 2652 break 2653 } 2654 } 2655 intStringLen := int(stringLen) 2656 if intStringLen < 0 { 2657 return ErrInvalidLengthTask 2658 } 2659 postIndex := iNdEx + intStringLen 2660 if postIndex < 0 { 2661 return ErrInvalidLengthTask 2662 } 2663 if postIndex > l { 2664 return io.ErrUnexpectedEOF 2665 } 2666 m.ExecID = string(dAtA[iNdEx:postIndex]) 2667 iNdEx = postIndex 2668 default: 2669 iNdEx = preIndex 2670 skippy, err := skipTask(dAtA[iNdEx:]) 2671 if err != nil { 2672 return err 2673 } 2674 if skippy < 0 { 2675 return ErrInvalidLengthTask 2676 } 2677 if (iNdEx + skippy) < 0 { 2678 return ErrInvalidLengthTask 2679 } 2680 if (iNdEx + skippy) > l { 2681 return io.ErrUnexpectedEOF 2682 } 2683 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2684 iNdEx += skippy 2685 } 2686 } 2687 2688 if iNdEx > l { 2689 return io.ErrUnexpectedEOF 2690 } 2691 return nil 2692 } 2693 func (m *TaskExecStarted) Unmarshal(dAtA []byte) error { 2694 l := len(dAtA) 2695 iNdEx := 0 2696 for iNdEx < l { 2697 preIndex := iNdEx 2698 var wire uint64 2699 for shift := uint(0); ; shift += 7 { 2700 if shift >= 64 { 2701 return ErrIntOverflowTask 2702 } 2703 if iNdEx >= l { 2704 return io.ErrUnexpectedEOF 2705 } 2706 b := dAtA[iNdEx] 2707 iNdEx++ 2708 wire |= uint64(b&0x7F) << shift 2709 if b < 0x80 { 2710 break 2711 } 2712 } 2713 fieldNum := int32(wire >> 3) 2714 wireType := int(wire & 0x7) 2715 if wireType == 4 { 2716 return fmt.Errorf("proto: TaskExecStarted: wiretype end group for non-group") 2717 } 2718 if fieldNum <= 0 { 2719 return fmt.Errorf("proto: TaskExecStarted: illegal tag %d (wire type %d)", fieldNum, wire) 2720 } 2721 switch fieldNum { 2722 case 1: 2723 if wireType != 2 { 2724 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2725 } 2726 var stringLen uint64 2727 for shift := uint(0); ; shift += 7 { 2728 if shift >= 64 { 2729 return ErrIntOverflowTask 2730 } 2731 if iNdEx >= l { 2732 return io.ErrUnexpectedEOF 2733 } 2734 b := dAtA[iNdEx] 2735 iNdEx++ 2736 stringLen |= uint64(b&0x7F) << shift 2737 if b < 0x80 { 2738 break 2739 } 2740 } 2741 intStringLen := int(stringLen) 2742 if intStringLen < 0 { 2743 return ErrInvalidLengthTask 2744 } 2745 postIndex := iNdEx + intStringLen 2746 if postIndex < 0 { 2747 return ErrInvalidLengthTask 2748 } 2749 if postIndex > l { 2750 return io.ErrUnexpectedEOF 2751 } 2752 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2753 iNdEx = postIndex 2754 case 2: 2755 if wireType != 2 { 2756 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 2757 } 2758 var stringLen uint64 2759 for shift := uint(0); ; shift += 7 { 2760 if shift >= 64 { 2761 return ErrIntOverflowTask 2762 } 2763 if iNdEx >= l { 2764 return io.ErrUnexpectedEOF 2765 } 2766 b := dAtA[iNdEx] 2767 iNdEx++ 2768 stringLen |= uint64(b&0x7F) << shift 2769 if b < 0x80 { 2770 break 2771 } 2772 } 2773 intStringLen := int(stringLen) 2774 if intStringLen < 0 { 2775 return ErrInvalidLengthTask 2776 } 2777 postIndex := iNdEx + intStringLen 2778 if postIndex < 0 { 2779 return ErrInvalidLengthTask 2780 } 2781 if postIndex > l { 2782 return io.ErrUnexpectedEOF 2783 } 2784 m.ExecID = string(dAtA[iNdEx:postIndex]) 2785 iNdEx = postIndex 2786 case 3: 2787 if wireType != 0 { 2788 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 2789 } 2790 m.Pid = 0 2791 for shift := uint(0); ; shift += 7 { 2792 if shift >= 64 { 2793 return ErrIntOverflowTask 2794 } 2795 if iNdEx >= l { 2796 return io.ErrUnexpectedEOF 2797 } 2798 b := dAtA[iNdEx] 2799 iNdEx++ 2800 m.Pid |= uint32(b&0x7F) << shift 2801 if b < 0x80 { 2802 break 2803 } 2804 } 2805 default: 2806 iNdEx = preIndex 2807 skippy, err := skipTask(dAtA[iNdEx:]) 2808 if err != nil { 2809 return err 2810 } 2811 if skippy < 0 { 2812 return ErrInvalidLengthTask 2813 } 2814 if (iNdEx + skippy) < 0 { 2815 return ErrInvalidLengthTask 2816 } 2817 if (iNdEx + skippy) > l { 2818 return io.ErrUnexpectedEOF 2819 } 2820 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2821 iNdEx += skippy 2822 } 2823 } 2824 2825 if iNdEx > l { 2826 return io.ErrUnexpectedEOF 2827 } 2828 return nil 2829 } 2830 func (m *TaskPaused) Unmarshal(dAtA []byte) error { 2831 l := len(dAtA) 2832 iNdEx := 0 2833 for iNdEx < l { 2834 preIndex := iNdEx 2835 var wire uint64 2836 for shift := uint(0); ; shift += 7 { 2837 if shift >= 64 { 2838 return ErrIntOverflowTask 2839 } 2840 if iNdEx >= l { 2841 return io.ErrUnexpectedEOF 2842 } 2843 b := dAtA[iNdEx] 2844 iNdEx++ 2845 wire |= uint64(b&0x7F) << shift 2846 if b < 0x80 { 2847 break 2848 } 2849 } 2850 fieldNum := int32(wire >> 3) 2851 wireType := int(wire & 0x7) 2852 if wireType == 4 { 2853 return fmt.Errorf("proto: TaskPaused: wiretype end group for non-group") 2854 } 2855 if fieldNum <= 0 { 2856 return fmt.Errorf("proto: TaskPaused: illegal tag %d (wire type %d)", fieldNum, wire) 2857 } 2858 switch fieldNum { 2859 case 1: 2860 if wireType != 2 { 2861 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2862 } 2863 var stringLen uint64 2864 for shift := uint(0); ; shift += 7 { 2865 if shift >= 64 { 2866 return ErrIntOverflowTask 2867 } 2868 if iNdEx >= l { 2869 return io.ErrUnexpectedEOF 2870 } 2871 b := dAtA[iNdEx] 2872 iNdEx++ 2873 stringLen |= uint64(b&0x7F) << shift 2874 if b < 0x80 { 2875 break 2876 } 2877 } 2878 intStringLen := int(stringLen) 2879 if intStringLen < 0 { 2880 return ErrInvalidLengthTask 2881 } 2882 postIndex := iNdEx + intStringLen 2883 if postIndex < 0 { 2884 return ErrInvalidLengthTask 2885 } 2886 if postIndex > l { 2887 return io.ErrUnexpectedEOF 2888 } 2889 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2890 iNdEx = postIndex 2891 default: 2892 iNdEx = preIndex 2893 skippy, err := skipTask(dAtA[iNdEx:]) 2894 if err != nil { 2895 return err 2896 } 2897 if skippy < 0 { 2898 return ErrInvalidLengthTask 2899 } 2900 if (iNdEx + skippy) < 0 { 2901 return ErrInvalidLengthTask 2902 } 2903 if (iNdEx + skippy) > l { 2904 return io.ErrUnexpectedEOF 2905 } 2906 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2907 iNdEx += skippy 2908 } 2909 } 2910 2911 if iNdEx > l { 2912 return io.ErrUnexpectedEOF 2913 } 2914 return nil 2915 } 2916 func (m *TaskResumed) Unmarshal(dAtA []byte) error { 2917 l := len(dAtA) 2918 iNdEx := 0 2919 for iNdEx < l { 2920 preIndex := iNdEx 2921 var wire uint64 2922 for shift := uint(0); ; shift += 7 { 2923 if shift >= 64 { 2924 return ErrIntOverflowTask 2925 } 2926 if iNdEx >= l { 2927 return io.ErrUnexpectedEOF 2928 } 2929 b := dAtA[iNdEx] 2930 iNdEx++ 2931 wire |= uint64(b&0x7F) << shift 2932 if b < 0x80 { 2933 break 2934 } 2935 } 2936 fieldNum := int32(wire >> 3) 2937 wireType := int(wire & 0x7) 2938 if wireType == 4 { 2939 return fmt.Errorf("proto: TaskResumed: wiretype end group for non-group") 2940 } 2941 if fieldNum <= 0 { 2942 return fmt.Errorf("proto: TaskResumed: illegal tag %d (wire type %d)", fieldNum, wire) 2943 } 2944 switch fieldNum { 2945 case 1: 2946 if wireType != 2 { 2947 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 2948 } 2949 var stringLen uint64 2950 for shift := uint(0); ; shift += 7 { 2951 if shift >= 64 { 2952 return ErrIntOverflowTask 2953 } 2954 if iNdEx >= l { 2955 return io.ErrUnexpectedEOF 2956 } 2957 b := dAtA[iNdEx] 2958 iNdEx++ 2959 stringLen |= uint64(b&0x7F) << shift 2960 if b < 0x80 { 2961 break 2962 } 2963 } 2964 intStringLen := int(stringLen) 2965 if intStringLen < 0 { 2966 return ErrInvalidLengthTask 2967 } 2968 postIndex := iNdEx + intStringLen 2969 if postIndex < 0 { 2970 return ErrInvalidLengthTask 2971 } 2972 if postIndex > l { 2973 return io.ErrUnexpectedEOF 2974 } 2975 m.ContainerID = string(dAtA[iNdEx:postIndex]) 2976 iNdEx = postIndex 2977 default: 2978 iNdEx = preIndex 2979 skippy, err := skipTask(dAtA[iNdEx:]) 2980 if err != nil { 2981 return err 2982 } 2983 if skippy < 0 { 2984 return ErrInvalidLengthTask 2985 } 2986 if (iNdEx + skippy) < 0 { 2987 return ErrInvalidLengthTask 2988 } 2989 if (iNdEx + skippy) > l { 2990 return io.ErrUnexpectedEOF 2991 } 2992 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2993 iNdEx += skippy 2994 } 2995 } 2996 2997 if iNdEx > l { 2998 return io.ErrUnexpectedEOF 2999 } 3000 return nil 3001 } 3002 func (m *TaskCheckpointed) Unmarshal(dAtA []byte) error { 3003 l := len(dAtA) 3004 iNdEx := 0 3005 for iNdEx < l { 3006 preIndex := iNdEx 3007 var wire uint64 3008 for shift := uint(0); ; shift += 7 { 3009 if shift >= 64 { 3010 return ErrIntOverflowTask 3011 } 3012 if iNdEx >= l { 3013 return io.ErrUnexpectedEOF 3014 } 3015 b := dAtA[iNdEx] 3016 iNdEx++ 3017 wire |= uint64(b&0x7F) << shift 3018 if b < 0x80 { 3019 break 3020 } 3021 } 3022 fieldNum := int32(wire >> 3) 3023 wireType := int(wire & 0x7) 3024 if wireType == 4 { 3025 return fmt.Errorf("proto: TaskCheckpointed: wiretype end group for non-group") 3026 } 3027 if fieldNum <= 0 { 3028 return fmt.Errorf("proto: TaskCheckpointed: illegal tag %d (wire type %d)", fieldNum, wire) 3029 } 3030 switch fieldNum { 3031 case 1: 3032 if wireType != 2 { 3033 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 3034 } 3035 var stringLen uint64 3036 for shift := uint(0); ; shift += 7 { 3037 if shift >= 64 { 3038 return ErrIntOverflowTask 3039 } 3040 if iNdEx >= l { 3041 return io.ErrUnexpectedEOF 3042 } 3043 b := dAtA[iNdEx] 3044 iNdEx++ 3045 stringLen |= uint64(b&0x7F) << shift 3046 if b < 0x80 { 3047 break 3048 } 3049 } 3050 intStringLen := int(stringLen) 3051 if intStringLen < 0 { 3052 return ErrInvalidLengthTask 3053 } 3054 postIndex := iNdEx + intStringLen 3055 if postIndex < 0 { 3056 return ErrInvalidLengthTask 3057 } 3058 if postIndex > l { 3059 return io.ErrUnexpectedEOF 3060 } 3061 m.ContainerID = string(dAtA[iNdEx:postIndex]) 3062 iNdEx = postIndex 3063 case 2: 3064 if wireType != 2 { 3065 return fmt.Errorf("proto: wrong wireType = %d for field Checkpoint", wireType) 3066 } 3067 var stringLen uint64 3068 for shift := uint(0); ; shift += 7 { 3069 if shift >= 64 { 3070 return ErrIntOverflowTask 3071 } 3072 if iNdEx >= l { 3073 return io.ErrUnexpectedEOF 3074 } 3075 b := dAtA[iNdEx] 3076 iNdEx++ 3077 stringLen |= uint64(b&0x7F) << shift 3078 if b < 0x80 { 3079 break 3080 } 3081 } 3082 intStringLen := int(stringLen) 3083 if intStringLen < 0 { 3084 return ErrInvalidLengthTask 3085 } 3086 postIndex := iNdEx + intStringLen 3087 if postIndex < 0 { 3088 return ErrInvalidLengthTask 3089 } 3090 if postIndex > l { 3091 return io.ErrUnexpectedEOF 3092 } 3093 m.Checkpoint = string(dAtA[iNdEx:postIndex]) 3094 iNdEx = postIndex 3095 default: 3096 iNdEx = preIndex 3097 skippy, err := skipTask(dAtA[iNdEx:]) 3098 if err != nil { 3099 return err 3100 } 3101 if skippy < 0 { 3102 return ErrInvalidLengthTask 3103 } 3104 if (iNdEx + skippy) < 0 { 3105 return ErrInvalidLengthTask 3106 } 3107 if (iNdEx + skippy) > l { 3108 return io.ErrUnexpectedEOF 3109 } 3110 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 3111 iNdEx += skippy 3112 } 3113 } 3114 3115 if iNdEx > l { 3116 return io.ErrUnexpectedEOF 3117 } 3118 return nil 3119 } 3120 func skipTask(dAtA []byte) (n int, err error) { 3121 l := len(dAtA) 3122 iNdEx := 0 3123 for iNdEx < l { 3124 var wire uint64 3125 for shift := uint(0); ; shift += 7 { 3126 if shift >= 64 { 3127 return 0, ErrIntOverflowTask 3128 } 3129 if iNdEx >= l { 3130 return 0, io.ErrUnexpectedEOF 3131 } 3132 b := dAtA[iNdEx] 3133 iNdEx++ 3134 wire |= (uint64(b) & 0x7F) << shift 3135 if b < 0x80 { 3136 break 3137 } 3138 } 3139 wireType := int(wire & 0x7) 3140 switch wireType { 3141 case 0: 3142 for shift := uint(0); ; shift += 7 { 3143 if shift >= 64 { 3144 return 0, ErrIntOverflowTask 3145 } 3146 if iNdEx >= l { 3147 return 0, io.ErrUnexpectedEOF 3148 } 3149 iNdEx++ 3150 if dAtA[iNdEx-1] < 0x80 { 3151 break 3152 } 3153 } 3154 return iNdEx, nil 3155 case 1: 3156 iNdEx += 8 3157 return iNdEx, nil 3158 case 2: 3159 var length int 3160 for shift := uint(0); ; shift += 7 { 3161 if shift >= 64 { 3162 return 0, ErrIntOverflowTask 3163 } 3164 if iNdEx >= l { 3165 return 0, io.ErrUnexpectedEOF 3166 } 3167 b := dAtA[iNdEx] 3168 iNdEx++ 3169 length |= (int(b) & 0x7F) << shift 3170 if b < 0x80 { 3171 break 3172 } 3173 } 3174 if length < 0 { 3175 return 0, ErrInvalidLengthTask 3176 } 3177 iNdEx += length 3178 if iNdEx < 0 { 3179 return 0, ErrInvalidLengthTask 3180 } 3181 return iNdEx, nil 3182 case 3: 3183 for { 3184 var innerWire uint64 3185 var start int = iNdEx 3186 for shift := uint(0); ; shift += 7 { 3187 if shift >= 64 { 3188 return 0, ErrIntOverflowTask 3189 } 3190 if iNdEx >= l { 3191 return 0, io.ErrUnexpectedEOF 3192 } 3193 b := dAtA[iNdEx] 3194 iNdEx++ 3195 innerWire |= (uint64(b) & 0x7F) << shift 3196 if b < 0x80 { 3197 break 3198 } 3199 } 3200 innerWireType := int(innerWire & 0x7) 3201 if innerWireType == 4 { 3202 break 3203 } 3204 next, err := skipTask(dAtA[start:]) 3205 if err != nil { 3206 return 0, err 3207 } 3208 iNdEx = start + next 3209 if iNdEx < 0 { 3210 return 0, ErrInvalidLengthTask 3211 } 3212 } 3213 return iNdEx, nil 3214 case 4: 3215 return iNdEx, nil 3216 case 5: 3217 iNdEx += 4 3218 return iNdEx, nil 3219 default: 3220 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 3221 } 3222 } 3223 panic("unreachable") 3224 } 3225 3226 var ( 3227 ErrInvalidLengthTask = fmt.Errorf("proto: negative length found during unmarshaling") 3228 ErrIntOverflowTask = fmt.Errorf("proto: integer overflow") 3229 )