github.com/lalkh/containerd@v1.4.3/api/types/task/task.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/containerd/containerd/api/types/task/task.proto 3 4 package task 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 github_com_gogo_protobuf_types "github.com/gogo/protobuf/types" 10 types "github.com/gogo/protobuf/types" 11 io "io" 12 math "math" 13 math_bits "math/bits" 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.GoGoProtoPackageIsVersion3 // please upgrade the proto package 30 31 type Status int32 32 33 const ( 34 StatusUnknown Status = 0 35 StatusCreated Status = 1 36 StatusRunning Status = 2 37 StatusStopped Status = 3 38 StatusPaused Status = 4 39 StatusPausing Status = 5 40 ) 41 42 var Status_name = map[int32]string{ 43 0: "UNKNOWN", 44 1: "CREATED", 45 2: "RUNNING", 46 3: "STOPPED", 47 4: "PAUSED", 48 5: "PAUSING", 49 } 50 51 var Status_value = map[string]int32{ 52 "UNKNOWN": 0, 53 "CREATED": 1, 54 "RUNNING": 2, 55 "STOPPED": 3, 56 "PAUSED": 4, 57 "PAUSING": 5, 58 } 59 60 func (x Status) String() string { 61 return proto.EnumName(Status_name, int32(x)) 62 } 63 64 func (Status) EnumDescriptor() ([]byte, []int) { 65 return fileDescriptor_391ef18c8ab0dc16, []int{0} 66 } 67 68 type Process struct { 69 ContainerID string `protobuf:"bytes,1,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"` 70 ID string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 71 Pid uint32 `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"` 72 Status Status `protobuf:"varint,4,opt,name=status,proto3,enum=containerd.v1.types.Status" json:"status,omitempty"` 73 Stdin string `protobuf:"bytes,5,opt,name=stdin,proto3" json:"stdin,omitempty"` 74 Stdout string `protobuf:"bytes,6,opt,name=stdout,proto3" json:"stdout,omitempty"` 75 Stderr string `protobuf:"bytes,7,opt,name=stderr,proto3" json:"stderr,omitempty"` 76 Terminal bool `protobuf:"varint,8,opt,name=terminal,proto3" json:"terminal,omitempty"` 77 ExitStatus uint32 `protobuf:"varint,9,opt,name=exit_status,json=exitStatus,proto3" json:"exit_status,omitempty"` 78 ExitedAt time.Time `protobuf:"bytes,10,opt,name=exited_at,json=exitedAt,proto3,stdtime" json:"exited_at"` 79 XXX_NoUnkeyedLiteral struct{} `json:"-"` 80 XXX_unrecognized []byte `json:"-"` 81 XXX_sizecache int32 `json:"-"` 82 } 83 84 func (m *Process) Reset() { *m = Process{} } 85 func (*Process) ProtoMessage() {} 86 func (*Process) Descriptor() ([]byte, []int) { 87 return fileDescriptor_391ef18c8ab0dc16, []int{0} 88 } 89 func (m *Process) XXX_Unmarshal(b []byte) error { 90 return m.Unmarshal(b) 91 } 92 func (m *Process) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 93 if deterministic { 94 return xxx_messageInfo_Process.Marshal(b, m, deterministic) 95 } else { 96 b = b[:cap(b)] 97 n, err := m.MarshalToSizedBuffer(b) 98 if err != nil { 99 return nil, err 100 } 101 return b[:n], nil 102 } 103 } 104 func (m *Process) XXX_Merge(src proto.Message) { 105 xxx_messageInfo_Process.Merge(m, src) 106 } 107 func (m *Process) XXX_Size() int { 108 return m.Size() 109 } 110 func (m *Process) XXX_DiscardUnknown() { 111 xxx_messageInfo_Process.DiscardUnknown(m) 112 } 113 114 var xxx_messageInfo_Process proto.InternalMessageInfo 115 116 type ProcessInfo struct { 117 // PID is the process ID. 118 Pid uint32 `protobuf:"varint,1,opt,name=pid,proto3" json:"pid,omitempty"` 119 // Info contains additional process information. 120 // 121 // Info varies by platform. 122 Info *types.Any `protobuf:"bytes,2,opt,name=info,proto3" json:"info,omitempty"` 123 XXX_NoUnkeyedLiteral struct{} `json:"-"` 124 XXX_unrecognized []byte `json:"-"` 125 XXX_sizecache int32 `json:"-"` 126 } 127 128 func (m *ProcessInfo) Reset() { *m = ProcessInfo{} } 129 func (*ProcessInfo) ProtoMessage() {} 130 func (*ProcessInfo) Descriptor() ([]byte, []int) { 131 return fileDescriptor_391ef18c8ab0dc16, []int{1} 132 } 133 func (m *ProcessInfo) XXX_Unmarshal(b []byte) error { 134 return m.Unmarshal(b) 135 } 136 func (m *ProcessInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 137 if deterministic { 138 return xxx_messageInfo_ProcessInfo.Marshal(b, m, deterministic) 139 } else { 140 b = b[:cap(b)] 141 n, err := m.MarshalToSizedBuffer(b) 142 if err != nil { 143 return nil, err 144 } 145 return b[:n], nil 146 } 147 } 148 func (m *ProcessInfo) XXX_Merge(src proto.Message) { 149 xxx_messageInfo_ProcessInfo.Merge(m, src) 150 } 151 func (m *ProcessInfo) XXX_Size() int { 152 return m.Size() 153 } 154 func (m *ProcessInfo) XXX_DiscardUnknown() { 155 xxx_messageInfo_ProcessInfo.DiscardUnknown(m) 156 } 157 158 var xxx_messageInfo_ProcessInfo proto.InternalMessageInfo 159 160 func init() { 161 proto.RegisterEnum("containerd.v1.types.Status", Status_name, Status_value) 162 proto.RegisterType((*Process)(nil), "containerd.v1.types.Process") 163 proto.RegisterType((*ProcessInfo)(nil), "containerd.v1.types.ProcessInfo") 164 } 165 166 func init() { 167 proto.RegisterFile("github.com/containerd/containerd/api/types/task/task.proto", fileDescriptor_391ef18c8ab0dc16) 168 } 169 170 var fileDescriptor_391ef18c8ab0dc16 = []byte{ 171 // 545 bytes of a gzipped FileDescriptorProto 172 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x90, 0x3f, 0x6f, 0xd3, 0x40, 173 0x18, 0xc6, 0x7d, 0x6e, 0xeb, 0xa6, 0xe7, 0xb6, 0x18, 0x13, 0x55, 0xc6, 0x20, 0xdb, 0xea, 0x64, 174 0x31, 0xd8, 0x22, 0xdd, 0xd8, 0xf2, 0x4f, 0xc8, 0x42, 0x72, 0x23, 0x27, 0x11, 0x6c, 0x91, 0x13, 175 0x5f, 0xcc, 0xa9, 0xcd, 0x9d, 0x65, 0x9f, 0x81, 0x6c, 0x8c, 0xa8, 0x13, 0x5f, 0xa0, 0x13, 0x7c, 176 0x0a, 0x3e, 0x41, 0x46, 0x26, 0xc4, 0x14, 0xa8, 0x3f, 0x09, 0x3a, 0xdb, 0x49, 0x23, 0x60, 0x39, 177 0xbd, 0xef, 0xf3, 0x7b, 0xee, 0xbd, 0xf7, 0x1e, 0xf8, 0x22, 0xc6, 0xec, 0x6d, 0x3e, 0x75, 0x66, 178 0x74, 0xe1, 0xce, 0x28, 0x61, 0x21, 0x26, 0x28, 0x8d, 0x76, 0xcb, 0x30, 0xc1, 0x2e, 0x5b, 0x26, 179 0x28, 0x73, 0x59, 0x98, 0x5d, 0x95, 0x87, 0x93, 0xa4, 0x94, 0x51, 0xf5, 0xd1, 0xbd, 0xcb, 0x79, 180 0xf7, 0xdc, 0x29, 0x4d, 0x7a, 0x33, 0xa6, 0x31, 0x2d, 0xb9, 0xcb, 0xab, 0xca, 0xaa, 0x9b, 0x31, 181 0xa5, 0xf1, 0x35, 0x72, 0xcb, 0x6e, 0x9a, 0xcf, 0x5d, 0x86, 0x17, 0x28, 0x63, 0xe1, 0x22, 0xa9, 182 0x0d, 0x8f, 0xff, 0x36, 0x84, 0x64, 0x59, 0xa1, 0xf3, 0x42, 0x84, 0x87, 0x83, 0x94, 0xce, 0x50, 183 0x96, 0xa9, 0x2d, 0x78, 0xbc, 0x7d, 0x74, 0x82, 0x23, 0x0d, 0x58, 0xc0, 0x3e, 0xea, 0x3c, 0x28, 184 0xd6, 0xa6, 0xdc, 0xdd, 0xe8, 0x5e, 0x2f, 0x90, 0xb7, 0x26, 0x2f, 0x52, 0xcf, 0xa0, 0x88, 0x23, 185 0x4d, 0x2c, 0x9d, 0x52, 0xb1, 0x36, 0x45, 0xaf, 0x17, 0x88, 0x38, 0x52, 0x15, 0xb8, 0x97, 0xe0, 186 0x48, 0xdb, 0xb3, 0x80, 0x7d, 0x12, 0xf0, 0x52, 0xbd, 0x80, 0x52, 0xc6, 0x42, 0x96, 0x67, 0xda, 187 0xbe, 0x05, 0xec, 0xd3, 0xd6, 0x13, 0xe7, 0x3f, 0x3f, 0x74, 0x86, 0xa5, 0x25, 0xa8, 0xad, 0x6a, 188 0x13, 0x1e, 0x64, 0x2c, 0xc2, 0x44, 0x3b, 0xe0, 0x2f, 0x04, 0x55, 0xa3, 0x9e, 0xf1, 0x51, 0x11, 189 0xcd, 0x99, 0x26, 0x95, 0x72, 0xdd, 0xd5, 0x3a, 0x4a, 0x53, 0xed, 0x70, 0xab, 0xa3, 0x34, 0x55, 190 0x75, 0xd8, 0x60, 0x28, 0x5d, 0x60, 0x12, 0x5e, 0x6b, 0x0d, 0x0b, 0xd8, 0x8d, 0x60, 0xdb, 0xab, 191 0x26, 0x94, 0xd1, 0x07, 0xcc, 0x26, 0xf5, 0x6e, 0x47, 0xe5, 0xc2, 0x90, 0x4b, 0xd5, 0x2a, 0x6a, 192 0x1b, 0x1e, 0xf1, 0x0e, 0x45, 0x93, 0x90, 0x69, 0xd0, 0x02, 0xb6, 0xdc, 0xd2, 0x9d, 0x2a, 0x50, 193 0x67, 0x13, 0xa8, 0x33, 0xda, 0x24, 0xde, 0x69, 0xac, 0xd6, 0xa6, 0xf0, 0xf9, 0x97, 0x09, 0x82, 194 0x46, 0x75, 0xad, 0xcd, 0xce, 0x3d, 0x28, 0xd7, 0x19, 0x7b, 0x64, 0x4e, 0x37, 0xd9, 0x80, 0xfb, 195 0x6c, 0x6c, 0xb8, 0x8f, 0xc9, 0x9c, 0x96, 0x39, 0xca, 0xad, 0xe6, 0x3f, 0xe3, 0xdb, 0x64, 0x19, 196 0x94, 0x8e, 0x67, 0x3f, 0x00, 0x94, 0xea, 0xc5, 0x0c, 0x78, 0x38, 0xf6, 0x5f, 0xf9, 0x97, 0xaf, 197 0x7d, 0x45, 0xd0, 0x1f, 0xde, 0xdc, 0x5a, 0x27, 0x15, 0x18, 0x93, 0x2b, 0x42, 0xdf, 0x13, 0xce, 198 0xbb, 0x41, 0xbf, 0x3d, 0xea, 0xf7, 0x14, 0xb0, 0xcb, 0xbb, 0x29, 0x0a, 0x19, 0x8a, 0x38, 0x0f, 199 0xc6, 0xbe, 0xef, 0xf9, 0x2f, 0x15, 0x71, 0x97, 0x07, 0x39, 0x21, 0x98, 0xc4, 0x9c, 0x0f, 0x47, 200 0x97, 0x83, 0x41, 0xbf, 0xa7, 0xec, 0xed, 0xf2, 0x21, 0xa3, 0x49, 0x82, 0x22, 0xf5, 0x29, 0x94, 201 0x06, 0xed, 0xf1, 0xb0, 0xdf, 0x53, 0xf6, 0x75, 0xe5, 0xe6, 0xd6, 0x3a, 0xae, 0xf0, 0x20, 0xcc, 202 0xb3, 0x6a, 0x3a, 0xa7, 0x7c, 0xfa, 0xc1, 0xee, 0x6d, 0x8e, 0x31, 0x89, 0xf5, 0xd3, 0x4f, 0x5f, 203 0x0c, 0xe1, 0xdb, 0x57, 0xa3, 0xfe, 0x4d, 0x47, 0x5b, 0xdd, 0x19, 0xc2, 0xcf, 0x3b, 0x43, 0xf8, 204 0x58, 0x18, 0x60, 0x55, 0x18, 0xe0, 0x7b, 0x61, 0x80, 0xdf, 0x85, 0x01, 0xde, 0x08, 0x53, 0xa9, 205 0x0c, 0xe2, 0xe2, 0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xc3, 0x32, 0xd2, 0x86, 0x50, 0x03, 0x00, 206 0x00, 207 } 208 209 func (m *Process) Marshal() (dAtA []byte, err error) { 210 size := m.Size() 211 dAtA = make([]byte, size) 212 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 213 if err != nil { 214 return nil, err 215 } 216 return dAtA[:n], nil 217 } 218 219 func (m *Process) MarshalTo(dAtA []byte) (int, error) { 220 size := m.Size() 221 return m.MarshalToSizedBuffer(dAtA[:size]) 222 } 223 224 func (m *Process) MarshalToSizedBuffer(dAtA []byte) (int, error) { 225 i := len(dAtA) 226 _ = i 227 var l int 228 _ = l 229 if m.XXX_unrecognized != nil { 230 i -= len(m.XXX_unrecognized) 231 copy(dAtA[i:], m.XXX_unrecognized) 232 } 233 n1, err1 := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.ExitedAt, dAtA[i-github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt):]) 234 if err1 != nil { 235 return 0, err1 236 } 237 i -= n1 238 i = encodeVarintTask(dAtA, i, uint64(n1)) 239 i-- 240 dAtA[i] = 0x52 241 if m.ExitStatus != 0 { 242 i = encodeVarintTask(dAtA, i, uint64(m.ExitStatus)) 243 i-- 244 dAtA[i] = 0x48 245 } 246 if m.Terminal { 247 i-- 248 if m.Terminal { 249 dAtA[i] = 1 250 } else { 251 dAtA[i] = 0 252 } 253 i-- 254 dAtA[i] = 0x40 255 } 256 if len(m.Stderr) > 0 { 257 i -= len(m.Stderr) 258 copy(dAtA[i:], m.Stderr) 259 i = encodeVarintTask(dAtA, i, uint64(len(m.Stderr))) 260 i-- 261 dAtA[i] = 0x3a 262 } 263 if len(m.Stdout) > 0 { 264 i -= len(m.Stdout) 265 copy(dAtA[i:], m.Stdout) 266 i = encodeVarintTask(dAtA, i, uint64(len(m.Stdout))) 267 i-- 268 dAtA[i] = 0x32 269 } 270 if len(m.Stdin) > 0 { 271 i -= len(m.Stdin) 272 copy(dAtA[i:], m.Stdin) 273 i = encodeVarintTask(dAtA, i, uint64(len(m.Stdin))) 274 i-- 275 dAtA[i] = 0x2a 276 } 277 if m.Status != 0 { 278 i = encodeVarintTask(dAtA, i, uint64(m.Status)) 279 i-- 280 dAtA[i] = 0x20 281 } 282 if m.Pid != 0 { 283 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 284 i-- 285 dAtA[i] = 0x18 286 } 287 if len(m.ID) > 0 { 288 i -= len(m.ID) 289 copy(dAtA[i:], m.ID) 290 i = encodeVarintTask(dAtA, i, uint64(len(m.ID))) 291 i-- 292 dAtA[i] = 0x12 293 } 294 if len(m.ContainerID) > 0 { 295 i -= len(m.ContainerID) 296 copy(dAtA[i:], m.ContainerID) 297 i = encodeVarintTask(dAtA, i, uint64(len(m.ContainerID))) 298 i-- 299 dAtA[i] = 0xa 300 } 301 return len(dAtA) - i, nil 302 } 303 304 func (m *ProcessInfo) Marshal() (dAtA []byte, err error) { 305 size := m.Size() 306 dAtA = make([]byte, size) 307 n, err := m.MarshalToSizedBuffer(dAtA[:size]) 308 if err != nil { 309 return nil, err 310 } 311 return dAtA[:n], nil 312 } 313 314 func (m *ProcessInfo) MarshalTo(dAtA []byte) (int, error) { 315 size := m.Size() 316 return m.MarshalToSizedBuffer(dAtA[:size]) 317 } 318 319 func (m *ProcessInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) { 320 i := len(dAtA) 321 _ = i 322 var l int 323 _ = l 324 if m.XXX_unrecognized != nil { 325 i -= len(m.XXX_unrecognized) 326 copy(dAtA[i:], m.XXX_unrecognized) 327 } 328 if m.Info != nil { 329 { 330 size, err := m.Info.MarshalToSizedBuffer(dAtA[:i]) 331 if err != nil { 332 return 0, err 333 } 334 i -= size 335 i = encodeVarintTask(dAtA, i, uint64(size)) 336 } 337 i-- 338 dAtA[i] = 0x12 339 } 340 if m.Pid != 0 { 341 i = encodeVarintTask(dAtA, i, uint64(m.Pid)) 342 i-- 343 dAtA[i] = 0x8 344 } 345 return len(dAtA) - i, nil 346 } 347 348 func encodeVarintTask(dAtA []byte, offset int, v uint64) int { 349 offset -= sovTask(v) 350 base := offset 351 for v >= 1<<7 { 352 dAtA[offset] = uint8(v&0x7f | 0x80) 353 v >>= 7 354 offset++ 355 } 356 dAtA[offset] = uint8(v) 357 return base 358 } 359 func (m *Process) Size() (n int) { 360 if m == nil { 361 return 0 362 } 363 var l int 364 _ = l 365 l = len(m.ContainerID) 366 if l > 0 { 367 n += 1 + l + sovTask(uint64(l)) 368 } 369 l = len(m.ID) 370 if l > 0 { 371 n += 1 + l + sovTask(uint64(l)) 372 } 373 if m.Pid != 0 { 374 n += 1 + sovTask(uint64(m.Pid)) 375 } 376 if m.Status != 0 { 377 n += 1 + sovTask(uint64(m.Status)) 378 } 379 l = len(m.Stdin) 380 if l > 0 { 381 n += 1 + l + sovTask(uint64(l)) 382 } 383 l = len(m.Stdout) 384 if l > 0 { 385 n += 1 + l + sovTask(uint64(l)) 386 } 387 l = len(m.Stderr) 388 if l > 0 { 389 n += 1 + l + sovTask(uint64(l)) 390 } 391 if m.Terminal { 392 n += 2 393 } 394 if m.ExitStatus != 0 { 395 n += 1 + sovTask(uint64(m.ExitStatus)) 396 } 397 l = github_com_gogo_protobuf_types.SizeOfStdTime(m.ExitedAt) 398 n += 1 + l + sovTask(uint64(l)) 399 if m.XXX_unrecognized != nil { 400 n += len(m.XXX_unrecognized) 401 } 402 return n 403 } 404 405 func (m *ProcessInfo) Size() (n int) { 406 if m == nil { 407 return 0 408 } 409 var l int 410 _ = l 411 if m.Pid != 0 { 412 n += 1 + sovTask(uint64(m.Pid)) 413 } 414 if m.Info != nil { 415 l = m.Info.Size() 416 n += 1 + l + sovTask(uint64(l)) 417 } 418 if m.XXX_unrecognized != nil { 419 n += len(m.XXX_unrecognized) 420 } 421 return n 422 } 423 424 func sovTask(x uint64) (n int) { 425 return (math_bits.Len64(x|1) + 6) / 7 426 } 427 func sozTask(x uint64) (n int) { 428 return sovTask(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 429 } 430 func (this *Process) String() string { 431 if this == nil { 432 return "nil" 433 } 434 s := strings.Join([]string{`&Process{`, 435 `ContainerID:` + fmt.Sprintf("%v", this.ContainerID) + `,`, 436 `ID:` + fmt.Sprintf("%v", this.ID) + `,`, 437 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 438 `Status:` + fmt.Sprintf("%v", this.Status) + `,`, 439 `Stdin:` + fmt.Sprintf("%v", this.Stdin) + `,`, 440 `Stdout:` + fmt.Sprintf("%v", this.Stdout) + `,`, 441 `Stderr:` + fmt.Sprintf("%v", this.Stderr) + `,`, 442 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 443 `ExitStatus:` + fmt.Sprintf("%v", this.ExitStatus) + `,`, 444 `ExitedAt:` + strings.Replace(strings.Replace(fmt.Sprintf("%v", this.ExitedAt), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, 445 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 446 `}`, 447 }, "") 448 return s 449 } 450 func (this *ProcessInfo) String() string { 451 if this == nil { 452 return "nil" 453 } 454 s := strings.Join([]string{`&ProcessInfo{`, 455 `Pid:` + fmt.Sprintf("%v", this.Pid) + `,`, 456 `Info:` + strings.Replace(fmt.Sprintf("%v", this.Info), "Any", "types.Any", 1) + `,`, 457 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 458 `}`, 459 }, "") 460 return s 461 } 462 func valueToStringTask(v interface{}) string { 463 rv := reflect.ValueOf(v) 464 if rv.IsNil() { 465 return "nil" 466 } 467 pv := reflect.Indirect(rv).Interface() 468 return fmt.Sprintf("*%v", pv) 469 } 470 func (m *Process) Unmarshal(dAtA []byte) error { 471 l := len(dAtA) 472 iNdEx := 0 473 for iNdEx < l { 474 preIndex := iNdEx 475 var wire uint64 476 for shift := uint(0); ; shift += 7 { 477 if shift >= 64 { 478 return ErrIntOverflowTask 479 } 480 if iNdEx >= l { 481 return io.ErrUnexpectedEOF 482 } 483 b := dAtA[iNdEx] 484 iNdEx++ 485 wire |= uint64(b&0x7F) << shift 486 if b < 0x80 { 487 break 488 } 489 } 490 fieldNum := int32(wire >> 3) 491 wireType := int(wire & 0x7) 492 if wireType == 4 { 493 return fmt.Errorf("proto: Process: wiretype end group for non-group") 494 } 495 if fieldNum <= 0 { 496 return fmt.Errorf("proto: Process: illegal tag %d (wire type %d)", fieldNum, wire) 497 } 498 switch fieldNum { 499 case 1: 500 if wireType != 2 { 501 return fmt.Errorf("proto: wrong wireType = %d for field ContainerID", wireType) 502 } 503 var stringLen uint64 504 for shift := uint(0); ; shift += 7 { 505 if shift >= 64 { 506 return ErrIntOverflowTask 507 } 508 if iNdEx >= l { 509 return io.ErrUnexpectedEOF 510 } 511 b := dAtA[iNdEx] 512 iNdEx++ 513 stringLen |= uint64(b&0x7F) << shift 514 if b < 0x80 { 515 break 516 } 517 } 518 intStringLen := int(stringLen) 519 if intStringLen < 0 { 520 return ErrInvalidLengthTask 521 } 522 postIndex := iNdEx + intStringLen 523 if postIndex < 0 { 524 return ErrInvalidLengthTask 525 } 526 if postIndex > l { 527 return io.ErrUnexpectedEOF 528 } 529 m.ContainerID = string(dAtA[iNdEx:postIndex]) 530 iNdEx = postIndex 531 case 2: 532 if wireType != 2 { 533 return fmt.Errorf("proto: wrong wireType = %d for field ID", wireType) 534 } 535 var stringLen uint64 536 for shift := uint(0); ; shift += 7 { 537 if shift >= 64 { 538 return ErrIntOverflowTask 539 } 540 if iNdEx >= l { 541 return io.ErrUnexpectedEOF 542 } 543 b := dAtA[iNdEx] 544 iNdEx++ 545 stringLen |= uint64(b&0x7F) << shift 546 if b < 0x80 { 547 break 548 } 549 } 550 intStringLen := int(stringLen) 551 if intStringLen < 0 { 552 return ErrInvalidLengthTask 553 } 554 postIndex := iNdEx + intStringLen 555 if postIndex < 0 { 556 return ErrInvalidLengthTask 557 } 558 if postIndex > l { 559 return io.ErrUnexpectedEOF 560 } 561 m.ID = string(dAtA[iNdEx:postIndex]) 562 iNdEx = postIndex 563 case 3: 564 if wireType != 0 { 565 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 566 } 567 m.Pid = 0 568 for shift := uint(0); ; shift += 7 { 569 if shift >= 64 { 570 return ErrIntOverflowTask 571 } 572 if iNdEx >= l { 573 return io.ErrUnexpectedEOF 574 } 575 b := dAtA[iNdEx] 576 iNdEx++ 577 m.Pid |= uint32(b&0x7F) << shift 578 if b < 0x80 { 579 break 580 } 581 } 582 case 4: 583 if wireType != 0 { 584 return fmt.Errorf("proto: wrong wireType = %d for field Status", wireType) 585 } 586 m.Status = 0 587 for shift := uint(0); ; shift += 7 { 588 if shift >= 64 { 589 return ErrIntOverflowTask 590 } 591 if iNdEx >= l { 592 return io.ErrUnexpectedEOF 593 } 594 b := dAtA[iNdEx] 595 iNdEx++ 596 m.Status |= Status(b&0x7F) << shift 597 if b < 0x80 { 598 break 599 } 600 } 601 case 5: 602 if wireType != 2 { 603 return fmt.Errorf("proto: wrong wireType = %d for field Stdin", wireType) 604 } 605 var stringLen uint64 606 for shift := uint(0); ; shift += 7 { 607 if shift >= 64 { 608 return ErrIntOverflowTask 609 } 610 if iNdEx >= l { 611 return io.ErrUnexpectedEOF 612 } 613 b := dAtA[iNdEx] 614 iNdEx++ 615 stringLen |= uint64(b&0x7F) << shift 616 if b < 0x80 { 617 break 618 } 619 } 620 intStringLen := int(stringLen) 621 if intStringLen < 0 { 622 return ErrInvalidLengthTask 623 } 624 postIndex := iNdEx + intStringLen 625 if postIndex < 0 { 626 return ErrInvalidLengthTask 627 } 628 if postIndex > l { 629 return io.ErrUnexpectedEOF 630 } 631 m.Stdin = string(dAtA[iNdEx:postIndex]) 632 iNdEx = postIndex 633 case 6: 634 if wireType != 2 { 635 return fmt.Errorf("proto: wrong wireType = %d for field Stdout", wireType) 636 } 637 var stringLen uint64 638 for shift := uint(0); ; shift += 7 { 639 if shift >= 64 { 640 return ErrIntOverflowTask 641 } 642 if iNdEx >= l { 643 return io.ErrUnexpectedEOF 644 } 645 b := dAtA[iNdEx] 646 iNdEx++ 647 stringLen |= uint64(b&0x7F) << shift 648 if b < 0x80 { 649 break 650 } 651 } 652 intStringLen := int(stringLen) 653 if intStringLen < 0 { 654 return ErrInvalidLengthTask 655 } 656 postIndex := iNdEx + intStringLen 657 if postIndex < 0 { 658 return ErrInvalidLengthTask 659 } 660 if postIndex > l { 661 return io.ErrUnexpectedEOF 662 } 663 m.Stdout = string(dAtA[iNdEx:postIndex]) 664 iNdEx = postIndex 665 case 7: 666 if wireType != 2 { 667 return fmt.Errorf("proto: wrong wireType = %d for field Stderr", wireType) 668 } 669 var stringLen uint64 670 for shift := uint(0); ; shift += 7 { 671 if shift >= 64 { 672 return ErrIntOverflowTask 673 } 674 if iNdEx >= l { 675 return io.ErrUnexpectedEOF 676 } 677 b := dAtA[iNdEx] 678 iNdEx++ 679 stringLen |= uint64(b&0x7F) << shift 680 if b < 0x80 { 681 break 682 } 683 } 684 intStringLen := int(stringLen) 685 if intStringLen < 0 { 686 return ErrInvalidLengthTask 687 } 688 postIndex := iNdEx + intStringLen 689 if postIndex < 0 { 690 return ErrInvalidLengthTask 691 } 692 if postIndex > l { 693 return io.ErrUnexpectedEOF 694 } 695 m.Stderr = string(dAtA[iNdEx:postIndex]) 696 iNdEx = postIndex 697 case 8: 698 if wireType != 0 { 699 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 700 } 701 var v int 702 for shift := uint(0); ; shift += 7 { 703 if shift >= 64 { 704 return ErrIntOverflowTask 705 } 706 if iNdEx >= l { 707 return io.ErrUnexpectedEOF 708 } 709 b := dAtA[iNdEx] 710 iNdEx++ 711 v |= int(b&0x7F) << shift 712 if b < 0x80 { 713 break 714 } 715 } 716 m.Terminal = bool(v != 0) 717 case 9: 718 if wireType != 0 { 719 return fmt.Errorf("proto: wrong wireType = %d for field ExitStatus", wireType) 720 } 721 m.ExitStatus = 0 722 for shift := uint(0); ; shift += 7 { 723 if shift >= 64 { 724 return ErrIntOverflowTask 725 } 726 if iNdEx >= l { 727 return io.ErrUnexpectedEOF 728 } 729 b := dAtA[iNdEx] 730 iNdEx++ 731 m.ExitStatus |= uint32(b&0x7F) << shift 732 if b < 0x80 { 733 break 734 } 735 } 736 case 10: 737 if wireType != 2 { 738 return fmt.Errorf("proto: wrong wireType = %d for field ExitedAt", wireType) 739 } 740 var msglen int 741 for shift := uint(0); ; shift += 7 { 742 if shift >= 64 { 743 return ErrIntOverflowTask 744 } 745 if iNdEx >= l { 746 return io.ErrUnexpectedEOF 747 } 748 b := dAtA[iNdEx] 749 iNdEx++ 750 msglen |= int(b&0x7F) << shift 751 if b < 0x80 { 752 break 753 } 754 } 755 if msglen < 0 { 756 return ErrInvalidLengthTask 757 } 758 postIndex := iNdEx + msglen 759 if postIndex < 0 { 760 return ErrInvalidLengthTask 761 } 762 if postIndex > l { 763 return io.ErrUnexpectedEOF 764 } 765 if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.ExitedAt, dAtA[iNdEx:postIndex]); err != nil { 766 return err 767 } 768 iNdEx = postIndex 769 default: 770 iNdEx = preIndex 771 skippy, err := skipTask(dAtA[iNdEx:]) 772 if err != nil { 773 return err 774 } 775 if skippy < 0 { 776 return ErrInvalidLengthTask 777 } 778 if (iNdEx + skippy) < 0 { 779 return ErrInvalidLengthTask 780 } 781 if (iNdEx + skippy) > l { 782 return io.ErrUnexpectedEOF 783 } 784 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 785 iNdEx += skippy 786 } 787 } 788 789 if iNdEx > l { 790 return io.ErrUnexpectedEOF 791 } 792 return nil 793 } 794 func (m *ProcessInfo) Unmarshal(dAtA []byte) error { 795 l := len(dAtA) 796 iNdEx := 0 797 for iNdEx < l { 798 preIndex := iNdEx 799 var wire uint64 800 for shift := uint(0); ; shift += 7 { 801 if shift >= 64 { 802 return ErrIntOverflowTask 803 } 804 if iNdEx >= l { 805 return io.ErrUnexpectedEOF 806 } 807 b := dAtA[iNdEx] 808 iNdEx++ 809 wire |= uint64(b&0x7F) << shift 810 if b < 0x80 { 811 break 812 } 813 } 814 fieldNum := int32(wire >> 3) 815 wireType := int(wire & 0x7) 816 if wireType == 4 { 817 return fmt.Errorf("proto: ProcessInfo: wiretype end group for non-group") 818 } 819 if fieldNum <= 0 { 820 return fmt.Errorf("proto: ProcessInfo: illegal tag %d (wire type %d)", fieldNum, wire) 821 } 822 switch fieldNum { 823 case 1: 824 if wireType != 0 { 825 return fmt.Errorf("proto: wrong wireType = %d for field Pid", wireType) 826 } 827 m.Pid = 0 828 for shift := uint(0); ; shift += 7 { 829 if shift >= 64 { 830 return ErrIntOverflowTask 831 } 832 if iNdEx >= l { 833 return io.ErrUnexpectedEOF 834 } 835 b := dAtA[iNdEx] 836 iNdEx++ 837 m.Pid |= uint32(b&0x7F) << shift 838 if b < 0x80 { 839 break 840 } 841 } 842 case 2: 843 if wireType != 2 { 844 return fmt.Errorf("proto: wrong wireType = %d for field Info", wireType) 845 } 846 var msglen int 847 for shift := uint(0); ; shift += 7 { 848 if shift >= 64 { 849 return ErrIntOverflowTask 850 } 851 if iNdEx >= l { 852 return io.ErrUnexpectedEOF 853 } 854 b := dAtA[iNdEx] 855 iNdEx++ 856 msglen |= int(b&0x7F) << shift 857 if b < 0x80 { 858 break 859 } 860 } 861 if msglen < 0 { 862 return ErrInvalidLengthTask 863 } 864 postIndex := iNdEx + msglen 865 if postIndex < 0 { 866 return ErrInvalidLengthTask 867 } 868 if postIndex > l { 869 return io.ErrUnexpectedEOF 870 } 871 if m.Info == nil { 872 m.Info = &types.Any{} 873 } 874 if err := m.Info.Unmarshal(dAtA[iNdEx:postIndex]); err != nil { 875 return err 876 } 877 iNdEx = postIndex 878 default: 879 iNdEx = preIndex 880 skippy, err := skipTask(dAtA[iNdEx:]) 881 if err != nil { 882 return err 883 } 884 if skippy < 0 { 885 return ErrInvalidLengthTask 886 } 887 if (iNdEx + skippy) < 0 { 888 return ErrInvalidLengthTask 889 } 890 if (iNdEx + skippy) > l { 891 return io.ErrUnexpectedEOF 892 } 893 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 894 iNdEx += skippy 895 } 896 } 897 898 if iNdEx > l { 899 return io.ErrUnexpectedEOF 900 } 901 return nil 902 } 903 func skipTask(dAtA []byte) (n int, err error) { 904 l := len(dAtA) 905 iNdEx := 0 906 depth := 0 907 for iNdEx < l { 908 var wire uint64 909 for shift := uint(0); ; shift += 7 { 910 if shift >= 64 { 911 return 0, ErrIntOverflowTask 912 } 913 if iNdEx >= l { 914 return 0, io.ErrUnexpectedEOF 915 } 916 b := dAtA[iNdEx] 917 iNdEx++ 918 wire |= (uint64(b) & 0x7F) << shift 919 if b < 0x80 { 920 break 921 } 922 } 923 wireType := int(wire & 0x7) 924 switch wireType { 925 case 0: 926 for shift := uint(0); ; shift += 7 { 927 if shift >= 64 { 928 return 0, ErrIntOverflowTask 929 } 930 if iNdEx >= l { 931 return 0, io.ErrUnexpectedEOF 932 } 933 iNdEx++ 934 if dAtA[iNdEx-1] < 0x80 { 935 break 936 } 937 } 938 case 1: 939 iNdEx += 8 940 case 2: 941 var length int 942 for shift := uint(0); ; shift += 7 { 943 if shift >= 64 { 944 return 0, ErrIntOverflowTask 945 } 946 if iNdEx >= l { 947 return 0, io.ErrUnexpectedEOF 948 } 949 b := dAtA[iNdEx] 950 iNdEx++ 951 length |= (int(b) & 0x7F) << shift 952 if b < 0x80 { 953 break 954 } 955 } 956 if length < 0 { 957 return 0, ErrInvalidLengthTask 958 } 959 iNdEx += length 960 case 3: 961 depth++ 962 case 4: 963 if depth == 0 { 964 return 0, ErrUnexpectedEndOfGroupTask 965 } 966 depth-- 967 case 5: 968 iNdEx += 4 969 default: 970 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 971 } 972 if iNdEx < 0 { 973 return 0, ErrInvalidLengthTask 974 } 975 if depth == 0 { 976 return iNdEx, nil 977 } 978 } 979 return 0, io.ErrUnexpectedEOF 980 } 981 982 var ( 983 ErrInvalidLengthTask = fmt.Errorf("proto: negative length found during unmarshaling") 984 ErrIntOverflowTask = fmt.Errorf("proto: integer overflow") 985 ErrUnexpectedEndOfGroupTask = fmt.Errorf("proto: unexpected end of group") 986 )