Debian Codegraph @

crit/images/sk-unix/sk-unix.pb.go

raw symbols SCIP
1 // SPDX-License-Identifier: MIT
2
3 // Code generated by protoc-gen-go. DO NOT EDIT.
4 // versions:
5 // protoc-gen-go v1.30.0
6 // protoc v4.23.4
7 // source: sk-unix.proto
8
9 package sk_unix
10
11 import (
12 fown "github.com/checkpoint-restore/go-criu/v7/crit/images/fown"
13 _ "github.com/checkpoint-restore/go-criu/v7/crit/images/opts"
14 sk_opts "github.com/checkpoint-restore/go-criu/v7/crit/images/sk-opts"
15 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
16 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
17 reflect "reflect"
18 sync "sync"
19 )
20
21 const (
22 // Verify that this generated code is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
24 // Verify that runtime/protoimpl is sufficiently up-to-date.
25 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
26 )
27
28 type FilePermsEntry struct {
29 state protoimpl.MessageState
30 sizeCache protoimpl.SizeCache
31 unknownFields protoimpl.UnknownFields
32
33 Mode *uint32 `protobuf:"varint,1,req,name=mode" json:"mode,omitempty"`
34 Uid *uint32 `protobuf:"varint,2,req,name=uid" json:"uid,omitempty"`
35 Gid *uint32 `protobuf:"varint,3,req,name=gid" json:"gid,omitempty"`
36 }
37
38 func (x *FilePermsEntry) Reset() {
39 *x = FilePermsEntry{}
40 if protoimpl.UnsafeEnabled {
41 mi := &file_sk_unix_proto_msgTypes[0]
42 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
43 ms.StoreMessageInfo(mi)
44 }
45 }
46
47 func (x *FilePermsEntry) String() string {
48 return protoimpl.X.MessageStringOf(x)
49 }
50
51 func (*FilePermsEntry) ProtoMessage() {}
52
53 func (x *FilePermsEntry) ProtoReflect() protoreflect.Message {
54 mi := &file_sk_unix_proto_msgTypes[0]
55 if protoimpl.UnsafeEnabled && x != nil {
56 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
57 if ms.LoadMessageInfo() == nil {
58 ms.StoreMessageInfo(mi)
59 }
60 return ms
61 }
62 return mi.MessageOf(x)
63 }
64
65 // Deprecated: Use FilePermsEntry.ProtoReflect.Descriptor instead.
66 func (*FilePermsEntry) Descriptor() ([]byte, []int) {
67 return file_sk_unix_proto_rawDescGZIP(), []int{0}
68 }
69
70 func (x *FilePermsEntry) GetMode() uint32 {
71 if x != nil && x.Mode != nil {
72 return *x.Mode
73 }
74 return 0
75 }
76
77 func (x *FilePermsEntry) GetUid() uint32 {
78 if x != nil && x.Uid != nil {
79 return *x.Uid
80 }
81 return 0
82 }
83
84 func (x *FilePermsEntry) GetGid() uint32 {
85 if x != nil && x.Gid != nil {
86 return *x.Gid
87 }
88 return 0
89 }
90
91 type UnixSkEntry struct {
92 state protoimpl.MessageState
93 sizeCache protoimpl.SizeCache
94 unknownFields protoimpl.UnknownFields
95
96 // Few words about why we need both -- id and ino.
97 //
98 // The former one is used to link file descriptor from
99 // fdinfo image with the unix_sk_entry that should be
100 // opened under it.
101 //
102 // The latter one ties together unix peers -- the peer
103 // member on this structure is the ino one of its peer
104 // and simetimes vise-versa.
105 Id *uint32 `protobuf:"varint,1,req,name=id" json:"id,omitempty"`
106 Ino *uint32 `protobuf:"varint,2,req,name=ino" json:"ino,omitempty"`
107 Type *uint32 `protobuf:"varint,3,req,name=type" json:"type,omitempty"`
108 State *uint32 `protobuf:"varint,4,req,name=state" json:"state,omitempty"`
109 Flags *uint32 `protobuf:"varint,5,req,name=flags" json:"flags,omitempty"`
110 Uflags *uint32 `protobuf:"varint,6,req,name=uflags" json:"uflags,omitempty"`
111 Backlog *uint32 `protobuf:"varint,7,req,name=backlog" json:"backlog,omitempty"`
112 Peer *uint32 `protobuf:"varint,8,req,name=peer" json:"peer,omitempty"`
113 Fown *fown.FownEntry `protobuf:"bytes,9,req,name=fown" json:"fown,omitempty"`
114 Opts *sk_opts.SkOptsEntry `protobuf:"bytes,10,req,name=opts" json:"opts,omitempty"`
115 // Abstract name may contain \0 at any point,
116 // so we need to carry it as byte sequence...
117 Name []byte `protobuf:"bytes,11,req,name=name" json:"name,omitempty"`
118 Shutdown *sk_opts.SkShutdown `protobuf:"varint,12,opt,name=shutdown,enum=SkShutdown" json:"shutdown,omitempty"`
119 FilePerms *FilePermsEntry `protobuf:"bytes,13,opt,name=file_perms,json=filePerms" json:"file_perms,omitempty"`
120 // Relative socket name may have prefix.
121 NameDir *string `protobuf:"bytes,14,opt,name=name_dir,json=nameDir" json:"name_dir,omitempty"`
122 Deleted *bool `protobuf:"varint,15,opt,name=deleted" json:"deleted,omitempty"`
123 NsId *uint32 `protobuf:"varint,16,opt,name=ns_id,json=nsId" json:"ns_id,omitempty"`
124 MntId *int32 `protobuf:"zigzag32,17,opt,name=mnt_id,json=mntId,def=-1" json:"mnt_id,omitempty"` // Please, don't use field with number 18.
125 }
126
127 // Default values for UnixSkEntry fields.
128 const (
129 Default_UnixSkEntry_MntId = int32(-1)
130 )
131
132 func (x *UnixSkEntry) Reset() {
133 *x = UnixSkEntry{}
134 if protoimpl.UnsafeEnabled {
135 mi := &file_sk_unix_proto_msgTypes[1]
136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
137 ms.StoreMessageInfo(mi)
138 }
139 }
140
141 func (x *UnixSkEntry) String() string {
142 return protoimpl.X.MessageStringOf(x)
143 }
144
145 func (*UnixSkEntry) ProtoMessage() {}
146
147 func (x *UnixSkEntry) ProtoReflect() protoreflect.Message {
148 mi := &file_sk_unix_proto_msgTypes[1]
149 if protoimpl.UnsafeEnabled && x != nil {
150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
151 if ms.LoadMessageInfo() == nil {
152 ms.StoreMessageInfo(mi)
153 }
154 return ms
155 }
156 return mi.MessageOf(x)
157 }
158
159 // Deprecated: Use UnixSkEntry.ProtoReflect.Descriptor instead.
160 func (*UnixSkEntry) Descriptor() ([]byte, []int) {
161 return file_sk_unix_proto_rawDescGZIP(), []int{1}
162 }
163
164 func (x *UnixSkEntry) GetId() uint32 {
165 if x != nil && x.Id != nil {
166 return *x.Id
167 }
168 return 0
169 }
170
171 func (x *UnixSkEntry) GetIno() uint32 {
172 if x != nil && x.Ino != nil {
173 return *x.Ino
174 }
175 return 0
176 }
177
178 func (x *UnixSkEntry) GetType() uint32 {
179 if x != nil && x.Type != nil {
180 return *x.Type
181 }
182 return 0
183 }
184
185 func (x *UnixSkEntry) GetState() uint32 {
186 if x != nil && x.State != nil {
187 return *x.State
188 }
189 return 0
190 }
191
192 func (x *UnixSkEntry) GetFlags() uint32 {
193 if x != nil && x.Flags != nil {
194 return *x.Flags
195 }
196 return 0
197 }
198
199 func (x *UnixSkEntry) GetUflags() uint32 {
200 if x != nil && x.Uflags != nil {
201 return *x.Uflags
202 }
203 return 0
204 }
205
206 func (x *UnixSkEntry) GetBacklog() uint32 {
207 if x != nil && x.Backlog != nil {
208 return *x.Backlog
209 }
210 return 0
211 }
212
213 func (x *UnixSkEntry) GetPeer() uint32 {
214 if x != nil && x.Peer != nil {
215 return *x.Peer
216 }
217 return 0
218 }
219
220 func (x *UnixSkEntry) GetFown() *fown.FownEntry {
221 if x != nil {
222 return x.Fown
223 }
224 return nil
225 }
226
227 func (x *UnixSkEntry) GetOpts() *sk_opts.SkOptsEntry {
228 if x != nil {
229 return x.Opts
230 }
231 return nil
232 }
233
234 func (x *UnixSkEntry) GetName() []byte {
235 if x != nil {
236 return x.Name
237 }
238 return nil
239 }
240
241 func (x *UnixSkEntry) GetShutdown() sk_opts.SkShutdown {
242 if x != nil && x.Shutdown != nil {
243 return *x.Shutdown
244 }
245 return sk_opts.SkShutdown(0)
246 }
247
248 func (x *UnixSkEntry) GetFilePerms() *FilePermsEntry {
249 if x != nil {
250 return x.FilePerms
251 }
252 return nil
253 }
254
255 func (x *UnixSkEntry) GetNameDir() string {
256 if x != nil && x.NameDir != nil {
257 return *x.NameDir
258 }
259 return ""
260 }
261
262 func (x *UnixSkEntry) GetDeleted() bool {
263 if x != nil && x.Deleted != nil {
264 return *x.Deleted
265 }
266 return false
267 }
268
269 func (x *UnixSkEntry) GetNsId() uint32 {
270 if x != nil && x.NsId != nil {
271 return *x.NsId
272 }
273 return 0
274 }
275
276 func (x *UnixSkEntry) GetMntId() int32 {
277 if x != nil && x.MntId != nil {
278 return *x.MntId
279 }
280 return Default_UnixSkEntry_MntId
281 }
282
283 var File_sk_unix_proto protoreflect.FileDescriptor
284
285 var file_sk_unix_proto_rawDesc = []byte{
286 0x0a, 0x0d, 0x73, 0x6b, 0x2d, 0x75, 0x6e, 0x69, 0x78, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
287 0x0a, 0x6f, 0x70, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0a, 0x66, 0x6f, 0x77,
288 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0d, 0x73, 0x6b, 0x2d, 0x6f, 0x70, 0x74, 0x73,
289 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4a, 0x0a, 0x10, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70,
290 0x65, 0x72, 0x6d, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6d, 0x6f,
291 0x64, 0x65, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x10,
292 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x75, 0x69, 0x64,
293 0x12, 0x10, 0x0a, 0x03, 0x67, 0x69, 0x64, 0x18, 0x03, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x03, 0x67,
294 0x69, 0x64, 0x22, 0x81, 0x04, 0x0a, 0x0d, 0x75, 0x6e, 0x69, 0x78, 0x5f, 0x73, 0x6b, 0x5f, 0x65,
295 0x6e, 0x74, 0x72, 0x79, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d,
296 0x52, 0x02, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x6e, 0x6f, 0x18, 0x02, 0x20, 0x02, 0x28,
297 0x0d, 0x52, 0x03, 0x69, 0x6e, 0x6f, 0x12, 0x1b, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03,
298 0x20, 0x02, 0x28, 0x0d, 0x42, 0x07, 0xd2, 0x3f, 0x04, 0x32, 0x02, 0x73, 0x6b, 0x52, 0x04, 0x74,
299 0x79, 0x70, 0x65, 0x12, 0x1d, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x02,
300 0x28, 0x0d, 0x42, 0x07, 0xd2, 0x3f, 0x04, 0x32, 0x02, 0x73, 0x6b, 0x52, 0x05, 0x73, 0x74, 0x61,
301 0x74, 0x65, 0x12, 0x1b, 0x0a, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x05, 0x20, 0x02, 0x28,
302 0x0d, 0x42, 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x05, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12,
303 0x1d, 0x0a, 0x06, 0x75, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x18, 0x06, 0x20, 0x02, 0x28, 0x0d, 0x42,
304 0x05, 0xd2, 0x3f, 0x02, 0x08, 0x01, 0x52, 0x06, 0x75, 0x66, 0x6c, 0x61, 0x67, 0x73, 0x12, 0x18,
305 0x0a, 0x07, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x18, 0x07, 0x20, 0x02, 0x28, 0x0d, 0x52,
306 0x07, 0x62, 0x61, 0x63, 0x6b, 0x6c, 0x6f, 0x67, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x65, 0x65, 0x72,
307 0x18, 0x08, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x04, 0x70, 0x65, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x04,
308 0x66, 0x6f, 0x77, 0x6e, 0x18, 0x09, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x66, 0x6f, 0x77,
309 0x6e, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x66, 0x6f, 0x77, 0x6e, 0x12, 0x22, 0x0a,
310 0x04, 0x6f, 0x70, 0x74, 0x73, 0x18, 0x0a, 0x20, 0x02, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x73, 0x6b,
311 0x5f, 0x6f, 0x70, 0x74, 0x73, 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x04, 0x6f, 0x70, 0x74,
312 0x73, 0x12, 0x22, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x02, 0x28, 0x0c, 0x42,
313 0x0e, 0xd2, 0x3f, 0x0b, 0x3a, 0x09, 0x75, 0x6e, 0x69, 0x78, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x52,
314 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x08, 0x73, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77,
315 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0c, 0x2e, 0x73, 0x6b, 0x5f, 0x73, 0x68, 0x75,
316 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x52, 0x08, 0x73, 0x68, 0x75, 0x74, 0x64, 0x6f, 0x77, 0x6e, 0x12,
317 0x30, 0x0a, 0x0a, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x73, 0x18, 0x0d, 0x20,
318 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x70, 0x65, 0x72, 0x6d, 0x73,
319 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x09, 0x66, 0x69, 0x6c, 0x65, 0x50, 0x65, 0x72, 0x6d,
320 0x73, 0x12, 0x19, 0x0a, 0x08, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x0e, 0x20,
321 0x01, 0x28, 0x09, 0x52, 0x07, 0x6e, 0x61, 0x6d, 0x65, 0x44, 0x69, 0x72, 0x12, 0x18, 0x0a, 0x07,
322 0x64, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x64,
323 0x65, 0x6c, 0x65, 0x74, 0x65, 0x64, 0x12, 0x13, 0x0a, 0x05, 0x6e, 0x73, 0x5f, 0x69, 0x64, 0x18,
324 0x10, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x04, 0x6e, 0x73, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x06, 0x6d,
325 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x11, 0x3a, 0x02, 0x2d, 0x31, 0x52,
326 0x05, 0x6d, 0x6e, 0x74, 0x49, 0x64,
327 }
328
329 var (
330 file_sk_unix_proto_rawDescOnce sync.Once
331 file_sk_unix_proto_rawDescData = file_sk_unix_proto_rawDesc
332 )
333
334 func file_sk_unix_proto_rawDescGZIP() []byte {
335 file_sk_unix_proto_rawDescOnce.Do(func() {
336 file_sk_unix_proto_rawDescData = protoimpl.X.CompressGZIP(file_sk_unix_proto_rawDescData)
337 })
338 return file_sk_unix_proto_rawDescData
339 }
340
341 var file_sk_unix_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
342 var file_sk_unix_proto_goTypes = []interface{}{
343 (*FilePermsEntry)(nil), // 0: file_perms_entry
344 (*UnixSkEntry)(nil), // 1: unix_sk_entry
345 (*fown.FownEntry)(nil), // 2: fown_entry
346 (*sk_opts.SkOptsEntry)(nil), // 3: sk_opts_entry
347 (sk_opts.SkShutdown)(0), // 4: sk_shutdown
348 }
349 var file_sk_unix_proto_depIdxs = []int32{
350 2, // 0: unix_sk_entry.fown:type_name -> fown_entry
351 3, // 1: unix_sk_entry.opts:type_name -> sk_opts_entry
352 4, // 2: unix_sk_entry.shutdown:type_name -> sk_shutdown
353 0, // 3: unix_sk_entry.file_perms:type_name -> file_perms_entry
354 4, // [4:4] is the sub-list for method output_type
355 4, // [4:4] is the sub-list for method input_type
356 4, // [4:4] is the sub-list for extension type_name
357 4, // [4:4] is the sub-list for extension extendee
358 0, // [0:4] is the sub-list for field type_name
359 }
360
361 func init() { file_sk_unix_proto_init() }
362 func file_sk_unix_proto_init() {
363 if File_sk_unix_proto != nil {
364 return
365 }
366 if !protoimpl.UnsafeEnabled {
367 file_sk_unix_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
368 switch v := v.(*FilePermsEntry); i {
369 case 0:
370 return &v.state
371 case 1:
372 return &v.sizeCache
373 case 2:
374 return &v.unknownFields
375 default:
376 return nil
377 }
378 }
379 file_sk_unix_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
380 switch v := v.(*UnixSkEntry); i {
381 case 0:
382 return &v.state
383 case 1:
384 return &v.sizeCache
385 case 2:
386 return &v.unknownFields
387 default:
388 return nil
389 }
390 }
391 }
392 type x struct{}
393 out := protoimpl.TypeBuilder{
394 File: protoimpl.DescBuilder{
395 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
396 RawDescriptor: file_sk_unix_proto_rawDesc,
397 NumEnums: 0,
398 NumMessages: 2,
399 NumExtensions: 0,
400 NumServices: 0,
401 },
402 GoTypes: file_sk_unix_proto_goTypes,
403 DependencyIndexes: file_sk_unix_proto_depIdxs,
404 MessageInfos: file_sk_unix_proto_msgTypes,
405 }.Build()
406 File_sk_unix_proto = out.File
407 file_sk_unix_proto_rawDesc = nil
408 file_sk_unix_proto_goTypes = nil
409 file_sk_unix_proto_depIdxs = nil
410 }