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