github.com/demonoid81/containerd@v1.3.4/runtime/linux/runctypes/runc.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: github.com/containerd/containerd/runtime/linux/runctypes/runc.proto 3 4 package runctypes 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 RuncOptions struct { 27 Runtime string `protobuf:"bytes,1,opt,name=runtime,proto3" json:"runtime,omitempty"` 28 RuntimeRoot string `protobuf:"bytes,2,opt,name=runtime_root,json=runtimeRoot,proto3" json:"runtime_root,omitempty"` 29 CriuPath string `protobuf:"bytes,3,opt,name=criu_path,json=criuPath,proto3" json:"criu_path,omitempty"` 30 SystemdCgroup bool `protobuf:"varint,4,opt,name=systemd_cgroup,json=systemdCgroup,proto3" json:"systemd_cgroup,omitempty"` 31 XXX_NoUnkeyedLiteral struct{} `json:"-"` 32 XXX_unrecognized []byte `json:"-"` 33 XXX_sizecache int32 `json:"-"` 34 } 35 36 func (m *RuncOptions) Reset() { *m = RuncOptions{} } 37 func (*RuncOptions) ProtoMessage() {} 38 func (*RuncOptions) Descriptor() ([]byte, []int) { 39 return fileDescriptor_d20e2ba8b3cc58b9, []int{0} 40 } 41 func (m *RuncOptions) XXX_Unmarshal(b []byte) error { 42 return m.Unmarshal(b) 43 } 44 func (m *RuncOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 45 if deterministic { 46 return xxx_messageInfo_RuncOptions.Marshal(b, m, deterministic) 47 } else { 48 b = b[:cap(b)] 49 n, err := m.MarshalTo(b) 50 if err != nil { 51 return nil, err 52 } 53 return b[:n], nil 54 } 55 } 56 func (m *RuncOptions) XXX_Merge(src proto.Message) { 57 xxx_messageInfo_RuncOptions.Merge(m, src) 58 } 59 func (m *RuncOptions) XXX_Size() int { 60 return m.Size() 61 } 62 func (m *RuncOptions) XXX_DiscardUnknown() { 63 xxx_messageInfo_RuncOptions.DiscardUnknown(m) 64 } 65 66 var xxx_messageInfo_RuncOptions proto.InternalMessageInfo 67 68 type CreateOptions struct { 69 NoPivotRoot bool `protobuf:"varint,1,opt,name=no_pivot_root,json=noPivotRoot,proto3" json:"no_pivot_root,omitempty"` 70 OpenTcp bool `protobuf:"varint,2,opt,name=open_tcp,json=openTcp,proto3" json:"open_tcp,omitempty"` 71 ExternalUnixSockets bool `protobuf:"varint,3,opt,name=external_unix_sockets,json=externalUnixSockets,proto3" json:"external_unix_sockets,omitempty"` 72 Terminal bool `protobuf:"varint,4,opt,name=terminal,proto3" json:"terminal,omitempty"` 73 FileLocks bool `protobuf:"varint,5,opt,name=file_locks,json=fileLocks,proto3" json:"file_locks,omitempty"` 74 EmptyNamespaces []string `protobuf:"bytes,6,rep,name=empty_namespaces,json=emptyNamespaces,proto3" json:"empty_namespaces,omitempty"` 75 CgroupsMode string `protobuf:"bytes,7,opt,name=cgroups_mode,json=cgroupsMode,proto3" json:"cgroups_mode,omitempty"` 76 NoNewKeyring bool `protobuf:"varint,8,opt,name=no_new_keyring,json=noNewKeyring,proto3" json:"no_new_keyring,omitempty"` 77 ShimCgroup string `protobuf:"bytes,9,opt,name=shim_cgroup,json=shimCgroup,proto3" json:"shim_cgroup,omitempty"` 78 IoUid uint32 `protobuf:"varint,10,opt,name=io_uid,json=ioUid,proto3" json:"io_uid,omitempty"` 79 IoGid uint32 `protobuf:"varint,11,opt,name=io_gid,json=ioGid,proto3" json:"io_gid,omitempty"` 80 CriuWorkPath string `protobuf:"bytes,12,opt,name=criu_work_path,json=criuWorkPath,proto3" json:"criu_work_path,omitempty"` 81 CriuImagePath string `protobuf:"bytes,13,opt,name=criu_image_path,json=criuImagePath,proto3" json:"criu_image_path,omitempty"` 82 XXX_NoUnkeyedLiteral struct{} `json:"-"` 83 XXX_unrecognized []byte `json:"-"` 84 XXX_sizecache int32 `json:"-"` 85 } 86 87 func (m *CreateOptions) Reset() { *m = CreateOptions{} } 88 func (*CreateOptions) ProtoMessage() {} 89 func (*CreateOptions) Descriptor() ([]byte, []int) { 90 return fileDescriptor_d20e2ba8b3cc58b9, []int{1} 91 } 92 func (m *CreateOptions) XXX_Unmarshal(b []byte) error { 93 return m.Unmarshal(b) 94 } 95 func (m *CreateOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 96 if deterministic { 97 return xxx_messageInfo_CreateOptions.Marshal(b, m, deterministic) 98 } else { 99 b = b[:cap(b)] 100 n, err := m.MarshalTo(b) 101 if err != nil { 102 return nil, err 103 } 104 return b[:n], nil 105 } 106 } 107 func (m *CreateOptions) XXX_Merge(src proto.Message) { 108 xxx_messageInfo_CreateOptions.Merge(m, src) 109 } 110 func (m *CreateOptions) XXX_Size() int { 111 return m.Size() 112 } 113 func (m *CreateOptions) XXX_DiscardUnknown() { 114 xxx_messageInfo_CreateOptions.DiscardUnknown(m) 115 } 116 117 var xxx_messageInfo_CreateOptions proto.InternalMessageInfo 118 119 type CheckpointOptions struct { 120 Exit bool `protobuf:"varint,1,opt,name=exit,proto3" json:"exit,omitempty"` 121 OpenTcp bool `protobuf:"varint,2,opt,name=open_tcp,json=openTcp,proto3" json:"open_tcp,omitempty"` 122 ExternalUnixSockets bool `protobuf:"varint,3,opt,name=external_unix_sockets,json=externalUnixSockets,proto3" json:"external_unix_sockets,omitempty"` 123 Terminal bool `protobuf:"varint,4,opt,name=terminal,proto3" json:"terminal,omitempty"` 124 FileLocks bool `protobuf:"varint,5,opt,name=file_locks,json=fileLocks,proto3" json:"file_locks,omitempty"` 125 EmptyNamespaces []string `protobuf:"bytes,6,rep,name=empty_namespaces,json=emptyNamespaces,proto3" json:"empty_namespaces,omitempty"` 126 CgroupsMode string `protobuf:"bytes,7,opt,name=cgroups_mode,json=cgroupsMode,proto3" json:"cgroups_mode,omitempty"` 127 WorkPath string `protobuf:"bytes,8,opt,name=work_path,json=workPath,proto3" json:"work_path,omitempty"` 128 ImagePath string `protobuf:"bytes,9,opt,name=image_path,json=imagePath,proto3" json:"image_path,omitempty"` 129 XXX_NoUnkeyedLiteral struct{} `json:"-"` 130 XXX_unrecognized []byte `json:"-"` 131 XXX_sizecache int32 `json:"-"` 132 } 133 134 func (m *CheckpointOptions) Reset() { *m = CheckpointOptions{} } 135 func (*CheckpointOptions) ProtoMessage() {} 136 func (*CheckpointOptions) Descriptor() ([]byte, []int) { 137 return fileDescriptor_d20e2ba8b3cc58b9, []int{2} 138 } 139 func (m *CheckpointOptions) XXX_Unmarshal(b []byte) error { 140 return m.Unmarshal(b) 141 } 142 func (m *CheckpointOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 143 if deterministic { 144 return xxx_messageInfo_CheckpointOptions.Marshal(b, m, deterministic) 145 } else { 146 b = b[:cap(b)] 147 n, err := m.MarshalTo(b) 148 if err != nil { 149 return nil, err 150 } 151 return b[:n], nil 152 } 153 } 154 func (m *CheckpointOptions) XXX_Merge(src proto.Message) { 155 xxx_messageInfo_CheckpointOptions.Merge(m, src) 156 } 157 func (m *CheckpointOptions) XXX_Size() int { 158 return m.Size() 159 } 160 func (m *CheckpointOptions) XXX_DiscardUnknown() { 161 xxx_messageInfo_CheckpointOptions.DiscardUnknown(m) 162 } 163 164 var xxx_messageInfo_CheckpointOptions proto.InternalMessageInfo 165 166 type ProcessDetails struct { 167 ExecID string `protobuf:"bytes,1,opt,name=exec_id,json=execId,proto3" json:"exec_id,omitempty"` 168 XXX_NoUnkeyedLiteral struct{} `json:"-"` 169 XXX_unrecognized []byte `json:"-"` 170 XXX_sizecache int32 `json:"-"` 171 } 172 173 func (m *ProcessDetails) Reset() { *m = ProcessDetails{} } 174 func (*ProcessDetails) ProtoMessage() {} 175 func (*ProcessDetails) Descriptor() ([]byte, []int) { 176 return fileDescriptor_d20e2ba8b3cc58b9, []int{3} 177 } 178 func (m *ProcessDetails) XXX_Unmarshal(b []byte) error { 179 return m.Unmarshal(b) 180 } 181 func (m *ProcessDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 182 if deterministic { 183 return xxx_messageInfo_ProcessDetails.Marshal(b, m, deterministic) 184 } else { 185 b = b[:cap(b)] 186 n, err := m.MarshalTo(b) 187 if err != nil { 188 return nil, err 189 } 190 return b[:n], nil 191 } 192 } 193 func (m *ProcessDetails) XXX_Merge(src proto.Message) { 194 xxx_messageInfo_ProcessDetails.Merge(m, src) 195 } 196 func (m *ProcessDetails) XXX_Size() int { 197 return m.Size() 198 } 199 func (m *ProcessDetails) XXX_DiscardUnknown() { 200 xxx_messageInfo_ProcessDetails.DiscardUnknown(m) 201 } 202 203 var xxx_messageInfo_ProcessDetails proto.InternalMessageInfo 204 205 func init() { 206 proto.RegisterType((*RuncOptions)(nil), "containerd.linux.runc.RuncOptions") 207 proto.RegisterType((*CreateOptions)(nil), "containerd.linux.runc.CreateOptions") 208 proto.RegisterType((*CheckpointOptions)(nil), "containerd.linux.runc.CheckpointOptions") 209 proto.RegisterType((*ProcessDetails)(nil), "containerd.linux.runc.ProcessDetails") 210 } 211 212 func init() { 213 proto.RegisterFile("github.com/containerd/containerd/runtime/linux/runctypes/runc.proto", fileDescriptor_d20e2ba8b3cc58b9) 214 } 215 216 var fileDescriptor_d20e2ba8b3cc58b9 = []byte{ 217 // 604 bytes of a gzipped FileDescriptorProto 218 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x94, 0xcf, 0x6e, 0xd3, 0x40, 219 0x10, 0xc6, 0xeb, 0xfe, 0x49, 0x9c, 0x49, 0xd2, 0xc2, 0x42, 0x25, 0xd3, 0xaa, 0x69, 0x08, 0x7f, 220 0x14, 0x2e, 0xa9, 0x04, 0xe2, 0xc4, 0xad, 0x29, 0x42, 0x15, 0x50, 0x2a, 0x43, 0x05, 0x42, 0x48, 221 0x2b, 0x77, 0x3d, 0x24, 0xab, 0xc4, 0x3b, 0x96, 0x77, 0x4d, 0x92, 0x1b, 0x4f, 0xc0, 0x0b, 0xf1, 222 0x02, 0x3d, 0x21, 0x8e, 0x9c, 0x10, 0xcd, 0x93, 0xa0, 0x5d, 0xc7, 0x69, 0xcf, 0x1c, 0xb9, 0xcd, 223 0xfc, 0xe6, 0xb3, 0x67, 0xf4, 0x7d, 0xb2, 0xa1, 0x3f, 0x90, 0x66, 0x98, 0x9f, 0xf7, 0x04, 0x25, 224 0x07, 0x82, 0x94, 0x89, 0xa4, 0xc2, 0x2c, 0xbe, 0x5e, 0x66, 0xb9, 0x32, 0x32, 0xc1, 0x83, 0xb1, 225 0x54, 0xf9, 0xd4, 0x76, 0xc2, 0xcc, 0x52, 0xd4, 0xae, 0xea, 0xa5, 0x19, 0x19, 0x62, 0xdb, 0x57, 226 0xf2, 0x9e, 0x93, 0xf5, 0xec, 0x70, 0xe7, 0xf6, 0x80, 0x06, 0xe4, 0x14, 0x07, 0xb6, 0x2a, 0xc4, 227 0x9d, 0x6f, 0x1e, 0xd4, 0xc3, 0x5c, 0x89, 0x37, 0xa9, 0x91, 0xa4, 0x34, 0x0b, 0xa0, 0xba, 0x58, 228 0x11, 0x78, 0x6d, 0xaf, 0x5b, 0x0b, 0xcb, 0x96, 0xdd, 0x85, 0xc6, 0xa2, 0xe4, 0x19, 0x91, 0x09, 229 0x56, 0xdd, 0xb8, 0xbe, 0x60, 0x21, 0x91, 0x61, 0xbb, 0x50, 0x13, 0x99, 0xcc, 0x79, 0x1a, 0x99, 230 0x61, 0xb0, 0xe6, 0xe6, 0xbe, 0x05, 0xa7, 0x91, 0x19, 0xb2, 0x07, 0xb0, 0xa9, 0x67, 0xda, 0x60, 231 0x12, 0x73, 0x31, 0xc8, 0x28, 0x4f, 0x83, 0xf5, 0xb6, 0xd7, 0xf5, 0xc3, 0xe6, 0x82, 0xf6, 0x1d, 232 0xec, 0xfc, 0x58, 0x83, 0x66, 0x3f, 0xc3, 0xc8, 0x60, 0x79, 0x52, 0x07, 0x9a, 0x8a, 0x78, 0x2a, 233 0xbf, 0x90, 0x29, 0x36, 0x7b, 0xee, 0xb9, 0xba, 0xa2, 0x53, 0xcb, 0xdc, 0xe6, 0x3b, 0xe0, 0x53, 234 0x8a, 0x8a, 0x1b, 0x91, 0xba, 0xc3, 0xfc, 0xb0, 0x6a, 0xfb, 0x77, 0x22, 0x65, 0x8f, 0x61, 0x1b, 235 0xa7, 0x06, 0x33, 0x15, 0x8d, 0x79, 0xae, 0xe4, 0x94, 0x6b, 0x12, 0x23, 0x34, 0xda, 0x1d, 0xe8, 236 0x87, 0xb7, 0xca, 0xe1, 0x99, 0x92, 0xd3, 0xb7, 0xc5, 0x88, 0xed, 0x80, 0x6f, 0x30, 0x4b, 0xa4, 237 0x8a, 0xc6, 0x8b, 0x2b, 0x97, 0x3d, 0xdb, 0x03, 0xf8, 0x2c, 0xc7, 0xc8, 0xc7, 0x24, 0x46, 0x3a, 238 0xd8, 0x70, 0xd3, 0x9a, 0x25, 0xaf, 0x2c, 0x60, 0x8f, 0xe0, 0x06, 0x26, 0xa9, 0x99, 0x71, 0x15, 239 0x25, 0xa8, 0xd3, 0x48, 0xa0, 0x0e, 0x2a, 0xed, 0xb5, 0x6e, 0x2d, 0xdc, 0x72, 0xfc, 0x64, 0x89, 240 0xad, 0xa3, 0x85, 0x13, 0x9a, 0x27, 0x14, 0x63, 0x50, 0x2d, 0x1c, 0x5d, 0xb0, 0xd7, 0x14, 0x23, 241 0xbb, 0x0f, 0x9b, 0x8a, 0xb8, 0xc2, 0x09, 0x1f, 0xe1, 0x2c, 0x93, 0x6a, 0x10, 0xf8, 0x6e, 0x61, 242 0x43, 0xd1, 0x09, 0x4e, 0x5e, 0x16, 0x8c, 0xed, 0x43, 0x5d, 0x0f, 0x65, 0x52, 0xfa, 0x5a, 0x73, 243 0xef, 0x01, 0x8b, 0x0a, 0x53, 0xd9, 0x36, 0x54, 0x24, 0xf1, 0x5c, 0xc6, 0x01, 0xb4, 0xbd, 0x6e, 244 0x33, 0xdc, 0x90, 0x74, 0x26, 0xe3, 0x05, 0x1e, 0xc8, 0x38, 0xa8, 0x97, 0xf8, 0x85, 0x8c, 0xed, 245 0x52, 0x17, 0xe3, 0x84, 0xb2, 0x51, 0x91, 0x65, 0xc3, 0xbd, 0xb1, 0x61, 0xe9, 0x7b, 0xca, 0x46, 246 0x2e, 0xcf, 0x87, 0xb0, 0xe5, 0x54, 0x32, 0x89, 0x06, 0x58, 0xc8, 0x9a, 0x4e, 0xd6, 0xb4, 0xf8, 247 0xd8, 0x52, 0xab, 0xeb, 0x7c, 0x5f, 0x85, 0x9b, 0xfd, 0x21, 0x8a, 0x51, 0x4a, 0x52, 0x99, 0x32, 248 0x54, 0x06, 0xeb, 0x38, 0x95, 0x65, 0x96, 0xae, 0xfe, 0x6f, 0x43, 0xdc, 0x85, 0xda, 0x95, 0x95, 249 0x7e, 0xf1, 0x59, 0x4c, 0x4a, 0x1b, 0xf7, 0x00, 0xae, 0x39, 0x58, 0x44, 0x57, 0x93, 0x4b, 0xf7, 250 0x9e, 0xc2, 0xe6, 0x69, 0x46, 0x02, 0xb5, 0x3e, 0x42, 0x13, 0xc9, 0xb1, 0x66, 0xf7, 0xa0, 0x8a, 251 0x53, 0x14, 0x5c, 0xc6, 0xc5, 0x17, 0x7a, 0x08, 0xf3, 0xdf, 0xfb, 0x95, 0xe7, 0x53, 0x14, 0xc7, 252 0x47, 0x61, 0xc5, 0x8e, 0x8e, 0xe3, 0xc3, 0x4f, 0x17, 0x97, 0xad, 0x95, 0x5f, 0x97, 0xad, 0x95, 253 0xaf, 0xf3, 0x96, 0x77, 0x31, 0x6f, 0x79, 0x3f, 0xe7, 0x2d, 0xef, 0xcf, 0xbc, 0xe5, 0x7d, 0x3c, 254 0xfc, 0xd7, 0x5f, 0xcc, 0xb3, 0x65, 0xf5, 0x61, 0xe5, 0xbc, 0xe2, 0xfe, 0x1e, 0x4f, 0xfe, 0x06, 255 0x00, 0x00, 0xff, 0xff, 0x7f, 0x24, 0x6f, 0x2e, 0xb1, 0x04, 0x00, 0x00, 256 } 257 258 func (m *RuncOptions) Marshal() (dAtA []byte, err error) { 259 size := m.Size() 260 dAtA = make([]byte, size) 261 n, err := m.MarshalTo(dAtA) 262 if err != nil { 263 return nil, err 264 } 265 return dAtA[:n], nil 266 } 267 268 func (m *RuncOptions) MarshalTo(dAtA []byte) (int, error) { 269 var i int 270 _ = i 271 var l int 272 _ = l 273 if len(m.Runtime) > 0 { 274 dAtA[i] = 0xa 275 i++ 276 i = encodeVarintRunc(dAtA, i, uint64(len(m.Runtime))) 277 i += copy(dAtA[i:], m.Runtime) 278 } 279 if len(m.RuntimeRoot) > 0 { 280 dAtA[i] = 0x12 281 i++ 282 i = encodeVarintRunc(dAtA, i, uint64(len(m.RuntimeRoot))) 283 i += copy(dAtA[i:], m.RuntimeRoot) 284 } 285 if len(m.CriuPath) > 0 { 286 dAtA[i] = 0x1a 287 i++ 288 i = encodeVarintRunc(dAtA, i, uint64(len(m.CriuPath))) 289 i += copy(dAtA[i:], m.CriuPath) 290 } 291 if m.SystemdCgroup { 292 dAtA[i] = 0x20 293 i++ 294 if m.SystemdCgroup { 295 dAtA[i] = 1 296 } else { 297 dAtA[i] = 0 298 } 299 i++ 300 } 301 if m.XXX_unrecognized != nil { 302 i += copy(dAtA[i:], m.XXX_unrecognized) 303 } 304 return i, nil 305 } 306 307 func (m *CreateOptions) Marshal() (dAtA []byte, err error) { 308 size := m.Size() 309 dAtA = make([]byte, size) 310 n, err := m.MarshalTo(dAtA) 311 if err != nil { 312 return nil, err 313 } 314 return dAtA[:n], nil 315 } 316 317 func (m *CreateOptions) MarshalTo(dAtA []byte) (int, error) { 318 var i int 319 _ = i 320 var l int 321 _ = l 322 if m.NoPivotRoot { 323 dAtA[i] = 0x8 324 i++ 325 if m.NoPivotRoot { 326 dAtA[i] = 1 327 } else { 328 dAtA[i] = 0 329 } 330 i++ 331 } 332 if m.OpenTcp { 333 dAtA[i] = 0x10 334 i++ 335 if m.OpenTcp { 336 dAtA[i] = 1 337 } else { 338 dAtA[i] = 0 339 } 340 i++ 341 } 342 if m.ExternalUnixSockets { 343 dAtA[i] = 0x18 344 i++ 345 if m.ExternalUnixSockets { 346 dAtA[i] = 1 347 } else { 348 dAtA[i] = 0 349 } 350 i++ 351 } 352 if m.Terminal { 353 dAtA[i] = 0x20 354 i++ 355 if m.Terminal { 356 dAtA[i] = 1 357 } else { 358 dAtA[i] = 0 359 } 360 i++ 361 } 362 if m.FileLocks { 363 dAtA[i] = 0x28 364 i++ 365 if m.FileLocks { 366 dAtA[i] = 1 367 } else { 368 dAtA[i] = 0 369 } 370 i++ 371 } 372 if len(m.EmptyNamespaces) > 0 { 373 for _, s := range m.EmptyNamespaces { 374 dAtA[i] = 0x32 375 i++ 376 l = len(s) 377 for l >= 1<<7 { 378 dAtA[i] = uint8(uint64(l)&0x7f | 0x80) 379 l >>= 7 380 i++ 381 } 382 dAtA[i] = uint8(l) 383 i++ 384 i += copy(dAtA[i:], s) 385 } 386 } 387 if len(m.CgroupsMode) > 0 { 388 dAtA[i] = 0x3a 389 i++ 390 i = encodeVarintRunc(dAtA, i, uint64(len(m.CgroupsMode))) 391 i += copy(dAtA[i:], m.CgroupsMode) 392 } 393 if m.NoNewKeyring { 394 dAtA[i] = 0x40 395 i++ 396 if m.NoNewKeyring { 397 dAtA[i] = 1 398 } else { 399 dAtA[i] = 0 400 } 401 i++ 402 } 403 if len(m.ShimCgroup) > 0 { 404 dAtA[i] = 0x4a 405 i++ 406 i = encodeVarintRunc(dAtA, i, uint64(len(m.ShimCgroup))) 407 i += copy(dAtA[i:], m.ShimCgroup) 408 } 409 if m.IoUid != 0 { 410 dAtA[i] = 0x50 411 i++ 412 i = encodeVarintRunc(dAtA, i, uint64(m.IoUid)) 413 } 414 if m.IoGid != 0 { 415 dAtA[i] = 0x58 416 i++ 417 i = encodeVarintRunc(dAtA, i, uint64(m.IoGid)) 418 } 419 if len(m.CriuWorkPath) > 0 { 420 dAtA[i] = 0x62 421 i++ 422 i = encodeVarintRunc(dAtA, i, uint64(len(m.CriuWorkPath))) 423 i += copy(dAtA[i:], m.CriuWorkPath) 424 } 425 if len(m.CriuImagePath) > 0 { 426 dAtA[i] = 0x6a 427 i++ 428 i = encodeVarintRunc(dAtA, i, uint64(len(m.CriuImagePath))) 429 i += copy(dAtA[i:], m.CriuImagePath) 430 } 431 if m.XXX_unrecognized != nil { 432 i += copy(dAtA[i:], m.XXX_unrecognized) 433 } 434 return i, nil 435 } 436 437 func (m *CheckpointOptions) Marshal() (dAtA []byte, err error) { 438 size := m.Size() 439 dAtA = make([]byte, size) 440 n, err := m.MarshalTo(dAtA) 441 if err != nil { 442 return nil, err 443 } 444 return dAtA[:n], nil 445 } 446 447 func (m *CheckpointOptions) MarshalTo(dAtA []byte) (int, error) { 448 var i int 449 _ = i 450 var l int 451 _ = l 452 if m.Exit { 453 dAtA[i] = 0x8 454 i++ 455 if m.Exit { 456 dAtA[i] = 1 457 } else { 458 dAtA[i] = 0 459 } 460 i++ 461 } 462 if m.OpenTcp { 463 dAtA[i] = 0x10 464 i++ 465 if m.OpenTcp { 466 dAtA[i] = 1 467 } else { 468 dAtA[i] = 0 469 } 470 i++ 471 } 472 if m.ExternalUnixSockets { 473 dAtA[i] = 0x18 474 i++ 475 if m.ExternalUnixSockets { 476 dAtA[i] = 1 477 } else { 478 dAtA[i] = 0 479 } 480 i++ 481 } 482 if m.Terminal { 483 dAtA[i] = 0x20 484 i++ 485 if m.Terminal { 486 dAtA[i] = 1 487 } else { 488 dAtA[i] = 0 489 } 490 i++ 491 } 492 if m.FileLocks { 493 dAtA[i] = 0x28 494 i++ 495 if m.FileLocks { 496 dAtA[i] = 1 497 } else { 498 dAtA[i] = 0 499 } 500 i++ 501 } 502 if len(m.EmptyNamespaces) > 0 { 503 for _, s := range m.EmptyNamespaces { 504 dAtA[i] = 0x32 505 i++ 506 l = len(s) 507 for l >= 1<<7 { 508 dAtA[i] = uint8(uint64(l)&0x7f | 0x80) 509 l >>= 7 510 i++ 511 } 512 dAtA[i] = uint8(l) 513 i++ 514 i += copy(dAtA[i:], s) 515 } 516 } 517 if len(m.CgroupsMode) > 0 { 518 dAtA[i] = 0x3a 519 i++ 520 i = encodeVarintRunc(dAtA, i, uint64(len(m.CgroupsMode))) 521 i += copy(dAtA[i:], m.CgroupsMode) 522 } 523 if len(m.WorkPath) > 0 { 524 dAtA[i] = 0x42 525 i++ 526 i = encodeVarintRunc(dAtA, i, uint64(len(m.WorkPath))) 527 i += copy(dAtA[i:], m.WorkPath) 528 } 529 if len(m.ImagePath) > 0 { 530 dAtA[i] = 0x4a 531 i++ 532 i = encodeVarintRunc(dAtA, i, uint64(len(m.ImagePath))) 533 i += copy(dAtA[i:], m.ImagePath) 534 } 535 if m.XXX_unrecognized != nil { 536 i += copy(dAtA[i:], m.XXX_unrecognized) 537 } 538 return i, nil 539 } 540 541 func (m *ProcessDetails) Marshal() (dAtA []byte, err error) { 542 size := m.Size() 543 dAtA = make([]byte, size) 544 n, err := m.MarshalTo(dAtA) 545 if err != nil { 546 return nil, err 547 } 548 return dAtA[:n], nil 549 } 550 551 func (m *ProcessDetails) MarshalTo(dAtA []byte) (int, error) { 552 var i int 553 _ = i 554 var l int 555 _ = l 556 if len(m.ExecID) > 0 { 557 dAtA[i] = 0xa 558 i++ 559 i = encodeVarintRunc(dAtA, i, uint64(len(m.ExecID))) 560 i += copy(dAtA[i:], m.ExecID) 561 } 562 if m.XXX_unrecognized != nil { 563 i += copy(dAtA[i:], m.XXX_unrecognized) 564 } 565 return i, nil 566 } 567 568 func encodeVarintRunc(dAtA []byte, offset int, v uint64) int { 569 for v >= 1<<7 { 570 dAtA[offset] = uint8(v&0x7f | 0x80) 571 v >>= 7 572 offset++ 573 } 574 dAtA[offset] = uint8(v) 575 return offset + 1 576 } 577 func (m *RuncOptions) Size() (n int) { 578 if m == nil { 579 return 0 580 } 581 var l int 582 _ = l 583 l = len(m.Runtime) 584 if l > 0 { 585 n += 1 + l + sovRunc(uint64(l)) 586 } 587 l = len(m.RuntimeRoot) 588 if l > 0 { 589 n += 1 + l + sovRunc(uint64(l)) 590 } 591 l = len(m.CriuPath) 592 if l > 0 { 593 n += 1 + l + sovRunc(uint64(l)) 594 } 595 if m.SystemdCgroup { 596 n += 2 597 } 598 if m.XXX_unrecognized != nil { 599 n += len(m.XXX_unrecognized) 600 } 601 return n 602 } 603 604 func (m *CreateOptions) Size() (n int) { 605 if m == nil { 606 return 0 607 } 608 var l int 609 _ = l 610 if m.NoPivotRoot { 611 n += 2 612 } 613 if m.OpenTcp { 614 n += 2 615 } 616 if m.ExternalUnixSockets { 617 n += 2 618 } 619 if m.Terminal { 620 n += 2 621 } 622 if m.FileLocks { 623 n += 2 624 } 625 if len(m.EmptyNamespaces) > 0 { 626 for _, s := range m.EmptyNamespaces { 627 l = len(s) 628 n += 1 + l + sovRunc(uint64(l)) 629 } 630 } 631 l = len(m.CgroupsMode) 632 if l > 0 { 633 n += 1 + l + sovRunc(uint64(l)) 634 } 635 if m.NoNewKeyring { 636 n += 2 637 } 638 l = len(m.ShimCgroup) 639 if l > 0 { 640 n += 1 + l + sovRunc(uint64(l)) 641 } 642 if m.IoUid != 0 { 643 n += 1 + sovRunc(uint64(m.IoUid)) 644 } 645 if m.IoGid != 0 { 646 n += 1 + sovRunc(uint64(m.IoGid)) 647 } 648 l = len(m.CriuWorkPath) 649 if l > 0 { 650 n += 1 + l + sovRunc(uint64(l)) 651 } 652 l = len(m.CriuImagePath) 653 if l > 0 { 654 n += 1 + l + sovRunc(uint64(l)) 655 } 656 if m.XXX_unrecognized != nil { 657 n += len(m.XXX_unrecognized) 658 } 659 return n 660 } 661 662 func (m *CheckpointOptions) Size() (n int) { 663 if m == nil { 664 return 0 665 } 666 var l int 667 _ = l 668 if m.Exit { 669 n += 2 670 } 671 if m.OpenTcp { 672 n += 2 673 } 674 if m.ExternalUnixSockets { 675 n += 2 676 } 677 if m.Terminal { 678 n += 2 679 } 680 if m.FileLocks { 681 n += 2 682 } 683 if len(m.EmptyNamespaces) > 0 { 684 for _, s := range m.EmptyNamespaces { 685 l = len(s) 686 n += 1 + l + sovRunc(uint64(l)) 687 } 688 } 689 l = len(m.CgroupsMode) 690 if l > 0 { 691 n += 1 + l + sovRunc(uint64(l)) 692 } 693 l = len(m.WorkPath) 694 if l > 0 { 695 n += 1 + l + sovRunc(uint64(l)) 696 } 697 l = len(m.ImagePath) 698 if l > 0 { 699 n += 1 + l + sovRunc(uint64(l)) 700 } 701 if m.XXX_unrecognized != nil { 702 n += len(m.XXX_unrecognized) 703 } 704 return n 705 } 706 707 func (m *ProcessDetails) Size() (n int) { 708 if m == nil { 709 return 0 710 } 711 var l int 712 _ = l 713 l = len(m.ExecID) 714 if l > 0 { 715 n += 1 + l + sovRunc(uint64(l)) 716 } 717 if m.XXX_unrecognized != nil { 718 n += len(m.XXX_unrecognized) 719 } 720 return n 721 } 722 723 func sovRunc(x uint64) (n int) { 724 for { 725 n++ 726 x >>= 7 727 if x == 0 { 728 break 729 } 730 } 731 return n 732 } 733 func sozRunc(x uint64) (n int) { 734 return sovRunc(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 735 } 736 func (this *RuncOptions) String() string { 737 if this == nil { 738 return "nil" 739 } 740 s := strings.Join([]string{`&RuncOptions{`, 741 `Runtime:` + fmt.Sprintf("%v", this.Runtime) + `,`, 742 `RuntimeRoot:` + fmt.Sprintf("%v", this.RuntimeRoot) + `,`, 743 `CriuPath:` + fmt.Sprintf("%v", this.CriuPath) + `,`, 744 `SystemdCgroup:` + fmt.Sprintf("%v", this.SystemdCgroup) + `,`, 745 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 746 `}`, 747 }, "") 748 return s 749 } 750 func (this *CreateOptions) String() string { 751 if this == nil { 752 return "nil" 753 } 754 s := strings.Join([]string{`&CreateOptions{`, 755 `NoPivotRoot:` + fmt.Sprintf("%v", this.NoPivotRoot) + `,`, 756 `OpenTcp:` + fmt.Sprintf("%v", this.OpenTcp) + `,`, 757 `ExternalUnixSockets:` + fmt.Sprintf("%v", this.ExternalUnixSockets) + `,`, 758 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 759 `FileLocks:` + fmt.Sprintf("%v", this.FileLocks) + `,`, 760 `EmptyNamespaces:` + fmt.Sprintf("%v", this.EmptyNamespaces) + `,`, 761 `CgroupsMode:` + fmt.Sprintf("%v", this.CgroupsMode) + `,`, 762 `NoNewKeyring:` + fmt.Sprintf("%v", this.NoNewKeyring) + `,`, 763 `ShimCgroup:` + fmt.Sprintf("%v", this.ShimCgroup) + `,`, 764 `IoUid:` + fmt.Sprintf("%v", this.IoUid) + `,`, 765 `IoGid:` + fmt.Sprintf("%v", this.IoGid) + `,`, 766 `CriuWorkPath:` + fmt.Sprintf("%v", this.CriuWorkPath) + `,`, 767 `CriuImagePath:` + fmt.Sprintf("%v", this.CriuImagePath) + `,`, 768 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 769 `}`, 770 }, "") 771 return s 772 } 773 func (this *CheckpointOptions) String() string { 774 if this == nil { 775 return "nil" 776 } 777 s := strings.Join([]string{`&CheckpointOptions{`, 778 `Exit:` + fmt.Sprintf("%v", this.Exit) + `,`, 779 `OpenTcp:` + fmt.Sprintf("%v", this.OpenTcp) + `,`, 780 `ExternalUnixSockets:` + fmt.Sprintf("%v", this.ExternalUnixSockets) + `,`, 781 `Terminal:` + fmt.Sprintf("%v", this.Terminal) + `,`, 782 `FileLocks:` + fmt.Sprintf("%v", this.FileLocks) + `,`, 783 `EmptyNamespaces:` + fmt.Sprintf("%v", this.EmptyNamespaces) + `,`, 784 `CgroupsMode:` + fmt.Sprintf("%v", this.CgroupsMode) + `,`, 785 `WorkPath:` + fmt.Sprintf("%v", this.WorkPath) + `,`, 786 `ImagePath:` + fmt.Sprintf("%v", this.ImagePath) + `,`, 787 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 788 `}`, 789 }, "") 790 return s 791 } 792 func (this *ProcessDetails) String() string { 793 if this == nil { 794 return "nil" 795 } 796 s := strings.Join([]string{`&ProcessDetails{`, 797 `ExecID:` + fmt.Sprintf("%v", this.ExecID) + `,`, 798 `XXX_unrecognized:` + fmt.Sprintf("%v", this.XXX_unrecognized) + `,`, 799 `}`, 800 }, "") 801 return s 802 } 803 func valueToStringRunc(v interface{}) string { 804 rv := reflect.ValueOf(v) 805 if rv.IsNil() { 806 return "nil" 807 } 808 pv := reflect.Indirect(rv).Interface() 809 return fmt.Sprintf("*%v", pv) 810 } 811 func (m *RuncOptions) Unmarshal(dAtA []byte) error { 812 l := len(dAtA) 813 iNdEx := 0 814 for iNdEx < l { 815 preIndex := iNdEx 816 var wire uint64 817 for shift := uint(0); ; shift += 7 { 818 if shift >= 64 { 819 return ErrIntOverflowRunc 820 } 821 if iNdEx >= l { 822 return io.ErrUnexpectedEOF 823 } 824 b := dAtA[iNdEx] 825 iNdEx++ 826 wire |= uint64(b&0x7F) << shift 827 if b < 0x80 { 828 break 829 } 830 } 831 fieldNum := int32(wire >> 3) 832 wireType := int(wire & 0x7) 833 if wireType == 4 { 834 return fmt.Errorf("proto: RuncOptions: wiretype end group for non-group") 835 } 836 if fieldNum <= 0 { 837 return fmt.Errorf("proto: RuncOptions: illegal tag %d (wire type %d)", fieldNum, wire) 838 } 839 switch fieldNum { 840 case 1: 841 if wireType != 2 { 842 return fmt.Errorf("proto: wrong wireType = %d for field Runtime", wireType) 843 } 844 var stringLen uint64 845 for shift := uint(0); ; shift += 7 { 846 if shift >= 64 { 847 return ErrIntOverflowRunc 848 } 849 if iNdEx >= l { 850 return io.ErrUnexpectedEOF 851 } 852 b := dAtA[iNdEx] 853 iNdEx++ 854 stringLen |= uint64(b&0x7F) << shift 855 if b < 0x80 { 856 break 857 } 858 } 859 intStringLen := int(stringLen) 860 if intStringLen < 0 { 861 return ErrInvalidLengthRunc 862 } 863 postIndex := iNdEx + intStringLen 864 if postIndex < 0 { 865 return ErrInvalidLengthRunc 866 } 867 if postIndex > l { 868 return io.ErrUnexpectedEOF 869 } 870 m.Runtime = string(dAtA[iNdEx:postIndex]) 871 iNdEx = postIndex 872 case 2: 873 if wireType != 2 { 874 return fmt.Errorf("proto: wrong wireType = %d for field RuntimeRoot", wireType) 875 } 876 var stringLen uint64 877 for shift := uint(0); ; shift += 7 { 878 if shift >= 64 { 879 return ErrIntOverflowRunc 880 } 881 if iNdEx >= l { 882 return io.ErrUnexpectedEOF 883 } 884 b := dAtA[iNdEx] 885 iNdEx++ 886 stringLen |= uint64(b&0x7F) << shift 887 if b < 0x80 { 888 break 889 } 890 } 891 intStringLen := int(stringLen) 892 if intStringLen < 0 { 893 return ErrInvalidLengthRunc 894 } 895 postIndex := iNdEx + intStringLen 896 if postIndex < 0 { 897 return ErrInvalidLengthRunc 898 } 899 if postIndex > l { 900 return io.ErrUnexpectedEOF 901 } 902 m.RuntimeRoot = string(dAtA[iNdEx:postIndex]) 903 iNdEx = postIndex 904 case 3: 905 if wireType != 2 { 906 return fmt.Errorf("proto: wrong wireType = %d for field CriuPath", wireType) 907 } 908 var stringLen uint64 909 for shift := uint(0); ; shift += 7 { 910 if shift >= 64 { 911 return ErrIntOverflowRunc 912 } 913 if iNdEx >= l { 914 return io.ErrUnexpectedEOF 915 } 916 b := dAtA[iNdEx] 917 iNdEx++ 918 stringLen |= uint64(b&0x7F) << shift 919 if b < 0x80 { 920 break 921 } 922 } 923 intStringLen := int(stringLen) 924 if intStringLen < 0 { 925 return ErrInvalidLengthRunc 926 } 927 postIndex := iNdEx + intStringLen 928 if postIndex < 0 { 929 return ErrInvalidLengthRunc 930 } 931 if postIndex > l { 932 return io.ErrUnexpectedEOF 933 } 934 m.CriuPath = string(dAtA[iNdEx:postIndex]) 935 iNdEx = postIndex 936 case 4: 937 if wireType != 0 { 938 return fmt.Errorf("proto: wrong wireType = %d for field SystemdCgroup", wireType) 939 } 940 var v int 941 for shift := uint(0); ; shift += 7 { 942 if shift >= 64 { 943 return ErrIntOverflowRunc 944 } 945 if iNdEx >= l { 946 return io.ErrUnexpectedEOF 947 } 948 b := dAtA[iNdEx] 949 iNdEx++ 950 v |= int(b&0x7F) << shift 951 if b < 0x80 { 952 break 953 } 954 } 955 m.SystemdCgroup = bool(v != 0) 956 default: 957 iNdEx = preIndex 958 skippy, err := skipRunc(dAtA[iNdEx:]) 959 if err != nil { 960 return err 961 } 962 if skippy < 0 { 963 return ErrInvalidLengthRunc 964 } 965 if (iNdEx + skippy) < 0 { 966 return ErrInvalidLengthRunc 967 } 968 if (iNdEx + skippy) > l { 969 return io.ErrUnexpectedEOF 970 } 971 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 972 iNdEx += skippy 973 } 974 } 975 976 if iNdEx > l { 977 return io.ErrUnexpectedEOF 978 } 979 return nil 980 } 981 func (m *CreateOptions) Unmarshal(dAtA []byte) error { 982 l := len(dAtA) 983 iNdEx := 0 984 for iNdEx < l { 985 preIndex := iNdEx 986 var wire uint64 987 for shift := uint(0); ; shift += 7 { 988 if shift >= 64 { 989 return ErrIntOverflowRunc 990 } 991 if iNdEx >= l { 992 return io.ErrUnexpectedEOF 993 } 994 b := dAtA[iNdEx] 995 iNdEx++ 996 wire |= uint64(b&0x7F) << shift 997 if b < 0x80 { 998 break 999 } 1000 } 1001 fieldNum := int32(wire >> 3) 1002 wireType := int(wire & 0x7) 1003 if wireType == 4 { 1004 return fmt.Errorf("proto: CreateOptions: wiretype end group for non-group") 1005 } 1006 if fieldNum <= 0 { 1007 return fmt.Errorf("proto: CreateOptions: illegal tag %d (wire type %d)", fieldNum, wire) 1008 } 1009 switch fieldNum { 1010 case 1: 1011 if wireType != 0 { 1012 return fmt.Errorf("proto: wrong wireType = %d for field NoPivotRoot", wireType) 1013 } 1014 var v int 1015 for shift := uint(0); ; shift += 7 { 1016 if shift >= 64 { 1017 return ErrIntOverflowRunc 1018 } 1019 if iNdEx >= l { 1020 return io.ErrUnexpectedEOF 1021 } 1022 b := dAtA[iNdEx] 1023 iNdEx++ 1024 v |= int(b&0x7F) << shift 1025 if b < 0x80 { 1026 break 1027 } 1028 } 1029 m.NoPivotRoot = bool(v != 0) 1030 case 2: 1031 if wireType != 0 { 1032 return fmt.Errorf("proto: wrong wireType = %d for field OpenTcp", wireType) 1033 } 1034 var v int 1035 for shift := uint(0); ; shift += 7 { 1036 if shift >= 64 { 1037 return ErrIntOverflowRunc 1038 } 1039 if iNdEx >= l { 1040 return io.ErrUnexpectedEOF 1041 } 1042 b := dAtA[iNdEx] 1043 iNdEx++ 1044 v |= int(b&0x7F) << shift 1045 if b < 0x80 { 1046 break 1047 } 1048 } 1049 m.OpenTcp = bool(v != 0) 1050 case 3: 1051 if wireType != 0 { 1052 return fmt.Errorf("proto: wrong wireType = %d for field ExternalUnixSockets", wireType) 1053 } 1054 var v int 1055 for shift := uint(0); ; shift += 7 { 1056 if shift >= 64 { 1057 return ErrIntOverflowRunc 1058 } 1059 if iNdEx >= l { 1060 return io.ErrUnexpectedEOF 1061 } 1062 b := dAtA[iNdEx] 1063 iNdEx++ 1064 v |= int(b&0x7F) << shift 1065 if b < 0x80 { 1066 break 1067 } 1068 } 1069 m.ExternalUnixSockets = bool(v != 0) 1070 case 4: 1071 if wireType != 0 { 1072 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 1073 } 1074 var v int 1075 for shift := uint(0); ; shift += 7 { 1076 if shift >= 64 { 1077 return ErrIntOverflowRunc 1078 } 1079 if iNdEx >= l { 1080 return io.ErrUnexpectedEOF 1081 } 1082 b := dAtA[iNdEx] 1083 iNdEx++ 1084 v |= int(b&0x7F) << shift 1085 if b < 0x80 { 1086 break 1087 } 1088 } 1089 m.Terminal = bool(v != 0) 1090 case 5: 1091 if wireType != 0 { 1092 return fmt.Errorf("proto: wrong wireType = %d for field FileLocks", wireType) 1093 } 1094 var v int 1095 for shift := uint(0); ; shift += 7 { 1096 if shift >= 64 { 1097 return ErrIntOverflowRunc 1098 } 1099 if iNdEx >= l { 1100 return io.ErrUnexpectedEOF 1101 } 1102 b := dAtA[iNdEx] 1103 iNdEx++ 1104 v |= int(b&0x7F) << shift 1105 if b < 0x80 { 1106 break 1107 } 1108 } 1109 m.FileLocks = bool(v != 0) 1110 case 6: 1111 if wireType != 2 { 1112 return fmt.Errorf("proto: wrong wireType = %d for field EmptyNamespaces", wireType) 1113 } 1114 var stringLen uint64 1115 for shift := uint(0); ; shift += 7 { 1116 if shift >= 64 { 1117 return ErrIntOverflowRunc 1118 } 1119 if iNdEx >= l { 1120 return io.ErrUnexpectedEOF 1121 } 1122 b := dAtA[iNdEx] 1123 iNdEx++ 1124 stringLen |= uint64(b&0x7F) << shift 1125 if b < 0x80 { 1126 break 1127 } 1128 } 1129 intStringLen := int(stringLen) 1130 if intStringLen < 0 { 1131 return ErrInvalidLengthRunc 1132 } 1133 postIndex := iNdEx + intStringLen 1134 if postIndex < 0 { 1135 return ErrInvalidLengthRunc 1136 } 1137 if postIndex > l { 1138 return io.ErrUnexpectedEOF 1139 } 1140 m.EmptyNamespaces = append(m.EmptyNamespaces, string(dAtA[iNdEx:postIndex])) 1141 iNdEx = postIndex 1142 case 7: 1143 if wireType != 2 { 1144 return fmt.Errorf("proto: wrong wireType = %d for field CgroupsMode", wireType) 1145 } 1146 var stringLen uint64 1147 for shift := uint(0); ; shift += 7 { 1148 if shift >= 64 { 1149 return ErrIntOverflowRunc 1150 } 1151 if iNdEx >= l { 1152 return io.ErrUnexpectedEOF 1153 } 1154 b := dAtA[iNdEx] 1155 iNdEx++ 1156 stringLen |= uint64(b&0x7F) << shift 1157 if b < 0x80 { 1158 break 1159 } 1160 } 1161 intStringLen := int(stringLen) 1162 if intStringLen < 0 { 1163 return ErrInvalidLengthRunc 1164 } 1165 postIndex := iNdEx + intStringLen 1166 if postIndex < 0 { 1167 return ErrInvalidLengthRunc 1168 } 1169 if postIndex > l { 1170 return io.ErrUnexpectedEOF 1171 } 1172 m.CgroupsMode = string(dAtA[iNdEx:postIndex]) 1173 iNdEx = postIndex 1174 case 8: 1175 if wireType != 0 { 1176 return fmt.Errorf("proto: wrong wireType = %d for field NoNewKeyring", wireType) 1177 } 1178 var v int 1179 for shift := uint(0); ; shift += 7 { 1180 if shift >= 64 { 1181 return ErrIntOverflowRunc 1182 } 1183 if iNdEx >= l { 1184 return io.ErrUnexpectedEOF 1185 } 1186 b := dAtA[iNdEx] 1187 iNdEx++ 1188 v |= int(b&0x7F) << shift 1189 if b < 0x80 { 1190 break 1191 } 1192 } 1193 m.NoNewKeyring = bool(v != 0) 1194 case 9: 1195 if wireType != 2 { 1196 return fmt.Errorf("proto: wrong wireType = %d for field ShimCgroup", wireType) 1197 } 1198 var stringLen uint64 1199 for shift := uint(0); ; shift += 7 { 1200 if shift >= 64 { 1201 return ErrIntOverflowRunc 1202 } 1203 if iNdEx >= l { 1204 return io.ErrUnexpectedEOF 1205 } 1206 b := dAtA[iNdEx] 1207 iNdEx++ 1208 stringLen |= uint64(b&0x7F) << shift 1209 if b < 0x80 { 1210 break 1211 } 1212 } 1213 intStringLen := int(stringLen) 1214 if intStringLen < 0 { 1215 return ErrInvalidLengthRunc 1216 } 1217 postIndex := iNdEx + intStringLen 1218 if postIndex < 0 { 1219 return ErrInvalidLengthRunc 1220 } 1221 if postIndex > l { 1222 return io.ErrUnexpectedEOF 1223 } 1224 m.ShimCgroup = string(dAtA[iNdEx:postIndex]) 1225 iNdEx = postIndex 1226 case 10: 1227 if wireType != 0 { 1228 return fmt.Errorf("proto: wrong wireType = %d for field IoUid", wireType) 1229 } 1230 m.IoUid = 0 1231 for shift := uint(0); ; shift += 7 { 1232 if shift >= 64 { 1233 return ErrIntOverflowRunc 1234 } 1235 if iNdEx >= l { 1236 return io.ErrUnexpectedEOF 1237 } 1238 b := dAtA[iNdEx] 1239 iNdEx++ 1240 m.IoUid |= uint32(b&0x7F) << shift 1241 if b < 0x80 { 1242 break 1243 } 1244 } 1245 case 11: 1246 if wireType != 0 { 1247 return fmt.Errorf("proto: wrong wireType = %d for field IoGid", wireType) 1248 } 1249 m.IoGid = 0 1250 for shift := uint(0); ; shift += 7 { 1251 if shift >= 64 { 1252 return ErrIntOverflowRunc 1253 } 1254 if iNdEx >= l { 1255 return io.ErrUnexpectedEOF 1256 } 1257 b := dAtA[iNdEx] 1258 iNdEx++ 1259 m.IoGid |= uint32(b&0x7F) << shift 1260 if b < 0x80 { 1261 break 1262 } 1263 } 1264 case 12: 1265 if wireType != 2 { 1266 return fmt.Errorf("proto: wrong wireType = %d for field CriuWorkPath", wireType) 1267 } 1268 var stringLen uint64 1269 for shift := uint(0); ; shift += 7 { 1270 if shift >= 64 { 1271 return ErrIntOverflowRunc 1272 } 1273 if iNdEx >= l { 1274 return io.ErrUnexpectedEOF 1275 } 1276 b := dAtA[iNdEx] 1277 iNdEx++ 1278 stringLen |= uint64(b&0x7F) << shift 1279 if b < 0x80 { 1280 break 1281 } 1282 } 1283 intStringLen := int(stringLen) 1284 if intStringLen < 0 { 1285 return ErrInvalidLengthRunc 1286 } 1287 postIndex := iNdEx + intStringLen 1288 if postIndex < 0 { 1289 return ErrInvalidLengthRunc 1290 } 1291 if postIndex > l { 1292 return io.ErrUnexpectedEOF 1293 } 1294 m.CriuWorkPath = string(dAtA[iNdEx:postIndex]) 1295 iNdEx = postIndex 1296 case 13: 1297 if wireType != 2 { 1298 return fmt.Errorf("proto: wrong wireType = %d for field CriuImagePath", wireType) 1299 } 1300 var stringLen uint64 1301 for shift := uint(0); ; shift += 7 { 1302 if shift >= 64 { 1303 return ErrIntOverflowRunc 1304 } 1305 if iNdEx >= l { 1306 return io.ErrUnexpectedEOF 1307 } 1308 b := dAtA[iNdEx] 1309 iNdEx++ 1310 stringLen |= uint64(b&0x7F) << shift 1311 if b < 0x80 { 1312 break 1313 } 1314 } 1315 intStringLen := int(stringLen) 1316 if intStringLen < 0 { 1317 return ErrInvalidLengthRunc 1318 } 1319 postIndex := iNdEx + intStringLen 1320 if postIndex < 0 { 1321 return ErrInvalidLengthRunc 1322 } 1323 if postIndex > l { 1324 return io.ErrUnexpectedEOF 1325 } 1326 m.CriuImagePath = string(dAtA[iNdEx:postIndex]) 1327 iNdEx = postIndex 1328 default: 1329 iNdEx = preIndex 1330 skippy, err := skipRunc(dAtA[iNdEx:]) 1331 if err != nil { 1332 return err 1333 } 1334 if skippy < 0 { 1335 return ErrInvalidLengthRunc 1336 } 1337 if (iNdEx + skippy) < 0 { 1338 return ErrInvalidLengthRunc 1339 } 1340 if (iNdEx + skippy) > l { 1341 return io.ErrUnexpectedEOF 1342 } 1343 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1344 iNdEx += skippy 1345 } 1346 } 1347 1348 if iNdEx > l { 1349 return io.ErrUnexpectedEOF 1350 } 1351 return nil 1352 } 1353 func (m *CheckpointOptions) Unmarshal(dAtA []byte) error { 1354 l := len(dAtA) 1355 iNdEx := 0 1356 for iNdEx < l { 1357 preIndex := iNdEx 1358 var wire uint64 1359 for shift := uint(0); ; shift += 7 { 1360 if shift >= 64 { 1361 return ErrIntOverflowRunc 1362 } 1363 if iNdEx >= l { 1364 return io.ErrUnexpectedEOF 1365 } 1366 b := dAtA[iNdEx] 1367 iNdEx++ 1368 wire |= uint64(b&0x7F) << shift 1369 if b < 0x80 { 1370 break 1371 } 1372 } 1373 fieldNum := int32(wire >> 3) 1374 wireType := int(wire & 0x7) 1375 if wireType == 4 { 1376 return fmt.Errorf("proto: CheckpointOptions: wiretype end group for non-group") 1377 } 1378 if fieldNum <= 0 { 1379 return fmt.Errorf("proto: CheckpointOptions: illegal tag %d (wire type %d)", fieldNum, wire) 1380 } 1381 switch fieldNum { 1382 case 1: 1383 if wireType != 0 { 1384 return fmt.Errorf("proto: wrong wireType = %d for field Exit", wireType) 1385 } 1386 var v int 1387 for shift := uint(0); ; shift += 7 { 1388 if shift >= 64 { 1389 return ErrIntOverflowRunc 1390 } 1391 if iNdEx >= l { 1392 return io.ErrUnexpectedEOF 1393 } 1394 b := dAtA[iNdEx] 1395 iNdEx++ 1396 v |= int(b&0x7F) << shift 1397 if b < 0x80 { 1398 break 1399 } 1400 } 1401 m.Exit = bool(v != 0) 1402 case 2: 1403 if wireType != 0 { 1404 return fmt.Errorf("proto: wrong wireType = %d for field OpenTcp", wireType) 1405 } 1406 var v int 1407 for shift := uint(0); ; shift += 7 { 1408 if shift >= 64 { 1409 return ErrIntOverflowRunc 1410 } 1411 if iNdEx >= l { 1412 return io.ErrUnexpectedEOF 1413 } 1414 b := dAtA[iNdEx] 1415 iNdEx++ 1416 v |= int(b&0x7F) << shift 1417 if b < 0x80 { 1418 break 1419 } 1420 } 1421 m.OpenTcp = bool(v != 0) 1422 case 3: 1423 if wireType != 0 { 1424 return fmt.Errorf("proto: wrong wireType = %d for field ExternalUnixSockets", wireType) 1425 } 1426 var v int 1427 for shift := uint(0); ; shift += 7 { 1428 if shift >= 64 { 1429 return ErrIntOverflowRunc 1430 } 1431 if iNdEx >= l { 1432 return io.ErrUnexpectedEOF 1433 } 1434 b := dAtA[iNdEx] 1435 iNdEx++ 1436 v |= int(b&0x7F) << shift 1437 if b < 0x80 { 1438 break 1439 } 1440 } 1441 m.ExternalUnixSockets = bool(v != 0) 1442 case 4: 1443 if wireType != 0 { 1444 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 1445 } 1446 var v int 1447 for shift := uint(0); ; shift += 7 { 1448 if shift >= 64 { 1449 return ErrIntOverflowRunc 1450 } 1451 if iNdEx >= l { 1452 return io.ErrUnexpectedEOF 1453 } 1454 b := dAtA[iNdEx] 1455 iNdEx++ 1456 v |= int(b&0x7F) << shift 1457 if b < 0x80 { 1458 break 1459 } 1460 } 1461 m.Terminal = bool(v != 0) 1462 case 5: 1463 if wireType != 0 { 1464 return fmt.Errorf("proto: wrong wireType = %d for field FileLocks", wireType) 1465 } 1466 var v int 1467 for shift := uint(0); ; shift += 7 { 1468 if shift >= 64 { 1469 return ErrIntOverflowRunc 1470 } 1471 if iNdEx >= l { 1472 return io.ErrUnexpectedEOF 1473 } 1474 b := dAtA[iNdEx] 1475 iNdEx++ 1476 v |= int(b&0x7F) << shift 1477 if b < 0x80 { 1478 break 1479 } 1480 } 1481 m.FileLocks = bool(v != 0) 1482 case 6: 1483 if wireType != 2 { 1484 return fmt.Errorf("proto: wrong wireType = %d for field EmptyNamespaces", wireType) 1485 } 1486 var stringLen uint64 1487 for shift := uint(0); ; shift += 7 { 1488 if shift >= 64 { 1489 return ErrIntOverflowRunc 1490 } 1491 if iNdEx >= l { 1492 return io.ErrUnexpectedEOF 1493 } 1494 b := dAtA[iNdEx] 1495 iNdEx++ 1496 stringLen |= uint64(b&0x7F) << shift 1497 if b < 0x80 { 1498 break 1499 } 1500 } 1501 intStringLen := int(stringLen) 1502 if intStringLen < 0 { 1503 return ErrInvalidLengthRunc 1504 } 1505 postIndex := iNdEx + intStringLen 1506 if postIndex < 0 { 1507 return ErrInvalidLengthRunc 1508 } 1509 if postIndex > l { 1510 return io.ErrUnexpectedEOF 1511 } 1512 m.EmptyNamespaces = append(m.EmptyNamespaces, string(dAtA[iNdEx:postIndex])) 1513 iNdEx = postIndex 1514 case 7: 1515 if wireType != 2 { 1516 return fmt.Errorf("proto: wrong wireType = %d for field CgroupsMode", wireType) 1517 } 1518 var stringLen uint64 1519 for shift := uint(0); ; shift += 7 { 1520 if shift >= 64 { 1521 return ErrIntOverflowRunc 1522 } 1523 if iNdEx >= l { 1524 return io.ErrUnexpectedEOF 1525 } 1526 b := dAtA[iNdEx] 1527 iNdEx++ 1528 stringLen |= uint64(b&0x7F) << shift 1529 if b < 0x80 { 1530 break 1531 } 1532 } 1533 intStringLen := int(stringLen) 1534 if intStringLen < 0 { 1535 return ErrInvalidLengthRunc 1536 } 1537 postIndex := iNdEx + intStringLen 1538 if postIndex < 0 { 1539 return ErrInvalidLengthRunc 1540 } 1541 if postIndex > l { 1542 return io.ErrUnexpectedEOF 1543 } 1544 m.CgroupsMode = string(dAtA[iNdEx:postIndex]) 1545 iNdEx = postIndex 1546 case 8: 1547 if wireType != 2 { 1548 return fmt.Errorf("proto: wrong wireType = %d for field WorkPath", wireType) 1549 } 1550 var stringLen uint64 1551 for shift := uint(0); ; shift += 7 { 1552 if shift >= 64 { 1553 return ErrIntOverflowRunc 1554 } 1555 if iNdEx >= l { 1556 return io.ErrUnexpectedEOF 1557 } 1558 b := dAtA[iNdEx] 1559 iNdEx++ 1560 stringLen |= uint64(b&0x7F) << shift 1561 if b < 0x80 { 1562 break 1563 } 1564 } 1565 intStringLen := int(stringLen) 1566 if intStringLen < 0 { 1567 return ErrInvalidLengthRunc 1568 } 1569 postIndex := iNdEx + intStringLen 1570 if postIndex < 0 { 1571 return ErrInvalidLengthRunc 1572 } 1573 if postIndex > l { 1574 return io.ErrUnexpectedEOF 1575 } 1576 m.WorkPath = string(dAtA[iNdEx:postIndex]) 1577 iNdEx = postIndex 1578 case 9: 1579 if wireType != 2 { 1580 return fmt.Errorf("proto: wrong wireType = %d for field ImagePath", wireType) 1581 } 1582 var stringLen uint64 1583 for shift := uint(0); ; shift += 7 { 1584 if shift >= 64 { 1585 return ErrIntOverflowRunc 1586 } 1587 if iNdEx >= l { 1588 return io.ErrUnexpectedEOF 1589 } 1590 b := dAtA[iNdEx] 1591 iNdEx++ 1592 stringLen |= uint64(b&0x7F) << shift 1593 if b < 0x80 { 1594 break 1595 } 1596 } 1597 intStringLen := int(stringLen) 1598 if intStringLen < 0 { 1599 return ErrInvalidLengthRunc 1600 } 1601 postIndex := iNdEx + intStringLen 1602 if postIndex < 0 { 1603 return ErrInvalidLengthRunc 1604 } 1605 if postIndex > l { 1606 return io.ErrUnexpectedEOF 1607 } 1608 m.ImagePath = string(dAtA[iNdEx:postIndex]) 1609 iNdEx = postIndex 1610 default: 1611 iNdEx = preIndex 1612 skippy, err := skipRunc(dAtA[iNdEx:]) 1613 if err != nil { 1614 return err 1615 } 1616 if skippy < 0 { 1617 return ErrInvalidLengthRunc 1618 } 1619 if (iNdEx + skippy) < 0 { 1620 return ErrInvalidLengthRunc 1621 } 1622 if (iNdEx + skippy) > l { 1623 return io.ErrUnexpectedEOF 1624 } 1625 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1626 iNdEx += skippy 1627 } 1628 } 1629 1630 if iNdEx > l { 1631 return io.ErrUnexpectedEOF 1632 } 1633 return nil 1634 } 1635 func (m *ProcessDetails) Unmarshal(dAtA []byte) error { 1636 l := len(dAtA) 1637 iNdEx := 0 1638 for iNdEx < l { 1639 preIndex := iNdEx 1640 var wire uint64 1641 for shift := uint(0); ; shift += 7 { 1642 if shift >= 64 { 1643 return ErrIntOverflowRunc 1644 } 1645 if iNdEx >= l { 1646 return io.ErrUnexpectedEOF 1647 } 1648 b := dAtA[iNdEx] 1649 iNdEx++ 1650 wire |= uint64(b&0x7F) << shift 1651 if b < 0x80 { 1652 break 1653 } 1654 } 1655 fieldNum := int32(wire >> 3) 1656 wireType := int(wire & 0x7) 1657 if wireType == 4 { 1658 return fmt.Errorf("proto: ProcessDetails: wiretype end group for non-group") 1659 } 1660 if fieldNum <= 0 { 1661 return fmt.Errorf("proto: ProcessDetails: illegal tag %d (wire type %d)", fieldNum, wire) 1662 } 1663 switch fieldNum { 1664 case 1: 1665 if wireType != 2 { 1666 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 1667 } 1668 var stringLen uint64 1669 for shift := uint(0); ; shift += 7 { 1670 if shift >= 64 { 1671 return ErrIntOverflowRunc 1672 } 1673 if iNdEx >= l { 1674 return io.ErrUnexpectedEOF 1675 } 1676 b := dAtA[iNdEx] 1677 iNdEx++ 1678 stringLen |= uint64(b&0x7F) << shift 1679 if b < 0x80 { 1680 break 1681 } 1682 } 1683 intStringLen := int(stringLen) 1684 if intStringLen < 0 { 1685 return ErrInvalidLengthRunc 1686 } 1687 postIndex := iNdEx + intStringLen 1688 if postIndex < 0 { 1689 return ErrInvalidLengthRunc 1690 } 1691 if postIndex > l { 1692 return io.ErrUnexpectedEOF 1693 } 1694 m.ExecID = string(dAtA[iNdEx:postIndex]) 1695 iNdEx = postIndex 1696 default: 1697 iNdEx = preIndex 1698 skippy, err := skipRunc(dAtA[iNdEx:]) 1699 if err != nil { 1700 return err 1701 } 1702 if skippy < 0 { 1703 return ErrInvalidLengthRunc 1704 } 1705 if (iNdEx + skippy) < 0 { 1706 return ErrInvalidLengthRunc 1707 } 1708 if (iNdEx + skippy) > l { 1709 return io.ErrUnexpectedEOF 1710 } 1711 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1712 iNdEx += skippy 1713 } 1714 } 1715 1716 if iNdEx > l { 1717 return io.ErrUnexpectedEOF 1718 } 1719 return nil 1720 } 1721 func skipRunc(dAtA []byte) (n int, err error) { 1722 l := len(dAtA) 1723 iNdEx := 0 1724 for iNdEx < l { 1725 var wire uint64 1726 for shift := uint(0); ; shift += 7 { 1727 if shift >= 64 { 1728 return 0, ErrIntOverflowRunc 1729 } 1730 if iNdEx >= l { 1731 return 0, io.ErrUnexpectedEOF 1732 } 1733 b := dAtA[iNdEx] 1734 iNdEx++ 1735 wire |= (uint64(b) & 0x7F) << shift 1736 if b < 0x80 { 1737 break 1738 } 1739 } 1740 wireType := int(wire & 0x7) 1741 switch wireType { 1742 case 0: 1743 for shift := uint(0); ; shift += 7 { 1744 if shift >= 64 { 1745 return 0, ErrIntOverflowRunc 1746 } 1747 if iNdEx >= l { 1748 return 0, io.ErrUnexpectedEOF 1749 } 1750 iNdEx++ 1751 if dAtA[iNdEx-1] < 0x80 { 1752 break 1753 } 1754 } 1755 return iNdEx, nil 1756 case 1: 1757 iNdEx += 8 1758 return iNdEx, nil 1759 case 2: 1760 var length int 1761 for shift := uint(0); ; shift += 7 { 1762 if shift >= 64 { 1763 return 0, ErrIntOverflowRunc 1764 } 1765 if iNdEx >= l { 1766 return 0, io.ErrUnexpectedEOF 1767 } 1768 b := dAtA[iNdEx] 1769 iNdEx++ 1770 length |= (int(b) & 0x7F) << shift 1771 if b < 0x80 { 1772 break 1773 } 1774 } 1775 if length < 0 { 1776 return 0, ErrInvalidLengthRunc 1777 } 1778 iNdEx += length 1779 if iNdEx < 0 { 1780 return 0, ErrInvalidLengthRunc 1781 } 1782 return iNdEx, nil 1783 case 3: 1784 for { 1785 var innerWire uint64 1786 var start int = iNdEx 1787 for shift := uint(0); ; shift += 7 { 1788 if shift >= 64 { 1789 return 0, ErrIntOverflowRunc 1790 } 1791 if iNdEx >= l { 1792 return 0, io.ErrUnexpectedEOF 1793 } 1794 b := dAtA[iNdEx] 1795 iNdEx++ 1796 innerWire |= (uint64(b) & 0x7F) << shift 1797 if b < 0x80 { 1798 break 1799 } 1800 } 1801 innerWireType := int(innerWire & 0x7) 1802 if innerWireType == 4 { 1803 break 1804 } 1805 next, err := skipRunc(dAtA[start:]) 1806 if err != nil { 1807 return 0, err 1808 } 1809 iNdEx = start + next 1810 if iNdEx < 0 { 1811 return 0, ErrInvalidLengthRunc 1812 } 1813 } 1814 return iNdEx, nil 1815 case 4: 1816 return iNdEx, nil 1817 case 5: 1818 iNdEx += 4 1819 return iNdEx, nil 1820 default: 1821 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1822 } 1823 } 1824 panic("unreachable") 1825 } 1826 1827 var ( 1828 ErrInvalidLengthRunc = fmt.Errorf("proto: negative length found during unmarshaling") 1829 ErrIntOverflowRunc = fmt.Errorf("proto: integer overflow") 1830 )