github.com/demonoid81/containerd@v1.3.4/runtime/v2/runc/options/oci.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/containerd/containerd/runtime/v2/runc/options/oci.proto 3 4 package options 5 6 import ( 7 fmt "fmt" 8 proto "github.com/gogo/protobuf/proto" 9 io "io" 10 math "math" 11 reflect "reflect" 12 strings "strings" 13 ) 14 15 // Reference imports to suppress errors if they are not otherwise used. 16 var _ = proto.Marshal 17 var _ = fmt.Errorf 18 var _ = math.Inf 19 20 // This is a compile-time assertion to ensure that this generated file 21 // is compatible with the proto package it is being compiled against. 22 // A compilation error at this line likely means your copy of the 23 // proto package needs to be updated. 24 const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package 25 26 type Options struct { 27 // disable pivot root when creating a container 28 NoPivotRoot bool `protobuf:"varint,1,opt,name=no_pivot_root,json=noPivotRoot,proto3" json:"no_pivot_root,omitempty"` 29 // create a new keyring for the container 30 NoNewKeyring bool `protobuf:"varint,2,opt,name=no_new_keyring,json=noNewKeyring,proto3" json:"no_new_keyring,omitempty"` 31 // place the shim in a cgroup 32 ShimCgroup string `protobuf:"bytes,3,opt,name=shim_cgroup,json=shimCgroup,proto3" json:"shim_cgroup,omitempty"` 33 // set the I/O's pipes uid 34 IoUid uint32 `protobuf:"varint,4,opt,name=io_uid,json=ioUid,proto3" json:"io_uid,omitempty"` 35 // set the I/O's pipes gid 36 IoGid uint32 `protobuf:"varint,5,opt,name=io_gid,json=ioGid,proto3" json:"io_gid,omitempty"` 37 // binary name of the runc binary 38 BinaryName string `protobuf:"bytes,6,opt,name=binary_name,json=binaryName,proto3" json:"binary_name,omitempty"` 39 // runc root directory 40 Root string `protobuf:"bytes,7,opt,name=root,proto3" json:"root,omitempty"` 41 // criu binary path 42 CriuPath string `protobuf:"bytes,8,opt,name=criu_path,json=criuPath,proto3" json:"criu_path,omitempty"` 43 // enable systemd cgroups 44 SystemdCgroup bool `protobuf:"varint,9,opt,name=systemd_cgroup,json=systemdCgroup,proto3" json:"systemd_cgroup,omitempty"` 45 // criu image path 46 CriuImagePath string `protobuf:"bytes,10,opt,name=criu_image_path,json=criuImagePath,proto3" json:"criu_image_path,omitempty"` 47 // criu work path 48 CriuWorkPath string `protobuf:"bytes,11,opt,name=criu_work_path,json=criuWorkPath,proto3" json:"criu_work_path,omitempty"` 49 XXX_NoUnkeyedLiteral struct{} `json:"-"` 50 XXX_unrecognized []byte `json:"-"` 51 XXX_sizecache int32 `json:"-"` 52 } 53 54 func (m *Options) Reset() { *m = Options{} } 55 func (*Options) ProtoMessage() {} 56 func (*Options) Descriptor() ([]byte, []int) { 57 return fileDescriptor_4e5440d739e9a863, []int{0} 58 } 59 func (m *Options) XXX_Unmarshal(b []byte) error { 60 return m.Unmarshal(b) 61 } 62 func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 63 if deterministic { 64 return xxx_messageInfo_Options.Marshal(b, m, deterministic) 65 } else { 66 b = b[:cap(b)] 67 n, err := m.MarshalTo(b) 68 if err != nil { 69 return nil, err 70 } 71 return b[:n], nil 72 } 73 } 74 func (m *Options) XXX_Merge(src proto.Message) { 75 xxx_messageInfo_Options.Merge(m, src) 76 } 77 func (m *Options) XXX_Size() int { 78 return m.Size() 79 } 80 func (m *Options) XXX_DiscardUnknown() { 81 xxx_messageInfo_Options.DiscardUnknown(m) 82 } 83 84 var xxx_messageInfo_Options proto.InternalMessageInfo 85 86 type CheckpointOptions struct { 87 // exit the container after a checkpoint 88 Exit bool `protobuf:"varint,1,opt,name=exit,proto3" json:"exit,omitempty"` 89 // checkpoint open tcp connections 90 OpenTcp bool `protobuf:"varint,2,opt,name=open_tcp,json=openTcp,proto3" json:"open_tcp,omitempty"` 91 // checkpoint external unix sockets 92 ExternalUnixSockets bool `protobuf:"varint,3,opt,name=external_unix_sockets,json=externalUnixSockets,proto3" json:"external_unix_sockets,omitempty"` 93 // checkpoint terminals (ptys) 94 Terminal bool `protobuf:"varint,4,opt,name=terminal,proto3" json:"terminal,omitempty"` 95 // allow checkpointing of file locks 96 FileLocks bool `protobuf:"varint,5,opt,name=file_locks,json=fileLocks,proto3" json:"file_locks,omitempty"` 97 // restore provided namespaces as empty namespaces 98 EmptyNamespaces []string `protobuf:"bytes,6,rep,name=empty_namespaces,json=emptyNamespaces,proto3" json:"empty_namespaces,omitempty"` 99 // set the cgroups mode, soft, full, strict 100 CgroupsMode string `protobuf:"bytes,7,opt,name=cgroups_mode,json=cgroupsMode,proto3" json:"cgroups_mode,omitempty"` 101 // checkpoint image path 102 ImagePath string `protobuf:"bytes,8,opt,name=image_path,json=imagePath,proto3" json:"image_path,omitempty"` 103 // checkpoint work path 104 WorkPath string `protobuf:"bytes,9,opt,name=work_path,json=workPath,proto3" json:"work_path,omitempty"` 105 XXX_NoUnkeyedLiteral struct{} `json:"-"` 106 XXX_unrecognized []byte `json:"-"` 107 XXX_sizecache int32 `json:"-"` 108 } 109 110 func (m *CheckpointOptions) Reset() { *m = CheckpointOptions{} } 111 func (*CheckpointOptions) ProtoMessage() {} 112 func (*CheckpointOptions) Descriptor() ([]byte, []int) { 113 return fileDescriptor_4e5440d739e9a863, []int{1} 114 } 115 func (m *CheckpointOptions) XXX_Unmarshal(b []byte) error { 116 return m.Unmarshal(b) 117 } 118 func (m *CheckpointOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 119 if deterministic { 120 return xxx_messageInfo_CheckpointOptions.Marshal(b, m, deterministic) 121 } else { 122 b = b[:cap(b)] 123 n, err := m.MarshalTo(b) 124 if err != nil { 125 return nil, err 126 } 127 return b[:n], nil 128 } 129 } 130 func (m *CheckpointOptions) XXX_Merge(src proto.Message) { 131 xxx_messageInfo_CheckpointOptions.Merge(m, src) 132 } 133 func (m *CheckpointOptions) XXX_Size() int { 134 return m.Size() 135 } 136 func (m *CheckpointOptions) XXX_DiscardUnknown() { 137 xxx_messageInfo_CheckpointOptions.DiscardUnknown(m) 138 } 139 140 var xxx_messageInfo_CheckpointOptions proto.InternalMessageInfo 141 142 type ProcessDetails struct { 143 // exec process id if the process is managed by a shim 144 ExecID string `protobuf:"bytes,1,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 145 XXX_NoUnkeyedLiteral struct{} `json:"-"` 146 XXX_unrecognized []byte `json:"-"` 147 XXX_sizecache int32 `json:"-"` 148 } 149 150 func (m *ProcessDetails) Reset() { *m = ProcessDetails{} } 151 func (*ProcessDetails) ProtoMessage() {} 152 func (*ProcessDetails) Descriptor() ([]byte, []int) { 153 return fileDescriptor_4e5440d739e9a863, []int{2} 154 } 155 func (m *ProcessDetails) XXX_Unmarshal(b []byte) error { 156 return m.Unmarshal(b) 157 } 158 func (m *ProcessDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 159 if deterministic { 160 return xxx_messageInfo_ProcessDetails.Marshal(b, m, deterministic) 161 } else { 162 b = b[:cap(b)] 163 n, err := m.MarshalTo(b) 164 if err != nil { 165 return nil, err 166 } 167 return b[:n], nil 168 } 169 } 170 func (m *ProcessDetails) XXX_Merge(src proto.Message) { 171 xxx_messageInfo_ProcessDetails.Merge(m, src) 172 } 173 func (m *ProcessDetails) XXX_Size() int { 174 return m.Size() 175 } 176 func (m *ProcessDetails) XXX_DiscardUnknown() { 177 xxx_messageInfo_ProcessDetails.DiscardUnknown(m) 178 } 179 180 var xxx_messageInfo_ProcessDetails proto.InternalMessageInfo 181 182 func init() { 183 proto.RegisterType((*Options)(nil), "containerd.runc.v1.Options") 184 proto.RegisterType((*CheckpointOptions)(nil), "containerd.runc.v1.CheckpointOptions") 185 proto.RegisterType((*ProcessDetails)(nil), "containerd.runc.v1.ProcessDetails") 186 } 187 188 func init() { 189 proto.RegisterFile("github.com/containerd/containerd/runtime/v2/runc/options/oci.proto", fileDescriptor_4e5440d739e9a863) 190 } 191 192 var fileDescriptor_4e5440d739e9a863 = []byte{ 193 // 587 bytes of a gzipped FileDescriptorProto 194 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x6e, 0xd3, 0x40, 195 0x10, 0x87, 0xeb, 0xfe, 0x49, 0xec, 0x4d, 0x93, 0xc2, 0x42, 0x25, 0xd3, 0x8a, 0x34, 0x94, 0x82, 196 0xc2, 0x25, 0x11, 0x45, 0x9c, 0xb8, 0xa0, 0xb6, 0x08, 0x55, 0x40, 0xa9, 0x0c, 0x15, 0xa8, 0x97, 197 0x95, 0xbb, 0x1e, 0x9c, 0x51, 0xe2, 0x1d, 0xcb, 0xbb, 0x69, 0xd2, 0x1b, 0xef, 0xc5, 0x0b, 0xf4, 198 0xc8, 0x91, 0x13, 0xa2, 0xb9, 0xf1, 0x16, 0x68, 0xd7, 0x4e, 0xdb, 0x33, 0x27, 0xcf, 0x7e, 0xf3, 199 0xf3, 0x78, 0xfd, 0xad, 0x96, 0xed, 0xa5, 0x68, 0x06, 0xe3, 0xb3, 0x9e, 0xa4, 0xac, 0x2f, 0x49, 200 0x99, 0x18, 0x15, 0x14, 0xc9, 0xed, 0xb2, 0x18, 0x2b, 0x83, 0x19, 0xf4, 0xcf, 0x77, 0x6d, 0x29, 201 0xfb, 0x94, 0x1b, 0x24, 0xa5, 0xfb, 0x24, 0xb1, 0x97, 0x17, 0x64, 0x88, 0xf3, 0x9b, 0x74, 0xcf, 202 0x46, 0x7a, 0xe7, 0xcf, 0x37, 0xee, 0xa7, 0x94, 0x92, 0x6b, 0xf7, 0x6d, 0x55, 0x26, 0xb7, 0xff, 203 0x2e, 0xb2, 0xfa, 0xc7, 0xf2, 0x7d, 0xbe, 0xcd, 0x9a, 0x8a, 0x44, 0x8e, 0xe7, 0x64, 0x44, 0x41, 204 0x64, 0x42, 0xaf, 0xe3, 0x75, 0xfd, 0xa8, 0xa1, 0xe8, 0xd8, 0xb2, 0x88, 0xc8, 0xf0, 0x1d, 0xd6, 205 0x52, 0x24, 0x14, 0x4c, 0xc4, 0x10, 0x2e, 0x0a, 0x54, 0x69, 0xb8, 0xe8, 0x42, 0xab, 0x8a, 0x8e, 206 0x60, 0xf2, 0xae, 0x64, 0x7c, 0x8b, 0x35, 0xf4, 0x00, 0x33, 0x21, 0xd3, 0x82, 0xc6, 0x79, 0xb8, 207 0xd4, 0xf1, 0xba, 0x41, 0xc4, 0x2c, 0xda, 0x77, 0x84, 0xaf, 0xb3, 0x1a, 0x92, 0x18, 0x63, 0x12, 208 0x2e, 0x77, 0xbc, 0x6e, 0x33, 0x5a, 0x41, 0x3a, 0xc1, 0xa4, 0xc2, 0x29, 0x26, 0xe1, 0xca, 0x1c, 209 0xbf, 0xc5, 0xc4, 0x8e, 0x3b, 0x43, 0x15, 0x17, 0x17, 0x42, 0xc5, 0x19, 0x84, 0xb5, 0x72, 0x5c, 210 0x89, 0x8e, 0xe2, 0x0c, 0x38, 0x67, 0xcb, 0x6e, 0xc3, 0x75, 0xd7, 0x71, 0x35, 0xdf, 0x64, 0x81, 211 0x2c, 0x70, 0x2c, 0xf2, 0xd8, 0x0c, 0x42, 0xdf, 0x35, 0x7c, 0x0b, 0x8e, 0x63, 0x33, 0xe0, 0x4f, 212 0x58, 0x4b, 0x5f, 0x68, 0x03, 0x59, 0x32, 0xdf, 0x63, 0xe0, 0x7e, 0xa3, 0x59, 0xd1, 0x6a, 0x9b, 213 0x4f, 0xd9, 0x9a, 0x9b, 0x81, 0x59, 0x9c, 0x42, 0x39, 0x89, 0xb9, 0x49, 0x4d, 0x8b, 0x0f, 0x2d, 214 0x75, 0xe3, 0x76, 0x58, 0xcb, 0xe5, 0x26, 0x54, 0x0c, 0xcb, 0x58, 0xc3, 0xc5, 0x56, 0x2d, 0xfd, 215 0x42, 0xc5, 0xd0, 0xa6, 0xb6, 0x7f, 0x2c, 0xb2, 0xbb, 0xfb, 0x03, 0x90, 0xc3, 0x9c, 0x50, 0x99, 216 0xb9, 0x75, 0xce, 0x96, 0x61, 0x8a, 0x73, 0xd9, 0xae, 0xe6, 0x0f, 0x98, 0x4f, 0x39, 0x28, 0x61, 217 0x64, 0x5e, 0xf9, 0xad, 0xdb, 0xf5, 0x67, 0x99, 0xf3, 0x5d, 0xb6, 0x0e, 0x53, 0x03, 0x85, 0x8a, 218 0x47, 0x62, 0xac, 0x70, 0x2a, 0x34, 0xc9, 0x21, 0x18, 0xed, 0x24, 0xfb, 0xd1, 0xbd, 0x79, 0xf3, 219 0x44, 0xe1, 0xf4, 0x53, 0xd9, 0xe2, 0x1b, 0xcc, 0x37, 0x50, 0x64, 0xa8, 0xe2, 0x91, 0xf3, 0xed, 220 0x47, 0xd7, 0x6b, 0xfe, 0x90, 0xb1, 0x6f, 0x38, 0x02, 0x31, 0x22, 0x39, 0xd4, 0x4e, 0xbb, 0x1f, 221 0x05, 0x96, 0xbc, 0xb7, 0x80, 0x3f, 0x63, 0x77, 0x20, 0xcb, 0x4d, 0x69, 0x5e, 0xe7, 0xb1, 0x04, 222 0x1d, 0xd6, 0x3a, 0x4b, 0xdd, 0x20, 0x5a, 0x73, 0xfc, 0xe8, 0x1a, 0xf3, 0x47, 0x6c, 0xb5, 0x74, 223 0xa9, 0x45, 0x46, 0x09, 0x54, 0x87, 0xd1, 0xa8, 0xd8, 0x07, 0x4a, 0xc0, 0x7e, 0xec, 0x96, 0xca, 224 0xf2, 0x50, 0x02, 0xbc, 0xd6, 0xb8, 0xc9, 0x82, 0x1b, 0x83, 0x41, 0x79, 0x64, 0x93, 0xb9, 0xbd, 225 0x97, 0xac, 0x75, 0x5c, 0x90, 0x04, 0xad, 0x0f, 0xc0, 0xc4, 0x38, 0xd2, 0xfc, 0x31, 0xab, 0xc3, 226 0x14, 0xa4, 0xc0, 0xc4, 0xc9, 0x0b, 0xf6, 0xd8, 0xec, 0xf7, 0x56, 0xed, 0xcd, 0x14, 0xe4, 0xe1, 227 0x41, 0x54, 0xb3, 0xad, 0xc3, 0x64, 0xef, 0xf4, 0xf2, 0xaa, 0xbd, 0xf0, 0xeb, 0xaa, 0xbd, 0xf0, 228 0x7d, 0xd6, 0xf6, 0x2e, 0x67, 0x6d, 0xef, 0xe7, 0xac, 0xed, 0xfd, 0x99, 0xb5, 0xbd, 0xd3, 0xd7, 229 0xff, 0x7b, 0xd1, 0x5e, 0x55, 0xcf, 0xaf, 0x0b, 0x67, 0x35, 0x77, 0x8b, 0x5e, 0xfc, 0x0b, 0x00, 230 0x00, 0xff, 0xff, 0x90, 0x50, 0x79, 0xf2, 0xb5, 0x03, 0x00, 0x00, 231 } 232 233 func (m *Options) Marshal() (dAtA []byte, err error) { 234 size := m.Size() 235 dAtA = make([]byte, size) 236 n, err := m.MarshalTo(dAtA) 237 if err != nil { 238 return nil, err 239 } 240 return dAtA[:n], nil 241 } 242 243 func (m *Options) MarshalTo(dAtA []byte) (int, error) { 244 var i int 245 _ = i 246 var l int 247 _ = l 248 if m.NoPivotRoot { 249 dAtA[i] = 0x8 250 i++ 251 if m.NoPivotRoot { 252 dAtA[i] = 1 253 } else { 254 dAtA[i] = 0 255 } 256 i++ 257 } 258 if m.NoNewKeyring { 259 dAtA[i] = 0x10 260 i++ 261 if m.NoNewKeyring { 262 dAtA[i] = 1 263 } else { 264 dAtA[i] = 0 265 } 266 i++ 267 } 268 if len(m.ShimCgroup) > 0 { 269 dAtA[i] = 0x1a 270 i++ 271 i = encodeVarintOci(dAtA, i, uint64(len(m.ShimCgroup))) 272 i += copy(dAtA[i:], m.ShimCgroup) 273 } 274 if m.IoUid != 0 { 275 dAtA[i] = 0x20 276 i++ 277 i = encodeVarintOci(dAtA, i, uint64(m.IoUid)) 278 } 279 if m.IoGid != 0 { 280 dAtA[i] = 0x28 281 i++ 282 i = encodeVarintOci(dAtA, i, uint64(m.IoGid)) 283 } 284 if len(m.BinaryName) > 0 { 285 dAtA[i] = 0x32 286 i++ 287 i = encodeVarintOci(dAtA, i, uint64(len(m.BinaryName))) 288 i += copy(dAtA[i:], m.BinaryName) 289 } 290 if len(m.Root) > 0 { 291 dAtA[i] = 0x3a 292 i++ 293 i = encodeVarintOci(dAtA, i, uint64(len(m.Root))) 294 i += copy(dAtA[i:], m.Root) 295 } 296 if len(m.CriuPath) > 0 { 297 dAtA[i] = 0x42 298 i++ 299 i = encodeVarintOci(dAtA, i, uint64(len(m.CriuPath))) 300 i += copy(dAtA[i:], m.CriuPath) 301 } 302 if m.SystemdCgroup { 303 dAtA[i] = 0x48 304 i++ 305 if m.SystemdCgroup { 306 dAtA[i] = 1 307 } else { 308 dAtA[i] = 0 309 } 310 i++ 311 } 312 if len(m.CriuImagePath) > 0 { 313 dAtA[i] = 0x52 314 i++ 315 i = encodeVarintOci(dAtA, i, uint64(len(m.CriuImagePath))) 316 i += copy(dAtA[i:], m.CriuImagePath) 317 } 318 if len(m.CriuWorkPath) > 0 { 319 dAtA[i] = 0x5a 320 i++ 321 i = encodeVarintOci(dAtA, i, uint64(len(m.CriuWorkPath))) 322 i += copy(dAtA[i:], m.CriuWorkPath) 323 } 324 if m.XXX_unrecognized != nil { 325 i += copy(dAtA[i:], m.XXX_unrecognized) 326 } 327 return i, nil 328 } 329 330 func (m *CheckpointOptions) Marshal() (dAtA []byte, err error) { 331 size := m.Size() 332 dAtA = make([]byte, size) 333 n, err := m.MarshalTo(dAtA) 334 if err != nil { 335 return nil, err 336 } 337 return dAtA[:n], nil 338 } 339 340 func (m *CheckpointOptions) MarshalTo(dAtA []byte) (int, error) { 341 var i int 342 _ = i 343 var l int 344 _ = l 345 if m.Exit { 346 dAtA[i] = 0x8 347 i++ 348 if m.Exit { 349 dAtA[i] = 1 350 } else { 351 dAtA[i] = 0 352 } 353 i++ 354 } 355 if m.OpenTcp { 356 dAtA[i] = 0x10 357 i++ 358 if m.OpenTcp { 359 dAtA[i] = 1 360 } else { 361 dAtA[i] = 0 362 } 363 i++ 364 } 365 if m.ExternalUnixSockets { 366 dAtA[i] = 0x18 367 i++ 368 if m.ExternalUnixSockets { 369 dAtA[i] = 1 370 } else { 371 dAtA[i] = 0 372 } 373 i++ 374 } 375 if m.Terminal { 376 dAtA[i] = 0x20 377 i++ 378 if m.Terminal { 379 dAtA[i] = 1 380 } else { 381 dAtA[i] = 0 382 } 383 i++ 384 } 385 if m.FileLocks { 386 dAtA[i] = 0x28 387 i++ 388 if m.FileLocks { 389 dAtA[i] = 1 390 } else { 391 dAtA[i] = 0 392 } 393 i++ 394 } 395 if len(m.EmptyNamespaces) > 0 { 396 for _, s := range m.EmptyNamespaces { 397 dAtA[i] = 0x32 398 i++ 399 l = len(s) 400 for l >= 1<<7 { 401 dAtA[i] = uint8(uint64(l)&0x7f | 0x80) 402 l >>= 7 403 i++ 404 } 405 dAtA[i] = uint8(l) 406 i++ 407 i += copy(dAtA[i:], s) 408 } 409 } 410 if len(m.CgroupsMode) > 0 { 411 dAtA[i] = 0x3a 412 i++ 413 i = encodeVarintOci(dAtA, i, uint64(len(m.CgroupsMode))) 414 i += copy(dAtA[i:], m.CgroupsMode) 415 } 416 if len(m.ImagePath) > 0 { 417 dAtA[i] = 0x42 418 i++ 419 i = encodeVarintOci(dAtA, i, uint64(len(m.ImagePath))) 420 i += copy(dAtA[i:], m.ImagePath) 421 } 422 if len(m.WorkPath) > 0 { 423 dAtA[i] = 0x4a 424 i++ 425 i = encodeVarintOci(dAtA, i, uint64(len(m.WorkPath))) 426 i += copy(dAtA[i:], m.WorkPath) 427 } 428 if m.XXX_unrecognized != nil { 429 i += copy(dAtA[i:], m.XXX_unrecognized) 430 } 431 return i, nil 432 } 433 434 func (m *ProcessDetails) Marshal() (dAtA []byte, err error) { 435 size := m.Size() 436 dAtA = make([]byte, size) 437 n, err := m.MarshalTo(dAtA) 438 if err != nil { 439 return nil, err 440 } 441 return dAtA[:n], nil 442 } 443 444 func (m *ProcessDetails) MarshalTo(dAtA []byte) (int, error) { 445 var i int 446 _ = i 447 var l int 448 _ = l 449 if len(m.ExecID) > 0 { 450 dAtA[i] = 0xa 451 i++ 452 i = encodeVarintOci(dAtA, i, uint64(len(m.ExecID))) 453 i += copy(dAtA[i:], m.ExecID) 454 } 455 if m.XXX_unrecognized != nil { 456 i += copy(dAtA[i:], m.XXX_unrecognized) 457 } 458 return i, nil 459 } 460 461 func encodeVarintOci(dAtA []byte, offset int, v uint64) int { 462 for v >= 1<<7 { 463 dAtA[offset] = uint8(v&0x7f | 0x80) 464 v >>= 7 465 offset++ 466 } 467 dAtA[offset] = uint8(v) 468 return offset + 1 469 } 470 func (m *Options) Size() (n int) { 471 if m == nil { 472 return 0 473 } 474 var l int 475 _ = l 476 if m.NoPivotRoot { 477 n += 2 478 } 479 if m.NoNewKeyring { 480 n += 2 481 } 482 l = len(m.ShimCgroup) 483 if l > 0 { 484 n += 1 + l + sovOci(uint64(l)) 485 } 486 if m.IoUid != 0 { 487 n += 1 + sovOci(uint64(m.IoUid)) 488 } 489 if m.IoGid != 0 { 490 n += 1 + sovOci(uint64(m.IoGid)) 491 } 492 l = len(m.BinaryName) 493 if l > 0 { 494 n += 1 + l + sovOci(uint64(l)) 495 } 496 l = len(m.Root) 497 if l > 0 { 498 n += 1 + l + sovOci(uint64(l)) 499 } 500 l = len(m.CriuPath) 501 if l > 0 { 502 n += 1 + l + sovOci(uint64(l)) 503 } 504 if m.SystemdCgroup { 505 n += 2 506 } 507 l = len(m.CriuImagePath) 508 if l > 0 { 509 n += 1 + l + sovOci(uint64(l)) 510 } 511 l = len(m.CriuWorkPath) 512 if l > 0 { 513 n += 1 + l + sovOci(uint64(l)) 514 } 515 if m.XXX_unrecognized != nil { 516 n += len(m.XXX_unrecognized) 517 } 518 return n 519 } 520 521 func (m *CheckpointOptions) Size() (n int) { 522 if m == nil { 523 return 0 524 } 525 var l int 526 _ = l 527 if m.Exit { 528 n += 2 529 } 530 if m.OpenTcp { 531 n += 2 532 } 533 if m.ExternalUnixSockets { 534 n += 2 535 } 536 if m.Terminal { 537 n += 2 538 } 539 if m.FileLocks { 540 n += 2 541 } 542 if len(m.EmptyNamespaces) > 0 { 543 for _, s := range m.EmptyNamespaces { 544 l = len(s) 545 n += 1 + l + sovOci(uint64(l)) 546 } 547 } 548 l = len(m.CgroupsMode) 549 if l > 0 { 550 n += 1 + l + sovOci(uint64(l)) 551 } 552 l = len(m.ImagePath) 553 if l > 0 { 554 n += 1 + l + sovOci(uint64(l)) 555 } 556 l = len(m.WorkPath) 557 if l > 0 { 558 n += 1 + l + sovOci(uint64(l)) 559 } 560 if m.XXX_unrecognized != nil { 561 n += len(m.XXX_unrecognized) 562 } 563 return n 564 } 565 566 func (m *ProcessDetails) Size() (n int) { 567 if m == nil { 568 return 0 569 } 570 var l int 571 _ = l 572 l = len(m.ExecID) 573 if l > 0 { 574 n += 1 + l + sovOci(uint64(l)) 575 } 576 if m.XXX_unrecognized != nil { 577 n += len(m.XXX_unrecognized) 578 } 579 return n 580 } 581 582 func sovOci(x uint64) (n int) { 583 for { 584 n++ 585 x >>= 7 586 if x == 0 { 587 break 588 } 589 } 590 return n 591 } 592 func sozOci(x uint64) (n int) { 593 return sovOci(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 594 } 595 func (this *Options) String() string { 596 if this == nil { 597 return "nil" 598 } 599 s := strings.Join([]string{`&Options{`, 600 `NoPivotRoot:` + fmt.Sprintf("%v", this.NoPivotRoot) + `,`, 601 `NoNewKeyring:` + fmt.Sprintf("%v", this.NoNewKeyring) + `,`, 602 `ShimCgroup:` + fmt.Sprintf("%v", this.ShimCgroup) + `,`, 603 `IoUid:` + fmt.Sprintf("%v", this.IoUid) + `,`, 604 `IoGid:` + fmt.Sprintf("%v", this.IoGid) + `,`, 605 `BinaryName:` + fmt.Sprintf("%v", this.BinaryName) + `,`, 606 `Root:` + fmt.Sprintf("%v", this.Root) + `,`, 607 `CriuPath:` + fmt.Sprintf("%v", this.CriuPath) + `,`, 608 `SystemdCgroup:` + fmt.Sprintf("%v", this.SystemdCgroup) + `,`, 609 `CriuImagePath:` + fmt.Sprintf("%v", this.CriuImagePath) + `,`, 610 `CriuWorkPath:` + fmt.Sprintf("%v", this.CriuWorkPath) + `,`, 611 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 612 `}`, 613 }, "") 614 return s 615 } 616 func (this *CheckpointOptions) String() string { 617 if this == nil { 618 return "nil" 619 } 620 s := strings.Join([]string{`&CheckpointOptions{`, 621 `Exit:` + fmt.Sprintf("%v", this.Exit) + `,`, 622 `OpenTcp:` + fmt.Sprintf("%v", this.OpenTcp) + `,`, 623 `ExternalUnixSockets:` + fmt.Sprintf("%v", this.ExternalUnixSockets) + `,`, 624 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 625 `FileLocks:` + fmt.Sprintf("%v", this.FileLocks) + `,`, 626 `EmptyNamespaces:` + fmt.Sprintf("%v", this.EmptyNamespaces) + `,`, 627 `CgroupsMode:` + fmt.Sprintf("%v", this.CgroupsMode) + `,`, 628 `ImagePath:` + fmt.Sprintf("%v", this.ImagePath) + `,`, 629 `WorkPath:` + fmt.Sprintf("%v", this.WorkPath) + `,`, 630 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 631 `}`, 632 }, "") 633 return s 634 } 635 func (this *ProcessDetails) String() string { 636 if this == nil { 637 return "nil" 638 } 639 s := strings.Join([]string{`&ProcessDetails{`, 640 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 641 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 642 `}`, 643 }, "") 644 return s 645 } 646 func valueToStringOci(v interface{}) string { 647 rv := reflect.ValueOf(v) 648 if rv.IsNil() { 649 return "nil" 650 } 651 pv := reflect.Indirect(rv).Interface() 652 return fmt.Sprintf("*%v", pv) 653 } 654 func (m *Options) Unmarshal(dAtA []byte) error { 655 l := len(dAtA) 656 iNdEx := 0 657 for iNdEx < l { 658 preIndex := iNdEx 659 var wire uint64 660 for shift := uint(0); ; shift += 7 { 661 if shift >= 64 { 662 return ErrIntOverflowOci 663 } 664 if iNdEx >= l { 665 return io.ErrUnexpectedEOF 666 } 667 b := dAtA[iNdEx] 668 iNdEx++ 669 wire |= uint64(b&0x7F) << shift 670 if b < 0x80 { 671 break 672 } 673 } 674 fieldNum := int32(wire >> 3) 675 wireType := int(wire & 0x7) 676 if wireType == 4 { 677 return fmt.Errorf("proto: Options: wiretype end group for non-group") 678 } 679 if fieldNum <= 0 { 680 return fmt.Errorf("proto: Options: illegal tag %d (wire type %d)", fieldNum, wire) 681 } 682 switch fieldNum { 683 case 1: 684 if wireType != 0 { 685 return fmt.Errorf("proto: wrong wireType = %d for field NoPivotRoot", wireType) 686 } 687 var v int 688 for shift := uint(0); ; shift += 7 { 689 if shift >= 64 { 690 return ErrIntOverflowOci 691 } 692 if iNdEx >= l { 693 return io.ErrUnexpectedEOF 694 } 695 b := dAtA[iNdEx] 696 iNdEx++ 697 v |= int(b&0x7F) << shift 698 if b < 0x80 { 699 break 700 } 701 } 702 m.NoPivotRoot = bool(v != 0) 703 case 2: 704 if wireType != 0 { 705 return fmt.Errorf("proto: wrong wireType = %d for field NoNewKeyring", wireType) 706 } 707 var v int 708 for shift := uint(0); ; shift += 7 { 709 if shift >= 64 { 710 return ErrIntOverflowOci 711 } 712 if iNdEx >= l { 713 return io.ErrUnexpectedEOF 714 } 715 b := dAtA[iNdEx] 716 iNdEx++ 717 v |= int(b&0x7F) << shift 718 if b < 0x80 { 719 break 720 } 721 } 722 m.NoNewKeyring = bool(v != 0) 723 case 3: 724 if wireType != 2 { 725 return fmt.Errorf("proto: wrong wireType = %d for field ShimCgroup", wireType) 726 } 727 var stringLen uint64 728 for shift := uint(0); ; shift += 7 { 729 if shift >= 64 { 730 return ErrIntOverflowOci 731 } 732 if iNdEx >= l { 733 return io.ErrUnexpectedEOF 734 } 735 b := dAtA[iNdEx] 736 iNdEx++ 737 stringLen |= uint64(b&0x7F) << shift 738 if b < 0x80 { 739 break 740 } 741 } 742 intStringLen := int(stringLen) 743 if intStringLen < 0 { 744 return ErrInvalidLengthOci 745 } 746 postIndex := iNdEx + intStringLen 747 if postIndex < 0 { 748 return ErrInvalidLengthOci 749 } 750 if postIndex > l { 751 return io.ErrUnexpectedEOF 752 } 753 m.ShimCgroup = string(dAtA[iNdEx:postIndex]) 754 iNdEx = postIndex 755 case 4: 756 if wireType != 0 { 757 return fmt.Errorf("proto: wrong wireType = %d for field IoUid", wireType) 758 } 759 m.IoUid = 0 760 for shift := uint(0); ; shift += 7 { 761 if shift >= 64 { 762 return ErrIntOverflowOci 763 } 764 if iNdEx >= l { 765 return io.ErrUnexpectedEOF 766 } 767 b := dAtA[iNdEx] 768 iNdEx++ 769 m.IoUid |= uint32(b&0x7F) << shift 770 if b < 0x80 { 771 break 772 } 773 } 774 case 5: 775 if wireType != 0 { 776 return fmt.Errorf("proto: wrong wireType = %d for field IoGid", wireType) 777 } 778 m.IoGid = 0 779 for shift := uint(0); ; shift += 7 { 780 if shift >= 64 { 781 return ErrIntOverflowOci 782 } 783 if iNdEx >= l { 784 return io.ErrUnexpectedEOF 785 } 786 b := dAtA[iNdEx] 787 iNdEx++ 788 m.IoGid |= uint32(b&0x7F) << shift 789 if b < 0x80 { 790 break 791 } 792 } 793 case 6: 794 if wireType != 2 { 795 return fmt.Errorf("proto: wrong wireType = %d for field BinaryName", wireType) 796 } 797 var stringLen uint64 798 for shift := uint(0); ; shift += 7 { 799 if shift >= 64 { 800 return ErrIntOverflowOci 801 } 802 if iNdEx >= l { 803 return io.ErrUnexpectedEOF 804 } 805 b := dAtA[iNdEx] 806 iNdEx++ 807 stringLen |= uint64(b&0x7F) << shift 808 if b < 0x80 { 809 break 810 } 811 } 812 intStringLen := int(stringLen) 813 if intStringLen < 0 { 814 return ErrInvalidLengthOci 815 } 816 postIndex := iNdEx + intStringLen 817 if postIndex < 0 { 818 return ErrInvalidLengthOci 819 } 820 if postIndex > l { 821 return io.ErrUnexpectedEOF 822 } 823 m.BinaryName = string(dAtA[iNdEx:postIndex]) 824 iNdEx = postIndex 825 case 7: 826 if wireType != 2 { 827 return fmt.Errorf("proto: wrong wireType = %d for field Root", wireType) 828 } 829 var stringLen uint64 830 for shift := uint(0); ; shift += 7 { 831 if shift >= 64 { 832 return ErrIntOverflowOci 833 } 834 if iNdEx >= l { 835 return io.ErrUnexpectedEOF 836 } 837 b := dAtA[iNdEx] 838 iNdEx++ 839 stringLen |= uint64(b&0x7F) << shift 840 if b < 0x80 { 841 break 842 } 843 } 844 intStringLen := int(stringLen) 845 if intStringLen < 0 { 846 return ErrInvalidLengthOci 847 } 848 postIndex := iNdEx + intStringLen 849 if postIndex < 0 { 850 return ErrInvalidLengthOci 851 } 852 if postIndex > l { 853 return io.ErrUnexpectedEOF 854 } 855 m.Root = string(dAtA[iNdEx:postIndex]) 856 iNdEx = postIndex 857 case 8: 858 if wireType != 2 { 859 return fmt.Errorf("proto: wrong wireType = %d for field CriuPath", wireType) 860 } 861 var stringLen uint64 862 for shift := uint(0); ; shift += 7 { 863 if shift >= 64 { 864 return ErrIntOverflowOci 865 } 866 if iNdEx >= l { 867 return io.ErrUnexpectedEOF 868 } 869 b := dAtA[iNdEx] 870 iNdEx++ 871 stringLen |= uint64(b&0x7F) << shift 872 if b < 0x80 { 873 break 874 } 875 } 876 intStringLen := int(stringLen) 877 if intStringLen < 0 { 878 return ErrInvalidLengthOci 879 } 880 postIndex := iNdEx + intStringLen 881 if postIndex < 0 { 882 return ErrInvalidLengthOci 883 } 884 if postIndex > l { 885 return io.ErrUnexpectedEOF 886 } 887 m.CriuPath = string(dAtA[iNdEx:postIndex]) 888 iNdEx = postIndex 889 case 9: 890 if wireType != 0 { 891 return fmt.Errorf("proto: wrong wireType = %d for field SystemdCgroup", wireType) 892 } 893 var v int 894 for shift := uint(0); ; shift += 7 { 895 if shift >= 64 { 896 return ErrIntOverflowOci 897 } 898 if iNdEx >= l { 899 return io.ErrUnexpectedEOF 900 } 901 b := dAtA[iNdEx] 902 iNdEx++ 903 v |= int(b&0x7F) << shift 904 if b < 0x80 { 905 break 906 } 907 } 908 m.SystemdCgroup = bool(v != 0) 909 case 10: 910 if wireType != 2 { 911 return fmt.Errorf("proto: wrong wireType = %d for field CriuImagePath", wireType) 912 } 913 var stringLen uint64 914 for shift := uint(0); ; shift += 7 { 915 if shift >= 64 { 916 return ErrIntOverflowOci 917 } 918 if iNdEx >= l { 919 return io.ErrUnexpectedEOF 920 } 921 b := dAtA[iNdEx] 922 iNdEx++ 923 stringLen |= uint64(b&0x7F) << shift 924 if b < 0x80 { 925 break 926 } 927 } 928 intStringLen := int(stringLen) 929 if intStringLen < 0 { 930 return ErrInvalidLengthOci 931 } 932 postIndex := iNdEx + intStringLen 933 if postIndex < 0 { 934 return ErrInvalidLengthOci 935 } 936 if postIndex > l { 937 return io.ErrUnexpectedEOF 938 } 939 m.CriuImagePath = string(dAtA[iNdEx:postIndex]) 940 iNdEx = postIndex 941 case 11: 942 if wireType != 2 { 943 return fmt.Errorf("proto: wrong wireType = %d for field CriuWorkPath", wireType) 944 } 945 var stringLen uint64 946 for shift := uint(0); ; shift += 7 { 947 if shift >= 64 { 948 return ErrIntOverflowOci 949 } 950 if iNdEx >= l { 951 return io.ErrUnexpectedEOF 952 } 953 b := dAtA[iNdEx] 954 iNdEx++ 955 stringLen |= uint64(b&0x7F) << shift 956 if b < 0x80 { 957 break 958 } 959 } 960 intStringLen := int(stringLen) 961 if intStringLen < 0 { 962 return ErrInvalidLengthOci 963 } 964 postIndex := iNdEx + intStringLen 965 if postIndex < 0 { 966 return ErrInvalidLengthOci 967 } 968 if postIndex > l { 969 return io.ErrUnexpectedEOF 970 } 971 m.CriuWorkPath = string(dAtA[iNdEx:postIndex]) 972 iNdEx = postIndex 973 default: 974 iNdEx = preIndex 975 skippy, err := skipOci(dAtA[iNdEx:]) 976 if err != nil { 977 return err 978 } 979 if skippy < 0 { 980 return ErrInvalidLengthOci 981 } 982 if (iNdEx + skippy) < 0 { 983 return ErrInvalidLengthOci 984 } 985 if (iNdEx + skippy) > l { 986 return io.ErrUnexpectedEOF 987 } 988 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 989 iNdEx += skippy 990 } 991 } 992 993 if iNdEx > l { 994 return io.ErrUnexpectedEOF 995 } 996 return nil 997 } 998 func (m *CheckpointOptions) Unmarshal(dAtA []byte) error { 999 l := len(dAtA) 1000 iNdEx := 0 1001 for iNdEx < l { 1002 preIndex := iNdEx 1003 var wire uint64 1004 for shift := uint(0); ; shift += 7 { 1005 if shift >= 64 { 1006 return ErrIntOverflowOci 1007 } 1008 if iNdEx >= l { 1009 return io.ErrUnexpectedEOF 1010 } 1011 b := dAtA[iNdEx] 1012 iNdEx++ 1013 wire |= uint64(b&0x7F) << shift 1014 if b < 0x80 { 1015 break 1016 } 1017 } 1018 fieldNum := int32(wire >> 3) 1019 wireType := int(wire & 0x7) 1020 if wireType == 4 { 1021 return fmt.Errorf("proto: CheckpointOptions: wiretype end group for non-group") 1022 } 1023 if fieldNum <= 0 { 1024 return fmt.Errorf("proto: CheckpointOptions: illegal tag %d (wire type %d)", fieldNum, wire) 1025 } 1026 switch fieldNum { 1027 case 1: 1028 if wireType != 0 { 1029 return fmt.Errorf("proto: wrong wireType = %d for field Exit", wireType) 1030 } 1031 var v int 1032 for shift := uint(0); ; shift += 7 { 1033 if shift >= 64 { 1034 return ErrIntOverflowOci 1035 } 1036 if iNdEx >= l { 1037 return io.ErrUnexpectedEOF 1038 } 1039 b := dAtA[iNdEx] 1040 iNdEx++ 1041 v |= int(b&0x7F) << shift 1042 if b < 0x80 { 1043 break 1044 } 1045 } 1046 m.Exit = bool(v != 0) 1047 case 2: 1048 if wireType != 0 { 1049 return fmt.Errorf("proto: wrong wireType = %d for field OpenTcp", wireType) 1050 } 1051 var v int 1052 for shift := uint(0); ; shift += 7 { 1053 if shift >= 64 { 1054 return ErrIntOverflowOci 1055 } 1056 if iNdEx >= l { 1057 return io.ErrUnexpectedEOF 1058 } 1059 b := dAtA[iNdEx] 1060 iNdEx++ 1061 v |= int(b&0x7F) << shift 1062 if b < 0x80 { 1063 break 1064 } 1065 } 1066 m.OpenTcp = bool(v != 0) 1067 case 3: 1068 if wireType != 0 { 1069 return fmt.Errorf("proto: wrong wireType = %d for field ExternalUnixSockets", wireType) 1070 } 1071 var v int 1072 for shift := uint(0); ; shift += 7 { 1073 if shift >= 64 { 1074 return ErrIntOverflowOci 1075 } 1076 if iNdEx >= l { 1077 return io.ErrUnexpectedEOF 1078 } 1079 b := dAtA[iNdEx] 1080 iNdEx++ 1081 v |= int(b&0x7F) << shift 1082 if b < 0x80 { 1083 break 1084 } 1085 } 1086 m.ExternalUnixSockets = bool(v != 0) 1087 case 4: 1088 if wireType != 0 { 1089 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 1090 } 1091 var v int 1092 for shift := uint(0); ; shift += 7 { 1093 if shift >= 64 { 1094 return ErrIntOverflowOci 1095 } 1096 if iNdEx >= l { 1097 return io.ErrUnexpectedEOF 1098 } 1099 b := dAtA[iNdEx] 1100 iNdEx++ 1101 v |= int(b&0x7F) << shift 1102 if b < 0x80 { 1103 break 1104 } 1105 } 1106 m.Terminal = bool(v != 0) 1107 case 5: 1108 if wireType != 0 { 1109 return fmt.Errorf("proto: wrong wireType = %d for field FileLocks", wireType) 1110 } 1111 var v int 1112 for shift := uint(0); ; shift += 7 { 1113 if shift >= 64 { 1114 return ErrIntOverflowOci 1115 } 1116 if iNdEx >= l { 1117 return io.ErrUnexpectedEOF 1118 } 1119 b := dAtA[iNdEx] 1120 iNdEx++ 1121 v |= int(b&0x7F) << shift 1122 if b < 0x80 { 1123 break 1124 } 1125 } 1126 m.FileLocks = bool(v != 0) 1127 case 6: 1128 if wireType != 2 { 1129 return fmt.Errorf("proto: wrong wireType = %d for field EmptyNamespaces", wireType) 1130 } 1131 var stringLen uint64 1132 for shift := uint(0); ; shift += 7 { 1133 if shift >= 64 { 1134 return ErrIntOverflowOci 1135 } 1136 if iNdEx >= l { 1137 return io.ErrUnexpectedEOF 1138 } 1139 b := dAtA[iNdEx] 1140 iNdEx++ 1141 stringLen |= uint64(b&0x7F) << shift 1142 if b < 0x80 { 1143 break 1144 } 1145 } 1146 intStringLen := int(stringLen) 1147 if intStringLen < 0 { 1148 return ErrInvalidLengthOci 1149 } 1150 postIndex := iNdEx + intStringLen 1151 if postIndex < 0 { 1152 return ErrInvalidLengthOci 1153 } 1154 if postIndex > l { 1155 return io.ErrUnexpectedEOF 1156 } 1157 m.EmptyNamespaces = append(m.EmptyNamespaces, string(dAtA[iNdEx:postIndex])) 1158 iNdEx = postIndex 1159 case 7: 1160 if wireType != 2 { 1161 return fmt.Errorf("proto: wrong wireType = %d for field CgroupsMode", wireType) 1162 } 1163 var stringLen uint64 1164 for shift := uint(0); ; shift += 7 { 1165 if shift >= 64 { 1166 return ErrIntOverflowOci 1167 } 1168 if iNdEx >= l { 1169 return io.ErrUnexpectedEOF 1170 } 1171 b := dAtA[iNdEx] 1172 iNdEx++ 1173 stringLen |= uint64(b&0x7F) << shift 1174 if b < 0x80 { 1175 break 1176 } 1177 } 1178 intStringLen := int(stringLen) 1179 if intStringLen < 0 { 1180 return ErrInvalidLengthOci 1181 } 1182 postIndex := iNdEx + intStringLen 1183 if postIndex < 0 { 1184 return ErrInvalidLengthOci 1185 } 1186 if postIndex > l { 1187 return io.ErrUnexpectedEOF 1188 } 1189 m.CgroupsMode = string(dAtA[iNdEx:postIndex]) 1190 iNdEx = postIndex 1191 case 8: 1192 if wireType != 2 { 1193 return fmt.Errorf("proto: wrong wireType = %d for field ImagePath", wireType) 1194 } 1195 var stringLen uint64 1196 for shift := uint(0); ; shift += 7 { 1197 if shift >= 64 { 1198 return ErrIntOverflowOci 1199 } 1200 if iNdEx >= l { 1201 return io.ErrUnexpectedEOF 1202 } 1203 b := dAtA[iNdEx] 1204 iNdEx++ 1205 stringLen |= uint64(b&0x7F) << shift 1206 if b < 0x80 { 1207 break 1208 } 1209 } 1210 intStringLen := int(stringLen) 1211 if intStringLen < 0 { 1212 return ErrInvalidLengthOci 1213 } 1214 postIndex := iNdEx + intStringLen 1215 if postIndex < 0 { 1216 return ErrInvalidLengthOci 1217 } 1218 if postIndex > l { 1219 return io.ErrUnexpectedEOF 1220 } 1221 m.ImagePath = string(dAtA[iNdEx:postIndex]) 1222 iNdEx = postIndex 1223 case 9: 1224 if wireType != 2 { 1225 return fmt.Errorf("proto: wrong wireType = %d for field WorkPath", wireType) 1226 } 1227 var stringLen uint64 1228 for shift := uint(0); ; shift += 7 { 1229 if shift >= 64 { 1230 return ErrIntOverflowOci 1231 } 1232 if iNdEx >= l { 1233 return io.ErrUnexpectedEOF 1234 } 1235 b := dAtA[iNdEx] 1236 iNdEx++ 1237 stringLen |= uint64(b&0x7F) << shift 1238 if b < 0x80 { 1239 break 1240 } 1241 } 1242 intStringLen := int(stringLen) 1243 if intStringLen < 0 { 1244 return ErrInvalidLengthOci 1245 } 1246 postIndex := iNdEx + intStringLen 1247 if postIndex < 0 { 1248 return ErrInvalidLengthOci 1249 } 1250 if postIndex > l { 1251 return io.ErrUnexpectedEOF 1252 } 1253 m.WorkPath = string(dAtA[iNdEx:postIndex]) 1254 iNdEx = postIndex 1255 default: 1256 iNdEx = preIndex 1257 skippy, err := skipOci(dAtA[iNdEx:]) 1258 if err != nil { 1259 return err 1260 } 1261 if skippy < 0 { 1262 return ErrInvalidLengthOci 1263 } 1264 if (iNdEx + skippy) < 0 { 1265 return ErrInvalidLengthOci 1266 } 1267 if (iNdEx + skippy) > l { 1268 return io.ErrUnexpectedEOF 1269 } 1270 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1271 iNdEx += skippy 1272 } 1273 } 1274 1275 if iNdEx > l { 1276 return io.ErrUnexpectedEOF 1277 } 1278 return nil 1279 } 1280 func (m *ProcessDetails) Unmarshal(dAtA []byte) error { 1281 l := len(dAtA) 1282 iNdEx := 0 1283 for iNdEx < l { 1284 preIndex := iNdEx 1285 var wire uint64 1286 for shift := uint(0); ; shift += 7 { 1287 if shift >= 64 { 1288 return ErrIntOverflowOci 1289 } 1290 if iNdEx >= l { 1291 return io.ErrUnexpectedEOF 1292 } 1293 b := dAtA[iNdEx] 1294 iNdEx++ 1295 wire |= uint64(b&0x7F) << shift 1296 if b < 0x80 { 1297 break 1298 } 1299 } 1300 fieldNum := int32(wire >> 3) 1301 wireType := int(wire & 0x7) 1302 if wireType == 4 { 1303 return fmt.Errorf("proto: ProcessDetails: wiretype end group for non-group") 1304 } 1305 if fieldNum <= 0 { 1306 return fmt.Errorf("proto: ProcessDetails: illegal tag %d (wire type %d)", fieldNum, wire) 1307 } 1308 switch fieldNum { 1309 case 1: 1310 if wireType != 2 { 1311 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 1312 } 1313 var stringLen uint64 1314 for shift := uint(0); ; shift += 7 { 1315 if shift >= 64 { 1316 return ErrIntOverflowOci 1317 } 1318 if iNdEx >= l { 1319 return io.ErrUnexpectedEOF 1320 } 1321 b := dAtA[iNdEx] 1322 iNdEx++ 1323 stringLen |= uint64(b&0x7F) << shift 1324 if b < 0x80 { 1325 break 1326 } 1327 } 1328 intStringLen := int(stringLen) 1329 if intStringLen < 0 { 1330 return ErrInvalidLengthOci 1331 } 1332 postIndex := iNdEx + intStringLen 1333 if postIndex < 0 { 1334 return ErrInvalidLengthOci 1335 } 1336 if postIndex > l { 1337 return io.ErrUnexpectedEOF 1338 } 1339 m.ExecID = string(dAtA[iNdEx:postIndex]) 1340 iNdEx = postIndex 1341 default: 1342 iNdEx = preIndex 1343 skippy, err := skipOci(dAtA[iNdEx:]) 1344 if err != nil { 1345 return err 1346 } 1347 if skippy < 0 { 1348 return ErrInvalidLengthOci 1349 } 1350 if (iNdEx + skippy) < 0 { 1351 return ErrInvalidLengthOci 1352 } 1353 if (iNdEx + skippy) > l { 1354 return io.ErrUnexpectedEOF 1355 } 1356 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1357 iNdEx += skippy 1358 } 1359 } 1360 1361 if iNdEx > l { 1362 return io.ErrUnexpectedEOF 1363 } 1364 return nil 1365 } 1366 func skipOci(dAtA []byte) (n int, err error) { 1367 l := len(dAtA) 1368 iNdEx := 0 1369 for iNdEx < l { 1370 var wire uint64 1371 for shift := uint(0); ; shift += 7 { 1372 if shift >= 64 { 1373 return 0, ErrIntOverflowOci 1374 } 1375 if iNdEx >= l { 1376 return 0, io.ErrUnexpectedEOF 1377 } 1378 b := dAtA[iNdEx] 1379 iNdEx++ 1380 wire |= (uint64(b) & 0x7F) << shift 1381 if b < 0x80 { 1382 break 1383 } 1384 } 1385 wireType := int(wire & 0x7) 1386 switch wireType { 1387 case 0: 1388 for shift := uint(0); ; shift += 7 { 1389 if shift >= 64 { 1390 return 0, ErrIntOverflowOci 1391 } 1392 if iNdEx >= l { 1393 return 0, io.ErrUnexpectedEOF 1394 } 1395 iNdEx++ 1396 if dAtA[iNdEx-1] < 0x80 { 1397 break 1398 } 1399 } 1400 return iNdEx, nil 1401 case 1: 1402 iNdEx += 8 1403 return iNdEx, nil 1404 case 2: 1405 var length int 1406 for shift := uint(0); ; shift += 7 { 1407 if shift >= 64 { 1408 return 0, ErrIntOverflowOci 1409 } 1410 if iNdEx >= l { 1411 return 0, io.ErrUnexpectedEOF 1412 } 1413 b := dAtA[iNdEx] 1414 iNdEx++ 1415 length |= (int(b) & 0x7F) << shift 1416 if b < 0x80 { 1417 break 1418 } 1419 } 1420 if length < 0 { 1421 return 0, ErrInvalidLengthOci 1422 } 1423 iNdEx += length 1424 if iNdEx < 0 { 1425 return 0, ErrInvalidLengthOci 1426 } 1427 return iNdEx, nil 1428 case 3: 1429 for { 1430 var innerWire uint64 1431 var start int = iNdEx 1432 for shift := uint(0); ; shift += 7 { 1433 if shift >= 64 { 1434 return 0, ErrIntOverflowOci 1435 } 1436 if iNdEx >= l { 1437 return 0, io.ErrUnexpectedEOF 1438 } 1439 b := dAtA[iNdEx] 1440 iNdEx++ 1441 innerWire |= (uint64(b) & 0x7F) << shift 1442 if b < 0x80 { 1443 break 1444 } 1445 } 1446 innerWireType := int(innerWire & 0x7) 1447 if innerWireType == 4 { 1448 break 1449 } 1450 next, err := skipOci(dAtA[start:]) 1451 if err != nil { 1452 return 0, err 1453 } 1454 iNdEx = start + next 1455 if iNdEx < 0 { 1456 return 0, ErrInvalidLengthOci 1457 } 1458 } 1459 return iNdEx, nil 1460 case 4: 1461 return iNdEx, nil 1462 case 5: 1463 iNdEx += 4 1464 return iNdEx, nil 1465 default: 1466 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1467 } 1468 } 1469 panic("unreachable") 1470 } 1471 1472 var ( 1473 ErrInvalidLengthOci = fmt.Errorf("proto: negative length found during unmarshaling") 1474 ErrIntOverflowOci = fmt.Errorf("proto: integer overflow") 1475 )