github.com/containerd/Containerd@v1.4.13/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) || (iNdEx+skippy) < 0 { 982 return ErrInvalidLengthRunc 983 } 984 if (iNdEx + skippy) > l { 985 return io.ErrUnexpectedEOF 986 } 987 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 988 iNdEx += skippy 989 } 990 } 991 992 if iNdEx > l { 993 return io.ErrUnexpectedEOF 994 } 995 return nil 996 } 997 func (m *CreateOptions) Unmarshal(dAtA []byte) error { 998 l := len(dAtA) 999 iNdEx := 0 1000 for iNdEx < l { 1001 preIndex := iNdEx 1002 var wire uint64 1003 for shift := uint(0); ; shift += 7 { 1004 if shift >= 64 { 1005 return ErrIntOverflowRunc 1006 } 1007 if iNdEx >= l { 1008 return io.ErrUnexpectedEOF 1009 } 1010 b := dAtA[iNdEx] 1011 iNdEx++ 1012 wire |= uint64(b&0x7F) << shift 1013 if b < 0x80 { 1014 break 1015 } 1016 } 1017 fieldNum := int32(wire >> 3) 1018 wireType := int(wire & 0x7) 1019 if wireType == 4 { 1020 return fmt.Errorf("proto: CreateOptions: wiretype end group for non-group") 1021 } 1022 if fieldNum <= 0 { 1023 return fmt.Errorf("proto: CreateOptions: illegal tag %d (wire type %d)", fieldNum, wire) 1024 } 1025 switch fieldNum { 1026 case 1: 1027 if wireType != 0 { 1028 return fmt.Errorf("proto: wrong wireType = %d for field NoPivotRoot", wireType) 1029 } 1030 var v int 1031 for shift := uint(0); ; shift += 7 { 1032 if shift >= 64 { 1033 return ErrIntOverflowRunc 1034 } 1035 if iNdEx >= l { 1036 return io.ErrUnexpectedEOF 1037 } 1038 b := dAtA[iNdEx] 1039 iNdEx++ 1040 v |= int(b&0x7F) << shift 1041 if b < 0x80 { 1042 break 1043 } 1044 } 1045 m.NoPivotRoot = bool(v != 0) 1046 case 2: 1047 if wireType != 0 { 1048 return fmt.Errorf("proto: wrong wireType = %d for field OpenTcp", wireType) 1049 } 1050 var v int 1051 for shift := uint(0); ; shift += 7 { 1052 if shift >= 64 { 1053 return ErrIntOverflowRunc 1054 } 1055 if iNdEx >= l { 1056 return io.ErrUnexpectedEOF 1057 } 1058 b := dAtA[iNdEx] 1059 iNdEx++ 1060 v |= int(b&0x7F) << shift 1061 if b < 0x80 { 1062 break 1063 } 1064 } 1065 m.OpenTcp = bool(v != 0) 1066 case 3: 1067 if wireType != 0 { 1068 return fmt.Errorf("proto: wrong wireType = %d for field ExternalUnixSockets", wireType) 1069 } 1070 var v int 1071 for shift := uint(0); ; shift += 7 { 1072 if shift >= 64 { 1073 return ErrIntOverflowRunc 1074 } 1075 if iNdEx >= l { 1076 return io.ErrUnexpectedEOF 1077 } 1078 b := dAtA[iNdEx] 1079 iNdEx++ 1080 v |= int(b&0x7F) << shift 1081 if b < 0x80 { 1082 break 1083 } 1084 } 1085 m.ExternalUnixSockets = bool(v != 0) 1086 case 4: 1087 if wireType != 0 { 1088 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 1089 } 1090 var v int 1091 for shift := uint(0); ; shift += 7 { 1092 if shift >= 64 { 1093 return ErrIntOverflowRunc 1094 } 1095 if iNdEx >= l { 1096 return io.ErrUnexpectedEOF 1097 } 1098 b := dAtA[iNdEx] 1099 iNdEx++ 1100 v |= int(b&0x7F) << shift 1101 if b < 0x80 { 1102 break 1103 } 1104 } 1105 m.Terminal = bool(v != 0) 1106 case 5: 1107 if wireType != 0 { 1108 return fmt.Errorf("proto: wrong wireType = %d for field FileLocks", wireType) 1109 } 1110 var v int 1111 for shift := uint(0); ; shift += 7 { 1112 if shift >= 64 { 1113 return ErrIntOverflowRunc 1114 } 1115 if iNdEx >= l { 1116 return io.ErrUnexpectedEOF 1117 } 1118 b := dAtA[iNdEx] 1119 iNdEx++ 1120 v |= int(b&0x7F) << shift 1121 if b < 0x80 { 1122 break 1123 } 1124 } 1125 m.FileLocks = bool(v != 0) 1126 case 6: 1127 if wireType != 2 { 1128 return fmt.Errorf("proto: wrong wireType = %d for field EmptyNamespaces", wireType) 1129 } 1130 var stringLen uint64 1131 for shift := uint(0); ; shift += 7 { 1132 if shift >= 64 { 1133 return ErrIntOverflowRunc 1134 } 1135 if iNdEx >= l { 1136 return io.ErrUnexpectedEOF 1137 } 1138 b := dAtA[iNdEx] 1139 iNdEx++ 1140 stringLen |= uint64(b&0x7F) << shift 1141 if b < 0x80 { 1142 break 1143 } 1144 } 1145 intStringLen := int(stringLen) 1146 if intStringLen < 0 { 1147 return ErrInvalidLengthRunc 1148 } 1149 postIndex := iNdEx + intStringLen 1150 if postIndex < 0 { 1151 return ErrInvalidLengthRunc 1152 } 1153 if postIndex > l { 1154 return io.ErrUnexpectedEOF 1155 } 1156 m.EmptyNamespaces = append(m.EmptyNamespaces, string(dAtA[iNdEx:postIndex])) 1157 iNdEx = postIndex 1158 case 7: 1159 if wireType != 2 { 1160 return fmt.Errorf("proto: wrong wireType = %d for field CgroupsMode", wireType) 1161 } 1162 var stringLen uint64 1163 for shift := uint(0); ; shift += 7 { 1164 if shift >= 64 { 1165 return ErrIntOverflowRunc 1166 } 1167 if iNdEx >= l { 1168 return io.ErrUnexpectedEOF 1169 } 1170 b := dAtA[iNdEx] 1171 iNdEx++ 1172 stringLen |= uint64(b&0x7F) << shift 1173 if b < 0x80 { 1174 break 1175 } 1176 } 1177 intStringLen := int(stringLen) 1178 if intStringLen < 0 { 1179 return ErrInvalidLengthRunc 1180 } 1181 postIndex := iNdEx + intStringLen 1182 if postIndex < 0 { 1183 return ErrInvalidLengthRunc 1184 } 1185 if postIndex > l { 1186 return io.ErrUnexpectedEOF 1187 } 1188 m.CgroupsMode = string(dAtA[iNdEx:postIndex]) 1189 iNdEx = postIndex 1190 case 8: 1191 if wireType != 0 { 1192 return fmt.Errorf("proto: wrong wireType = %d for field NoNewKeyring", wireType) 1193 } 1194 var v int 1195 for shift := uint(0); ; shift += 7 { 1196 if shift >= 64 { 1197 return ErrIntOverflowRunc 1198 } 1199 if iNdEx >= l { 1200 return io.ErrUnexpectedEOF 1201 } 1202 b := dAtA[iNdEx] 1203 iNdEx++ 1204 v |= int(b&0x7F) << shift 1205 if b < 0x80 { 1206 break 1207 } 1208 } 1209 m.NoNewKeyring = bool(v != 0) 1210 case 9: 1211 if wireType != 2 { 1212 return fmt.Errorf("proto: wrong wireType = %d for field ShimCgroup", wireType) 1213 } 1214 var stringLen uint64 1215 for shift := uint(0); ; shift += 7 { 1216 if shift >= 64 { 1217 return ErrIntOverflowRunc 1218 } 1219 if iNdEx >= l { 1220 return io.ErrUnexpectedEOF 1221 } 1222 b := dAtA[iNdEx] 1223 iNdEx++ 1224 stringLen |= uint64(b&0x7F) << shift 1225 if b < 0x80 { 1226 break 1227 } 1228 } 1229 intStringLen := int(stringLen) 1230 if intStringLen < 0 { 1231 return ErrInvalidLengthRunc 1232 } 1233 postIndex := iNdEx + intStringLen 1234 if postIndex < 0 { 1235 return ErrInvalidLengthRunc 1236 } 1237 if postIndex > l { 1238 return io.ErrUnexpectedEOF 1239 } 1240 m.ShimCgroup = string(dAtA[iNdEx:postIndex]) 1241 iNdEx = postIndex 1242 case 10: 1243 if wireType != 0 { 1244 return fmt.Errorf("proto: wrong wireType = %d for field IoUid", wireType) 1245 } 1246 m.IoUid = 0 1247 for shift := uint(0); ; shift += 7 { 1248 if shift >= 64 { 1249 return ErrIntOverflowRunc 1250 } 1251 if iNdEx >= l { 1252 return io.ErrUnexpectedEOF 1253 } 1254 b := dAtA[iNdEx] 1255 iNdEx++ 1256 m.IoUid |= uint32(b&0x7F) << shift 1257 if b < 0x80 { 1258 break 1259 } 1260 } 1261 case 11: 1262 if wireType != 0 { 1263 return fmt.Errorf("proto: wrong wireType = %d for field IoGid", wireType) 1264 } 1265 m.IoGid = 0 1266 for shift := uint(0); ; shift += 7 { 1267 if shift >= 64 { 1268 return ErrIntOverflowRunc 1269 } 1270 if iNdEx >= l { 1271 return io.ErrUnexpectedEOF 1272 } 1273 b := dAtA[iNdEx] 1274 iNdEx++ 1275 m.IoGid |= uint32(b&0x7F) << shift 1276 if b < 0x80 { 1277 break 1278 } 1279 } 1280 case 12: 1281 if wireType != 2 { 1282 return fmt.Errorf("proto: wrong wireType = %d for field CriuWorkPath", wireType) 1283 } 1284 var stringLen uint64 1285 for shift := uint(0); ; shift += 7 { 1286 if shift >= 64 { 1287 return ErrIntOverflowRunc 1288 } 1289 if iNdEx >= l { 1290 return io.ErrUnexpectedEOF 1291 } 1292 b := dAtA[iNdEx] 1293 iNdEx++ 1294 stringLen |= uint64(b&0x7F) << shift 1295 if b < 0x80 { 1296 break 1297 } 1298 } 1299 intStringLen := int(stringLen) 1300 if intStringLen < 0 { 1301 return ErrInvalidLengthRunc 1302 } 1303 postIndex := iNdEx + intStringLen 1304 if postIndex < 0 { 1305 return ErrInvalidLengthRunc 1306 } 1307 if postIndex > l { 1308 return io.ErrUnexpectedEOF 1309 } 1310 m.CriuWorkPath = string(dAtA[iNdEx:postIndex]) 1311 iNdEx = postIndex 1312 case 13: 1313 if wireType != 2 { 1314 return fmt.Errorf("proto: wrong wireType = %d for field CriuImagePath", wireType) 1315 } 1316 var stringLen uint64 1317 for shift := uint(0); ; shift += 7 { 1318 if shift >= 64 { 1319 return ErrIntOverflowRunc 1320 } 1321 if iNdEx >= l { 1322 return io.ErrUnexpectedEOF 1323 } 1324 b := dAtA[iNdEx] 1325 iNdEx++ 1326 stringLen |= uint64(b&0x7F) << shift 1327 if b < 0x80 { 1328 break 1329 } 1330 } 1331 intStringLen := int(stringLen) 1332 if intStringLen < 0 { 1333 return ErrInvalidLengthRunc 1334 } 1335 postIndex := iNdEx + intStringLen 1336 if postIndex < 0 { 1337 return ErrInvalidLengthRunc 1338 } 1339 if postIndex > l { 1340 return io.ErrUnexpectedEOF 1341 } 1342 m.CriuImagePath = string(dAtA[iNdEx:postIndex]) 1343 iNdEx = postIndex 1344 default: 1345 iNdEx = preIndex 1346 skippy, err := skipRunc(dAtA[iNdEx:]) 1347 if err != nil { 1348 return err 1349 } 1350 if (skippy < 0) || (iNdEx+skippy) < 0 { 1351 return ErrInvalidLengthRunc 1352 } 1353 if (iNdEx + skippy) > l { 1354 return io.ErrUnexpectedEOF 1355 } 1356 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1357 iNdEx += skippy 1358 } 1359 } 1360 1361 if iNdEx > l { 1362 return io.ErrUnexpectedEOF 1363 } 1364 return nil 1365 } 1366 func (m *CheckpointOptions) Unmarshal(dAtA []byte) error { 1367 l := len(dAtA) 1368 iNdEx := 0 1369 for iNdEx < l { 1370 preIndex := iNdEx 1371 var wire uint64 1372 for shift := uint(0); ; shift += 7 { 1373 if shift >= 64 { 1374 return ErrIntOverflowRunc 1375 } 1376 if iNdEx >= l { 1377 return io.ErrUnexpectedEOF 1378 } 1379 b := dAtA[iNdEx] 1380 iNdEx++ 1381 wire |= uint64(b&0x7F) << shift 1382 if b < 0x80 { 1383 break 1384 } 1385 } 1386 fieldNum := int32(wire >> 3) 1387 wireType := int(wire & 0x7) 1388 if wireType == 4 { 1389 return fmt.Errorf("proto: CheckpointOptions: wiretype end group for non-group") 1390 } 1391 if fieldNum <= 0 { 1392 return fmt.Errorf("proto: CheckpointOptions: illegal tag %d (wire type %d)", fieldNum, wire) 1393 } 1394 switch fieldNum { 1395 case 1: 1396 if wireType != 0 { 1397 return fmt.Errorf("proto: wrong wireType = %d for field Exit", wireType) 1398 } 1399 var v int 1400 for shift := uint(0); ; shift += 7 { 1401 if shift >= 64 { 1402 return ErrIntOverflowRunc 1403 } 1404 if iNdEx >= l { 1405 return io.ErrUnexpectedEOF 1406 } 1407 b := dAtA[iNdEx] 1408 iNdEx++ 1409 v |= int(b&0x7F) << shift 1410 if b < 0x80 { 1411 break 1412 } 1413 } 1414 m.Exit = bool(v != 0) 1415 case 2: 1416 if wireType != 0 { 1417 return fmt.Errorf("proto: wrong wireType = %d for field OpenTcp", wireType) 1418 } 1419 var v int 1420 for shift := uint(0); ; shift += 7 { 1421 if shift >= 64 { 1422 return ErrIntOverflowRunc 1423 } 1424 if iNdEx >= l { 1425 return io.ErrUnexpectedEOF 1426 } 1427 b := dAtA[iNdEx] 1428 iNdEx++ 1429 v |= int(b&0x7F) << shift 1430 if b < 0x80 { 1431 break 1432 } 1433 } 1434 m.OpenTcp = bool(v != 0) 1435 case 3: 1436 if wireType != 0 { 1437 return fmt.Errorf("proto: wrong wireType = %d for field ExternalUnixSockets", wireType) 1438 } 1439 var v int 1440 for shift := uint(0); ; shift += 7 { 1441 if shift >= 64 { 1442 return ErrIntOverflowRunc 1443 } 1444 if iNdEx >= l { 1445 return io.ErrUnexpectedEOF 1446 } 1447 b := dAtA[iNdEx] 1448 iNdEx++ 1449 v |= int(b&0x7F) << shift 1450 if b < 0x80 { 1451 break 1452 } 1453 } 1454 m.ExternalUnixSockets = bool(v != 0) 1455 case 4: 1456 if wireType != 0 { 1457 return fmt.Errorf("proto: wrong wireType = %d for field Terminal", wireType) 1458 } 1459 var v int 1460 for shift := uint(0); ; shift += 7 { 1461 if shift >= 64 { 1462 return ErrIntOverflowRunc 1463 } 1464 if iNdEx >= l { 1465 return io.ErrUnexpectedEOF 1466 } 1467 b := dAtA[iNdEx] 1468 iNdEx++ 1469 v |= int(b&0x7F) << shift 1470 if b < 0x80 { 1471 break 1472 } 1473 } 1474 m.Terminal = bool(v != 0) 1475 case 5: 1476 if wireType != 0 { 1477 return fmt.Errorf("proto: wrong wireType = %d for field FileLocks", wireType) 1478 } 1479 var v int 1480 for shift := uint(0); ; shift += 7 { 1481 if shift >= 64 { 1482 return ErrIntOverflowRunc 1483 } 1484 if iNdEx >= l { 1485 return io.ErrUnexpectedEOF 1486 } 1487 b := dAtA[iNdEx] 1488 iNdEx++ 1489 v |= int(b&0x7F) << shift 1490 if b < 0x80 { 1491 break 1492 } 1493 } 1494 m.FileLocks = bool(v != 0) 1495 case 6: 1496 if wireType != 2 { 1497 return fmt.Errorf("proto: wrong wireType = %d for field EmptyNamespaces", wireType) 1498 } 1499 var stringLen uint64 1500 for shift := uint(0); ; shift += 7 { 1501 if shift >= 64 { 1502 return ErrIntOverflowRunc 1503 } 1504 if iNdEx >= l { 1505 return io.ErrUnexpectedEOF 1506 } 1507 b := dAtA[iNdEx] 1508 iNdEx++ 1509 stringLen |= uint64(b&0x7F) << shift 1510 if b < 0x80 { 1511 break 1512 } 1513 } 1514 intStringLen := int(stringLen) 1515 if intStringLen < 0 { 1516 return ErrInvalidLengthRunc 1517 } 1518 postIndex := iNdEx + intStringLen 1519 if postIndex < 0 { 1520 return ErrInvalidLengthRunc 1521 } 1522 if postIndex > l { 1523 return io.ErrUnexpectedEOF 1524 } 1525 m.EmptyNamespaces = append(m.EmptyNamespaces, string(dAtA[iNdEx:postIndex])) 1526 iNdEx = postIndex 1527 case 7: 1528 if wireType != 2 { 1529 return fmt.Errorf("proto: wrong wireType = %d for field CgroupsMode", wireType) 1530 } 1531 var stringLen uint64 1532 for shift := uint(0); ; shift += 7 { 1533 if shift >= 64 { 1534 return ErrIntOverflowRunc 1535 } 1536 if iNdEx >= l { 1537 return io.ErrUnexpectedEOF 1538 } 1539 b := dAtA[iNdEx] 1540 iNdEx++ 1541 stringLen |= uint64(b&0x7F) << shift 1542 if b < 0x80 { 1543 break 1544 } 1545 } 1546 intStringLen := int(stringLen) 1547 if intStringLen < 0 { 1548 return ErrInvalidLengthRunc 1549 } 1550 postIndex := iNdEx + intStringLen 1551 if postIndex < 0 { 1552 return ErrInvalidLengthRunc 1553 } 1554 if postIndex > l { 1555 return io.ErrUnexpectedEOF 1556 } 1557 m.CgroupsMode = string(dAtA[iNdEx:postIndex]) 1558 iNdEx = postIndex 1559 case 8: 1560 if wireType != 2 { 1561 return fmt.Errorf("proto: wrong wireType = %d for field WorkPath", wireType) 1562 } 1563 var stringLen uint64 1564 for shift := uint(0); ; shift += 7 { 1565 if shift >= 64 { 1566 return ErrIntOverflowRunc 1567 } 1568 if iNdEx >= l { 1569 return io.ErrUnexpectedEOF 1570 } 1571 b := dAtA[iNdEx] 1572 iNdEx++ 1573 stringLen |= uint64(b&0x7F) << shift 1574 if b < 0x80 { 1575 break 1576 } 1577 } 1578 intStringLen := int(stringLen) 1579 if intStringLen < 0 { 1580 return ErrInvalidLengthRunc 1581 } 1582 postIndex := iNdEx + intStringLen 1583 if postIndex < 0 { 1584 return ErrInvalidLengthRunc 1585 } 1586 if postIndex > l { 1587 return io.ErrUnexpectedEOF 1588 } 1589 m.WorkPath = string(dAtA[iNdEx:postIndex]) 1590 iNdEx = postIndex 1591 case 9: 1592 if wireType != 2 { 1593 return fmt.Errorf("proto: wrong wireType = %d for field ImagePath", wireType) 1594 } 1595 var stringLen uint64 1596 for shift := uint(0); ; shift += 7 { 1597 if shift >= 64 { 1598 return ErrIntOverflowRunc 1599 } 1600 if iNdEx >= l { 1601 return io.ErrUnexpectedEOF 1602 } 1603 b := dAtA[iNdEx] 1604 iNdEx++ 1605 stringLen |= uint64(b&0x7F) << shift 1606 if b < 0x80 { 1607 break 1608 } 1609 } 1610 intStringLen := int(stringLen) 1611 if intStringLen < 0 { 1612 return ErrInvalidLengthRunc 1613 } 1614 postIndex := iNdEx + intStringLen 1615 if postIndex < 0 { 1616 return ErrInvalidLengthRunc 1617 } 1618 if postIndex > l { 1619 return io.ErrUnexpectedEOF 1620 } 1621 m.ImagePath = string(dAtA[iNdEx:postIndex]) 1622 iNdEx = postIndex 1623 default: 1624 iNdEx = preIndex 1625 skippy, err := skipRunc(dAtA[iNdEx:]) 1626 if err != nil { 1627 return err 1628 } 1629 if (skippy < 0) || (iNdEx+skippy) < 0 { 1630 return ErrInvalidLengthRunc 1631 } 1632 if (iNdEx + skippy) > l { 1633 return io.ErrUnexpectedEOF 1634 } 1635 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1636 iNdEx += skippy 1637 } 1638 } 1639 1640 if iNdEx > l { 1641 return io.ErrUnexpectedEOF 1642 } 1643 return nil 1644 } 1645 func (m *ProcessDetails) Unmarshal(dAtA []byte) error { 1646 l := len(dAtA) 1647 iNdEx := 0 1648 for iNdEx < l { 1649 preIndex := iNdEx 1650 var wire uint64 1651 for shift := uint(0); ; shift += 7 { 1652 if shift >= 64 { 1653 return ErrIntOverflowRunc 1654 } 1655 if iNdEx >= l { 1656 return io.ErrUnexpectedEOF 1657 } 1658 b := dAtA[iNdEx] 1659 iNdEx++ 1660 wire |= uint64(b&0x7F) << shift 1661 if b < 0x80 { 1662 break 1663 } 1664 } 1665 fieldNum := int32(wire >> 3) 1666 wireType := int(wire & 0x7) 1667 if wireType == 4 { 1668 return fmt.Errorf("proto: ProcessDetails: wiretype end group for non-group") 1669 } 1670 if fieldNum <= 0 { 1671 return fmt.Errorf("proto: ProcessDetails: illegal tag %d (wire type %d)", fieldNum, wire) 1672 } 1673 switch fieldNum { 1674 case 1: 1675 if wireType != 2 { 1676 return fmt.Errorf("proto: wrong wireType = %d for field ExecID", wireType) 1677 } 1678 var stringLen uint64 1679 for shift := uint(0); ; shift += 7 { 1680 if shift >= 64 { 1681 return ErrIntOverflowRunc 1682 } 1683 if iNdEx >= l { 1684 return io.ErrUnexpectedEOF 1685 } 1686 b := dAtA[iNdEx] 1687 iNdEx++ 1688 stringLen |= uint64(b&0x7F) << shift 1689 if b < 0x80 { 1690 break 1691 } 1692 } 1693 intStringLen := int(stringLen) 1694 if intStringLen < 0 { 1695 return ErrInvalidLengthRunc 1696 } 1697 postIndex := iNdEx + intStringLen 1698 if postIndex < 0 { 1699 return ErrInvalidLengthRunc 1700 } 1701 if postIndex > l { 1702 return io.ErrUnexpectedEOF 1703 } 1704 m.ExecID = string(dAtA[iNdEx:postIndex]) 1705 iNdEx = postIndex 1706 default: 1707 iNdEx = preIndex 1708 skippy, err := skipRunc(dAtA[iNdEx:]) 1709 if err != nil { 1710 return err 1711 } 1712 if (skippy < 0) || (iNdEx+skippy) < 0 { 1713 return ErrInvalidLengthRunc 1714 } 1715 if (iNdEx + skippy) > l { 1716 return io.ErrUnexpectedEOF 1717 } 1718 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1719 iNdEx += skippy 1720 } 1721 } 1722 1723 if iNdEx > l { 1724 return io.ErrUnexpectedEOF 1725 } 1726 return nil 1727 } 1728 func skipRunc(dAtA []byte) (n int, err error) { 1729 l := len(dAtA) 1730 iNdEx := 0 1731 depth := 0 1732 for iNdEx < l { 1733 var wire uint64 1734 for shift := uint(0); ; shift += 7 { 1735 if shift >= 64 { 1736 return 0, ErrIntOverflowRunc 1737 } 1738 if iNdEx >= l { 1739 return 0, io.ErrUnexpectedEOF 1740 } 1741 b := dAtA[iNdEx] 1742 iNdEx++ 1743 wire |= (uint64(b) & 0x7F) << shift 1744 if b < 0x80 { 1745 break 1746 } 1747 } 1748 wireType := int(wire & 0x7) 1749 switch wireType { 1750 case 0: 1751 for shift := uint(0); ; shift += 7 { 1752 if shift >= 64 { 1753 return 0, ErrIntOverflowRunc 1754 } 1755 if iNdEx >= l { 1756 return 0, io.ErrUnexpectedEOF 1757 } 1758 iNdEx++ 1759 if dAtA[iNdEx-1] < 0x80 { 1760 break 1761 } 1762 } 1763 case 1: 1764 iNdEx += 8 1765 case 2: 1766 var length int 1767 for shift := uint(0); ; shift += 7 { 1768 if shift >= 64 { 1769 return 0, ErrIntOverflowRunc 1770 } 1771 if iNdEx >= l { 1772 return 0, io.ErrUnexpectedEOF 1773 } 1774 b := dAtA[iNdEx] 1775 iNdEx++ 1776 length |= (int(b) & 0x7F) << shift 1777 if b < 0x80 { 1778 break 1779 } 1780 } 1781 if length < 0 { 1782 return 0, ErrInvalidLengthRunc 1783 } 1784 iNdEx += length 1785 case 3: 1786 depth++ 1787 case 4: 1788 if depth == 0 { 1789 return 0, ErrUnexpectedEndOfGroupRunc 1790 } 1791 depth-- 1792 case 5: 1793 iNdEx += 4 1794 default: 1795 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 1796 } 1797 if iNdEx < 0 { 1798 return 0, ErrInvalidLengthRunc 1799 } 1800 if depth == 0 { 1801 return iNdEx, nil 1802 } 1803 } 1804 return 0, io.ErrUnexpectedEOF 1805 } 1806 1807 var ( 1808 ErrInvalidLengthRunc = fmt.Errorf("proto: negative length found during unmarshaling") 1809 ErrIntOverflowRunc = fmt.Errorf("proto: integer overflow") 1810 ErrUnexpectedEndOfGroupRunc = fmt.Errorf("proto: unexpected end of group") 1811 )