Debian Codegraph @

crit/images/inventory/inventory.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: inventory.proto
8
9 package inventory
10
11 import (
12 criu_core "github.com/checkpoint-restore/go-criu/v7/crit/images/criu-core"
13 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
14 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
15 reflect "reflect"
16 sync "sync"
17 )
18
19 const (
20 // Verify that this generated code is sufficiently up-to-date.
21 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
22 // Verify that runtime/protoimpl is sufficiently up-to-date.
23 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
24 )
25
26 type Lsmtype int32
27
28 const (
29 Lsmtype_NO_LSM Lsmtype = 0
30 Lsmtype_SELINUX Lsmtype = 1
31 Lsmtype_APPARMOR Lsmtype = 2
32 )
33
34 // Enum value maps for Lsmtype.
35 var (
36 Lsmtype_name = map[int32]string{
37 0: "NO_LSM",
38 1: "SELINUX",
39 2: "APPARMOR",
40 }
41 Lsmtype_value = map[string]int32{
42 "NO_LSM": 0,
43 "SELINUX": 1,
44 "APPARMOR": 2,
45 }
46 )
47
48 func (x Lsmtype) Enum() *Lsmtype {
49 p := new(Lsmtype)
50 *p = x
51 return p
52 }
53
54 func (x Lsmtype) String() string {
55 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
56 }
57
58 func (Lsmtype) Descriptor() protoreflect.EnumDescriptor {
59 return file_inventory_proto_enumTypes[0].Descriptor()
60 }
61
62 func (Lsmtype) Type() protoreflect.EnumType {
63 return &file_inventory_proto_enumTypes[0]
64 }
65
66 func (x Lsmtype) Number() protoreflect.EnumNumber {
67 return protoreflect.EnumNumber(x)
68 }
69
70 // Deprecated: Do not use.
71 func (x *Lsmtype) UnmarshalJSON(b []byte) error {
72 num, err := protoimpl.X.UnmarshalJSONEnum(x.Descriptor(), b)
73 if err != nil {
74 return err
75 }
76 *x = Lsmtype(num)
77 return nil
78 }
79
80 // Deprecated: Use Lsmtype.Descriptor instead.
81 func (Lsmtype) EnumDescriptor() ([]byte, []int) {
82 return file_inventory_proto_rawDescGZIP(), []int{0}
83 }
84
85 type InventoryEntry struct {
86 state protoimpl.MessageState
87 sizeCache protoimpl.SizeCache
88 unknownFields protoimpl.UnknownFields
89
90 ImgVersion *uint32 `protobuf:"varint,1,req,name=img_version,json=imgVersion" json:"img_version,omitempty"`
91 FdinfoPerId *bool `protobuf:"varint,2,opt,name=fdinfo_per_id,json=fdinfoPerId" json:"fdinfo_per_id,omitempty"`
92 RootIds *criu_core.TaskKobjIdsEntry `protobuf:"bytes,3,opt,name=root_ids,json=rootIds" json:"root_ids,omitempty"`
93 NsPerId *bool `protobuf:"varint,4,opt,name=ns_per_id,json=nsPerId" json:"ns_per_id,omitempty"`
94 RootCgSet *uint32 `protobuf:"varint,5,opt,name=root_cg_set,json=rootCgSet" json:"root_cg_set,omitempty"`
95 Lsmtype *Lsmtype `protobuf:"varint,6,opt,name=lsmtype,enum=Lsmtype" json:"lsmtype,omitempty"`
96 DumpUptime *uint64 `protobuf:"varint,8,opt,name=dump_uptime,json=dumpUptime" json:"dump_uptime,omitempty"`
97 PreDumpMode *uint32 `protobuf:"varint,9,opt,name=pre_dump_mode,json=preDumpMode" json:"pre_dump_mode,omitempty"`
98 TcpClose *bool `protobuf:"varint,10,opt,name=tcp_close,json=tcpClose" json:"tcp_close,omitempty"`
99 NetworkLockMethod *uint32 `protobuf:"varint,11,opt,name=network_lock_method,json=networkLockMethod" json:"network_lock_method,omitempty"`
100 }
101
102 func (x *InventoryEntry) Reset() {
103 *x = InventoryEntry{}
104 if protoimpl.UnsafeEnabled {
105 mi := &file_inventory_proto_msgTypes[0]
106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107 ms.StoreMessageInfo(mi)
108 }
109 }
110
111 func (x *InventoryEntry) String() string {
112 return protoimpl.X.MessageStringOf(x)
113 }
114
115 func (*InventoryEntry) ProtoMessage() {}
116
117 func (x *InventoryEntry) ProtoReflect() protoreflect.Message {
118 mi := &file_inventory_proto_msgTypes[0]
119 if protoimpl.UnsafeEnabled && x != nil {
120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121 if ms.LoadMessageInfo() == nil {
122 ms.StoreMessageInfo(mi)
123 }
124 return ms
125 }
126 return mi.MessageOf(x)
127 }
128
129 // Deprecated: Use InventoryEntry.ProtoReflect.Descriptor instead.
130 func (*InventoryEntry) Descriptor() ([]byte, []int) {
131 return file_inventory_proto_rawDescGZIP(), []int{0}
132 }
133
134 func (x *InventoryEntry) GetImgVersion() uint32 {
135 if x != nil && x.ImgVersion != nil {
136 return *x.ImgVersion
137 }
138 return 0
139 }
140
141 func (x *InventoryEntry) GetFdinfoPerId() bool {
142 if x != nil && x.FdinfoPerId != nil {
143 return *x.FdinfoPerId
144 }
145 return false
146 }
147
148 func (x *InventoryEntry) GetRootIds() *criu_core.TaskKobjIdsEntry {
149 if x != nil {
150 return x.RootIds
151 }
152 return nil
153 }
154
155 func (x *InventoryEntry) GetNsPerId() bool {
156 if x != nil && x.NsPerId != nil {
157 return *x.NsPerId
158 }
159 return false
160 }
161
162 func (x *InventoryEntry) GetRootCgSet() uint32 {
163 if x != nil && x.RootCgSet != nil {
164 return *x.RootCgSet
165 }
166 return 0
167 }
168
169 func (x *InventoryEntry) GetLsmtype() Lsmtype {
170 if x != nil && x.Lsmtype != nil {
171 return *x.Lsmtype
172 }
173 return Lsmtype_NO_LSM
174 }
175
176 func (x *InventoryEntry) GetDumpUptime() uint64 {
177 if x != nil && x.DumpUptime != nil {
178 return *x.DumpUptime
179 }
180 return 0
181 }
182
183 func (x *InventoryEntry) GetPreDumpMode() uint32 {
184 if x != nil && x.PreDumpMode != nil {
185 return *x.PreDumpMode
186 }
187 return 0
188 }
189
190 func (x *InventoryEntry) GetTcpClose() bool {
191 if x != nil && x.TcpClose != nil {
192 return *x.TcpClose
193 }
194 return false
195 }
196
197 func (x *InventoryEntry) GetNetworkLockMethod() uint32 {
198 if x != nil && x.NetworkLockMethod != nil {
199 return *x.NetworkLockMethod
200 }
201 return 0
202 }
203
204 var File_inventory_proto protoreflect.FileDescriptor
205
206 var file_inventory_proto_rawDesc = []byte{
207 0x0a, 0x0f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74,
208 0x6f, 0x1a, 0x0f, 0x63, 0x72, 0x69, 0x75, 0x2d, 0x63, 0x6f, 0x72, 0x65, 0x2e, 0x70, 0x72, 0x6f,
209 0x74, 0x6f, 0x22, 0xf9, 0x02, 0x0a, 0x0f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79,
210 0x5f, 0x65, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x69, 0x6d, 0x67, 0x5f, 0x76, 0x65,
211 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x02, 0x28, 0x0d, 0x52, 0x0a, 0x69, 0x6d, 0x67,
212 0x56, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x22, 0x0a, 0x0d, 0x66, 0x64, 0x69, 0x6e, 0x66,
213 0x6f, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0b,
214 0x66, 0x64, 0x69, 0x6e, 0x66, 0x6f, 0x50, 0x65, 0x72, 0x49, 0x64, 0x12, 0x2f, 0x0a, 0x08, 0x72,
215 0x6f, 0x6f, 0x74, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e,
216 0x74, 0x61, 0x73, 0x6b, 0x5f, 0x6b, 0x6f, 0x62, 0x6a, 0x5f, 0x69, 0x64, 0x73, 0x5f, 0x65, 0x6e,
217 0x74, 0x72, 0x79, 0x52, 0x07, 0x72, 0x6f, 0x6f, 0x74, 0x49, 0x64, 0x73, 0x12, 0x1a, 0x0a, 0x09,
218 0x6e, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52,
219 0x07, 0x6e, 0x73, 0x50, 0x65, 0x72, 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x72, 0x6f, 0x6f, 0x74,
220 0x5f, 0x63, 0x67, 0x5f, 0x73, 0x65, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x09, 0x72,
221 0x6f, 0x6f, 0x74, 0x43, 0x67, 0x53, 0x65, 0x74, 0x12, 0x22, 0x0a, 0x07, 0x6c, 0x73, 0x6d, 0x74,
222 0x79, 0x70, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x08, 0x2e, 0x6c, 0x73, 0x6d, 0x74,
223 0x79, 0x70, 0x65, 0x52, 0x07, 0x6c, 0x73, 0x6d, 0x74, 0x79, 0x70, 0x65, 0x12, 0x1f, 0x0a, 0x0b,
224 0x64, 0x75, 0x6d, 0x70, 0x5f, 0x75, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28,
225 0x04, 0x52, 0x0a, 0x64, 0x75, 0x6d, 0x70, 0x55, 0x70, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x22, 0x0a,
226 0x0d, 0x70, 0x72, 0x65, 0x5f, 0x64, 0x75, 0x6d, 0x70, 0x5f, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x09,
227 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x70, 0x72, 0x65, 0x44, 0x75, 0x6d, 0x70, 0x4d, 0x6f, 0x64,
228 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x74, 0x63, 0x70, 0x5f, 0x63, 0x6c, 0x6f, 0x73, 0x65, 0x18, 0x0a,
229 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x74, 0x63, 0x70, 0x43, 0x6c, 0x6f, 0x73, 0x65, 0x12, 0x2e,
230 0x0a, 0x13, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x5f, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x6d,
231 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x11, 0x6e, 0x65, 0x74,
232 0x77, 0x6f, 0x72, 0x6b, 0x4c, 0x6f, 0x63, 0x6b, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x2a, 0x30,
233 0x0a, 0x07, 0x6c, 0x73, 0x6d, 0x74, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x4e, 0x4f, 0x5f,
234 0x4c, 0x53, 0x4d, 0x10, 0x00, 0x12, 0x0b, 0x0a, 0x07, 0x53, 0x45, 0x4c, 0x49, 0x4e, 0x55, 0x58,
235 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x41, 0x50, 0x50, 0x41, 0x52, 0x4d, 0x4f, 0x52, 0x10, 0x02,
236 }
237
238 var (
239 file_inventory_proto_rawDescOnce sync.Once
240 file_inventory_proto_rawDescData = file_inventory_proto_rawDesc
241 )
242
243 func file_inventory_proto_rawDescGZIP() []byte {
244 file_inventory_proto_rawDescOnce.Do(func() {
245 file_inventory_proto_rawDescData = protoimpl.X.CompressGZIP(file_inventory_proto_rawDescData)
246 })
247 return file_inventory_proto_rawDescData
248 }
249
250 var file_inventory_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
251 var file_inventory_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
252 var file_inventory_proto_goTypes = []interface{}{
253 (Lsmtype)(0), // 0: lsmtype
254 (*InventoryEntry)(nil), // 1: inventory_entry
255 (*criu_core.TaskKobjIdsEntry)(nil), // 2: task_kobj_ids_entry
256 }
257 var file_inventory_proto_depIdxs = []int32{
258 2, // 0: inventory_entry.root_ids:type_name -> task_kobj_ids_entry
259 0, // 1: inventory_entry.lsmtype:type_name -> lsmtype
260 2, // [2:2] is the sub-list for method output_type
261 2, // [2:2] is the sub-list for method input_type
262 2, // [2:2] is the sub-list for extension type_name
263 2, // [2:2] is the sub-list for extension extendee
264 0, // [0:2] is the sub-list for field type_name
265 }
266
267 func init() { file_inventory_proto_init() }
268 func file_inventory_proto_init() {
269 if File_inventory_proto != nil {
270 return
271 }
272 if !protoimpl.UnsafeEnabled {
273 file_inventory_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
274 switch v := v.(*InventoryEntry); i {
275 case 0:
276 return &v.state
277 case 1:
278 return &v.sizeCache
279 case 2:
280 return &v.unknownFields
281 default:
282 return nil
283 }
284 }
285 }
286 type x struct{}
287 out := protoimpl.TypeBuilder{
288 File: protoimpl.DescBuilder{
289 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
290 RawDescriptor: file_inventory_proto_rawDesc,
291 NumEnums: 1,
292 NumMessages: 1,
293 NumExtensions: 0,
294 NumServices: 0,
295 },
296 GoTypes: file_inventory_proto_goTypes,
297 DependencyIndexes: file_inventory_proto_depIdxs,
298 EnumInfos: file_inventory_proto_enumTypes,
299 MessageInfos: file_inventory_proto_msgTypes,
300 }.Build()
301 File_inventory_proto = out.File
302 file_inventory_proto_rawDesc = nil
303 file_inventory_proto_goTypes = nil
304 file_inventory_proto_depIdxs = nil
305 }