criurpc.pb.go 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823
  1. // Code generated by protoc-gen-go.
  2. // source: criurpc.proto
  3. // DO NOT EDIT!
  4. /*
  5. Package criurpc is a generated protocol buffer package.
  6. It is generated from these files:
  7. criurpc.proto
  8. It has these top-level messages:
  9. CriuPageServerInfo
  10. CriuVethPair
  11. ExtMountMap
  12. InheritFd
  13. CgroupRoot
  14. UnixSk
  15. CriuOpts
  16. CriuDumpResp
  17. CriuRestoreResp
  18. CriuNotify
  19. CriuFeatures
  20. CriuReq
  21. CriuResp
  22. */
  23. package criurpc
  24. import proto "github.com/golang/protobuf/proto"
  25. import math "math"
  26. // Reference imports to suppress errors if they are not otherwise used.
  27. var _ = proto.Marshal
  28. var _ = math.Inf
  29. type CriuCgMode int32
  30. const (
  31. CriuCgMode_IGNORE CriuCgMode = 0
  32. CriuCgMode_NONE CriuCgMode = 1
  33. CriuCgMode_PROPS CriuCgMode = 2
  34. CriuCgMode_SOFT CriuCgMode = 3
  35. CriuCgMode_FULL CriuCgMode = 4
  36. CriuCgMode_STRICT CriuCgMode = 5
  37. CriuCgMode_DEFAULT CriuCgMode = 6
  38. )
  39. var CriuCgMode_name = map[int32]string{
  40. 0: "IGNORE",
  41. 1: "NONE",
  42. 2: "PROPS",
  43. 3: "SOFT",
  44. 4: "FULL",
  45. 5: "STRICT",
  46. 6: "DEFAULT",
  47. }
  48. var CriuCgMode_value = map[string]int32{
  49. "IGNORE": 0,
  50. "NONE": 1,
  51. "PROPS": 2,
  52. "SOFT": 3,
  53. "FULL": 4,
  54. "STRICT": 5,
  55. "DEFAULT": 6,
  56. }
  57. func (x CriuCgMode) Enum() *CriuCgMode {
  58. p := new(CriuCgMode)
  59. *p = x
  60. return p
  61. }
  62. func (x CriuCgMode) String() string {
  63. return proto.EnumName(CriuCgMode_name, int32(x))
  64. }
  65. func (x *CriuCgMode) UnmarshalJSON(data []byte) error {
  66. value, err := proto.UnmarshalJSONEnum(CriuCgMode_value, data, "CriuCgMode")
  67. if err != nil {
  68. return err
  69. }
  70. *x = CriuCgMode(value)
  71. return nil
  72. }
  73. type CriuReqType int32
  74. const (
  75. CriuReqType_EMPTY CriuReqType = 0
  76. CriuReqType_DUMP CriuReqType = 1
  77. CriuReqType_RESTORE CriuReqType = 2
  78. CriuReqType_CHECK CriuReqType = 3
  79. CriuReqType_PRE_DUMP CriuReqType = 4
  80. CriuReqType_PAGE_SERVER CriuReqType = 5
  81. CriuReqType_NOTIFY CriuReqType = 6
  82. CriuReqType_CPUINFO_DUMP CriuReqType = 7
  83. CriuReqType_CPUINFO_CHECK CriuReqType = 8
  84. CriuReqType_FEATURE_CHECK CriuReqType = 9
  85. )
  86. var CriuReqType_name = map[int32]string{
  87. 0: "EMPTY",
  88. 1: "DUMP",
  89. 2: "RESTORE",
  90. 3: "CHECK",
  91. 4: "PRE_DUMP",
  92. 5: "PAGE_SERVER",
  93. 6: "NOTIFY",
  94. 7: "CPUINFO_DUMP",
  95. 8: "CPUINFO_CHECK",
  96. 9: "FEATURE_CHECK",
  97. }
  98. var CriuReqType_value = map[string]int32{
  99. "EMPTY": 0,
  100. "DUMP": 1,
  101. "RESTORE": 2,
  102. "CHECK": 3,
  103. "PRE_DUMP": 4,
  104. "PAGE_SERVER": 5,
  105. "NOTIFY": 6,
  106. "CPUINFO_DUMP": 7,
  107. "CPUINFO_CHECK": 8,
  108. "FEATURE_CHECK": 9,
  109. }
  110. func (x CriuReqType) Enum() *CriuReqType {
  111. p := new(CriuReqType)
  112. *p = x
  113. return p
  114. }
  115. func (x CriuReqType) String() string {
  116. return proto.EnumName(CriuReqType_name, int32(x))
  117. }
  118. func (x *CriuReqType) UnmarshalJSON(data []byte) error {
  119. value, err := proto.UnmarshalJSONEnum(CriuReqType_value, data, "CriuReqType")
  120. if err != nil {
  121. return err
  122. }
  123. *x = CriuReqType(value)
  124. return nil
  125. }
  126. type CriuPageServerInfo struct {
  127. Address *string `protobuf:"bytes,1,opt,name=address" json:"address,omitempty"`
  128. Port *int32 `protobuf:"varint,2,opt,name=port" json:"port,omitempty"`
  129. Pid *int32 `protobuf:"varint,3,opt,name=pid" json:"pid,omitempty"`
  130. Fd *int32 `protobuf:"varint,4,opt,name=fd" json:"fd,omitempty"`
  131. XXX_unrecognized []byte `json:"-"`
  132. }
  133. func (m *CriuPageServerInfo) Reset() { *m = CriuPageServerInfo{} }
  134. func (m *CriuPageServerInfo) String() string { return proto.CompactTextString(m) }
  135. func (*CriuPageServerInfo) ProtoMessage() {}
  136. func (m *CriuPageServerInfo) GetAddress() string {
  137. if m != nil && m.Address != nil {
  138. return *m.Address
  139. }
  140. return ""
  141. }
  142. func (m *CriuPageServerInfo) GetPort() int32 {
  143. if m != nil && m.Port != nil {
  144. return *m.Port
  145. }
  146. return 0
  147. }
  148. func (m *CriuPageServerInfo) GetPid() int32 {
  149. if m != nil && m.Pid != nil {
  150. return *m.Pid
  151. }
  152. return 0
  153. }
  154. func (m *CriuPageServerInfo) GetFd() int32 {
  155. if m != nil && m.Fd != nil {
  156. return *m.Fd
  157. }
  158. return 0
  159. }
  160. type CriuVethPair struct {
  161. IfIn *string `protobuf:"bytes,1,req,name=if_in" json:"if_in,omitempty"`
  162. IfOut *string `protobuf:"bytes,2,req,name=if_out" json:"if_out,omitempty"`
  163. XXX_unrecognized []byte `json:"-"`
  164. }
  165. func (m *CriuVethPair) Reset() { *m = CriuVethPair{} }
  166. func (m *CriuVethPair) String() string { return proto.CompactTextString(m) }
  167. func (*CriuVethPair) ProtoMessage() {}
  168. func (m *CriuVethPair) GetIfIn() string {
  169. if m != nil && m.IfIn != nil {
  170. return *m.IfIn
  171. }
  172. return ""
  173. }
  174. func (m *CriuVethPair) GetIfOut() string {
  175. if m != nil && m.IfOut != nil {
  176. return *m.IfOut
  177. }
  178. return ""
  179. }
  180. type ExtMountMap struct {
  181. Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
  182. Val *string `protobuf:"bytes,2,req,name=val" json:"val,omitempty"`
  183. XXX_unrecognized []byte `json:"-"`
  184. }
  185. func (m *ExtMountMap) Reset() { *m = ExtMountMap{} }
  186. func (m *ExtMountMap) String() string { return proto.CompactTextString(m) }
  187. func (*ExtMountMap) ProtoMessage() {}
  188. func (m *ExtMountMap) GetKey() string {
  189. if m != nil && m.Key != nil {
  190. return *m.Key
  191. }
  192. return ""
  193. }
  194. func (m *ExtMountMap) GetVal() string {
  195. if m != nil && m.Val != nil {
  196. return *m.Val
  197. }
  198. return ""
  199. }
  200. type InheritFd struct {
  201. Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
  202. Fd *int32 `protobuf:"varint,2,req,name=fd" json:"fd,omitempty"`
  203. XXX_unrecognized []byte `json:"-"`
  204. }
  205. func (m *InheritFd) Reset() { *m = InheritFd{} }
  206. func (m *InheritFd) String() string { return proto.CompactTextString(m) }
  207. func (*InheritFd) ProtoMessage() {}
  208. func (m *InheritFd) GetKey() string {
  209. if m != nil && m.Key != nil {
  210. return *m.Key
  211. }
  212. return ""
  213. }
  214. func (m *InheritFd) GetFd() int32 {
  215. if m != nil && m.Fd != nil {
  216. return *m.Fd
  217. }
  218. return 0
  219. }
  220. type CgroupRoot struct {
  221. Ctrl *string `protobuf:"bytes,1,opt,name=ctrl" json:"ctrl,omitempty"`
  222. Path *string `protobuf:"bytes,2,req,name=path" json:"path,omitempty"`
  223. XXX_unrecognized []byte `json:"-"`
  224. }
  225. func (m *CgroupRoot) Reset() { *m = CgroupRoot{} }
  226. func (m *CgroupRoot) String() string { return proto.CompactTextString(m) }
  227. func (*CgroupRoot) ProtoMessage() {}
  228. func (m *CgroupRoot) GetCtrl() string {
  229. if m != nil && m.Ctrl != nil {
  230. return *m.Ctrl
  231. }
  232. return ""
  233. }
  234. func (m *CgroupRoot) GetPath() string {
  235. if m != nil && m.Path != nil {
  236. return *m.Path
  237. }
  238. return ""
  239. }
  240. type UnixSk struct {
  241. Inode *uint32 `protobuf:"varint,1,req,name=inode" json:"inode,omitempty"`
  242. XXX_unrecognized []byte `json:"-"`
  243. }
  244. func (m *UnixSk) Reset() { *m = UnixSk{} }
  245. func (m *UnixSk) String() string { return proto.CompactTextString(m) }
  246. func (*UnixSk) ProtoMessage() {}
  247. func (m *UnixSk) GetInode() uint32 {
  248. if m != nil && m.Inode != nil {
  249. return *m.Inode
  250. }
  251. return 0
  252. }
  253. type CriuOpts struct {
  254. ImagesDirFd *int32 `protobuf:"varint,1,req,name=images_dir_fd" json:"images_dir_fd,omitempty"`
  255. Pid *int32 `protobuf:"varint,2,opt,name=pid" json:"pid,omitempty"`
  256. LeaveRunning *bool `protobuf:"varint,3,opt,name=leave_running" json:"leave_running,omitempty"`
  257. ExtUnixSk *bool `protobuf:"varint,4,opt,name=ext_unix_sk" json:"ext_unix_sk,omitempty"`
  258. TcpEstablished *bool `protobuf:"varint,5,opt,name=tcp_established" json:"tcp_established,omitempty"`
  259. EvasiveDevices *bool `protobuf:"varint,6,opt,name=evasive_devices" json:"evasive_devices,omitempty"`
  260. ShellJob *bool `protobuf:"varint,7,opt,name=shell_job" json:"shell_job,omitempty"`
  261. FileLocks *bool `protobuf:"varint,8,opt,name=file_locks" json:"file_locks,omitempty"`
  262. LogLevel *int32 `protobuf:"varint,9,opt,name=log_level,def=2" json:"log_level,omitempty"`
  263. LogFile *string `protobuf:"bytes,10,opt,name=log_file" json:"log_file,omitempty"`
  264. Ps *CriuPageServerInfo `protobuf:"bytes,11,opt,name=ps" json:"ps,omitempty"`
  265. NotifyScripts *bool `protobuf:"varint,12,opt,name=notify_scripts" json:"notify_scripts,omitempty"`
  266. Root *string `protobuf:"bytes,13,opt,name=root" json:"root,omitempty"`
  267. ParentImg *string `protobuf:"bytes,14,opt,name=parent_img" json:"parent_img,omitempty"`
  268. TrackMem *bool `protobuf:"varint,15,opt,name=track_mem" json:"track_mem,omitempty"`
  269. AutoDedup *bool `protobuf:"varint,16,opt,name=auto_dedup" json:"auto_dedup,omitempty"`
  270. WorkDirFd *int32 `protobuf:"varint,17,opt,name=work_dir_fd" json:"work_dir_fd,omitempty"`
  271. LinkRemap *bool `protobuf:"varint,18,opt,name=link_remap" json:"link_remap,omitempty"`
  272. Veths []*CriuVethPair `protobuf:"bytes,19,rep,name=veths" json:"veths,omitempty"`
  273. CpuCap *uint32 `protobuf:"varint,20,opt,name=cpu_cap,def=4294967295" json:"cpu_cap,omitempty"`
  274. ForceIrmap *bool `protobuf:"varint,21,opt,name=force_irmap" json:"force_irmap,omitempty"`
  275. ExecCmd []string `protobuf:"bytes,22,rep,name=exec_cmd" json:"exec_cmd,omitempty"`
  276. ExtMnt []*ExtMountMap `protobuf:"bytes,23,rep,name=ext_mnt" json:"ext_mnt,omitempty"`
  277. ManageCgroups *bool `protobuf:"varint,24,opt,name=manage_cgroups" json:"manage_cgroups,omitempty"`
  278. CgRoot []*CgroupRoot `protobuf:"bytes,25,rep,name=cg_root" json:"cg_root,omitempty"`
  279. RstSibling *bool `protobuf:"varint,26,opt,name=rst_sibling" json:"rst_sibling,omitempty"`
  280. InheritFd []*InheritFd `protobuf:"bytes,27,rep,name=inherit_fd" json:"inherit_fd,omitempty"`
  281. AutoExtMnt *bool `protobuf:"varint,28,opt,name=auto_ext_mnt" json:"auto_ext_mnt,omitempty"`
  282. ExtSharing *bool `protobuf:"varint,29,opt,name=ext_sharing" json:"ext_sharing,omitempty"`
  283. ExtMasters *bool `protobuf:"varint,30,opt,name=ext_masters" json:"ext_masters,omitempty"`
  284. SkipMnt []string `protobuf:"bytes,31,rep,name=skip_mnt" json:"skip_mnt,omitempty"`
  285. EnableFs []string `protobuf:"bytes,32,rep,name=enable_fs" json:"enable_fs,omitempty"`
  286. UnixSkIno []*UnixSk `protobuf:"bytes,33,rep,name=unix_sk_ino" json:"unix_sk_ino,omitempty"`
  287. ManageCgroupsMode *CriuCgMode `protobuf:"varint,34,opt,name=manage_cgroups_mode,enum=CriuCgMode" json:"manage_cgroups_mode,omitempty"`
  288. GhostLimit *uint32 `protobuf:"varint,35,opt,name=ghost_limit,def=1048576" json:"ghost_limit,omitempty"`
  289. IrmapScanPaths []string `protobuf:"bytes,36,rep,name=irmap_scan_paths" json:"irmap_scan_paths,omitempty"`
  290. External []string `protobuf:"bytes,37,rep,name=external" json:"external,omitempty"`
  291. EmptyNs *uint32 `protobuf:"varint,38,opt,name=empty_ns" json:"empty_ns,omitempty"`
  292. NoSeccomp *bool `protobuf:"varint,39,opt,name=no_seccomp" json:"no_seccomp,omitempty"`
  293. XXX_unrecognized []byte `json:"-"`
  294. }
  295. func (m *CriuOpts) Reset() { *m = CriuOpts{} }
  296. func (m *CriuOpts) String() string { return proto.CompactTextString(m) }
  297. func (*CriuOpts) ProtoMessage() {}
  298. const Default_CriuOpts_LogLevel int32 = 2
  299. const Default_CriuOpts_CpuCap uint32 = 4294967295
  300. const Default_CriuOpts_GhostLimit uint32 = 1048576
  301. func (m *CriuOpts) GetImagesDirFd() int32 {
  302. if m != nil && m.ImagesDirFd != nil {
  303. return *m.ImagesDirFd
  304. }
  305. return 0
  306. }
  307. func (m *CriuOpts) GetPid() int32 {
  308. if m != nil && m.Pid != nil {
  309. return *m.Pid
  310. }
  311. return 0
  312. }
  313. func (m *CriuOpts) GetLeaveRunning() bool {
  314. if m != nil && m.LeaveRunning != nil {
  315. return *m.LeaveRunning
  316. }
  317. return false
  318. }
  319. func (m *CriuOpts) GetExtUnixSk() bool {
  320. if m != nil && m.ExtUnixSk != nil {
  321. return *m.ExtUnixSk
  322. }
  323. return false
  324. }
  325. func (m *CriuOpts) GetTcpEstablished() bool {
  326. if m != nil && m.TcpEstablished != nil {
  327. return *m.TcpEstablished
  328. }
  329. return false
  330. }
  331. func (m *CriuOpts) GetEvasiveDevices() bool {
  332. if m != nil && m.EvasiveDevices != nil {
  333. return *m.EvasiveDevices
  334. }
  335. return false
  336. }
  337. func (m *CriuOpts) GetShellJob() bool {
  338. if m != nil && m.ShellJob != nil {
  339. return *m.ShellJob
  340. }
  341. return false
  342. }
  343. func (m *CriuOpts) GetFileLocks() bool {
  344. if m != nil && m.FileLocks != nil {
  345. return *m.FileLocks
  346. }
  347. return false
  348. }
  349. func (m *CriuOpts) GetLogLevel() int32 {
  350. if m != nil && m.LogLevel != nil {
  351. return *m.LogLevel
  352. }
  353. return Default_CriuOpts_LogLevel
  354. }
  355. func (m *CriuOpts) GetLogFile() string {
  356. if m != nil && m.LogFile != nil {
  357. return *m.LogFile
  358. }
  359. return ""
  360. }
  361. func (m *CriuOpts) GetPs() *CriuPageServerInfo {
  362. if m != nil {
  363. return m.Ps
  364. }
  365. return nil
  366. }
  367. func (m *CriuOpts) GetNotifyScripts() bool {
  368. if m != nil && m.NotifyScripts != nil {
  369. return *m.NotifyScripts
  370. }
  371. return false
  372. }
  373. func (m *CriuOpts) GetRoot() string {
  374. if m != nil && m.Root != nil {
  375. return *m.Root
  376. }
  377. return ""
  378. }
  379. func (m *CriuOpts) GetParentImg() string {
  380. if m != nil && m.ParentImg != nil {
  381. return *m.ParentImg
  382. }
  383. return ""
  384. }
  385. func (m *CriuOpts) GetTrackMem() bool {
  386. if m != nil && m.TrackMem != nil {
  387. return *m.TrackMem
  388. }
  389. return false
  390. }
  391. func (m *CriuOpts) GetAutoDedup() bool {
  392. if m != nil && m.AutoDedup != nil {
  393. return *m.AutoDedup
  394. }
  395. return false
  396. }
  397. func (m *CriuOpts) GetWorkDirFd() int32 {
  398. if m != nil && m.WorkDirFd != nil {
  399. return *m.WorkDirFd
  400. }
  401. return 0
  402. }
  403. func (m *CriuOpts) GetLinkRemap() bool {
  404. if m != nil && m.LinkRemap != nil {
  405. return *m.LinkRemap
  406. }
  407. return false
  408. }
  409. func (m *CriuOpts) GetVeths() []*CriuVethPair {
  410. if m != nil {
  411. return m.Veths
  412. }
  413. return nil
  414. }
  415. func (m *CriuOpts) GetCpuCap() uint32 {
  416. if m != nil && m.CpuCap != nil {
  417. return *m.CpuCap
  418. }
  419. return Default_CriuOpts_CpuCap
  420. }
  421. func (m *CriuOpts) GetForceIrmap() bool {
  422. if m != nil && m.ForceIrmap != nil {
  423. return *m.ForceIrmap
  424. }
  425. return false
  426. }
  427. func (m *CriuOpts) GetExecCmd() []string {
  428. if m != nil {
  429. return m.ExecCmd
  430. }
  431. return nil
  432. }
  433. func (m *CriuOpts) GetExtMnt() []*ExtMountMap {
  434. if m != nil {
  435. return m.ExtMnt
  436. }
  437. return nil
  438. }
  439. func (m *CriuOpts) GetManageCgroups() bool {
  440. if m != nil && m.ManageCgroups != nil {
  441. return *m.ManageCgroups
  442. }
  443. return false
  444. }
  445. func (m *CriuOpts) GetCgRoot() []*CgroupRoot {
  446. if m != nil {
  447. return m.CgRoot
  448. }
  449. return nil
  450. }
  451. func (m *CriuOpts) GetRstSibling() bool {
  452. if m != nil && m.RstSibling != nil {
  453. return *m.RstSibling
  454. }
  455. return false
  456. }
  457. func (m *CriuOpts) GetInheritFd() []*InheritFd {
  458. if m != nil {
  459. return m.InheritFd
  460. }
  461. return nil
  462. }
  463. func (m *CriuOpts) GetAutoExtMnt() bool {
  464. if m != nil && m.AutoExtMnt != nil {
  465. return *m.AutoExtMnt
  466. }
  467. return false
  468. }
  469. func (m *CriuOpts) GetExtSharing() bool {
  470. if m != nil && m.ExtSharing != nil {
  471. return *m.ExtSharing
  472. }
  473. return false
  474. }
  475. func (m *CriuOpts) GetExtMasters() bool {
  476. if m != nil && m.ExtMasters != nil {
  477. return *m.ExtMasters
  478. }
  479. return false
  480. }
  481. func (m *CriuOpts) GetSkipMnt() []string {
  482. if m != nil {
  483. return m.SkipMnt
  484. }
  485. return nil
  486. }
  487. func (m *CriuOpts) GetEnableFs() []string {
  488. if m != nil {
  489. return m.EnableFs
  490. }
  491. return nil
  492. }
  493. func (m *CriuOpts) GetUnixSkIno() []*UnixSk {
  494. if m != nil {
  495. return m.UnixSkIno
  496. }
  497. return nil
  498. }
  499. func (m *CriuOpts) GetManageCgroupsMode() CriuCgMode {
  500. if m != nil && m.ManageCgroupsMode != nil {
  501. return *m.ManageCgroupsMode
  502. }
  503. return CriuCgMode_IGNORE
  504. }
  505. func (m *CriuOpts) GetGhostLimit() uint32 {
  506. if m != nil && m.GhostLimit != nil {
  507. return *m.GhostLimit
  508. }
  509. return Default_CriuOpts_GhostLimit
  510. }
  511. func (m *CriuOpts) GetIrmapScanPaths() []string {
  512. if m != nil {
  513. return m.IrmapScanPaths
  514. }
  515. return nil
  516. }
  517. func (m *CriuOpts) GetExternal() []string {
  518. if m != nil {
  519. return m.External
  520. }
  521. return nil
  522. }
  523. func (m *CriuOpts) GetEmptyNs() uint32 {
  524. if m != nil && m.EmptyNs != nil {
  525. return *m.EmptyNs
  526. }
  527. return 0
  528. }
  529. func (m *CriuOpts) GetNoSeccomp() bool {
  530. if m != nil && m.NoSeccomp != nil {
  531. return *m.NoSeccomp
  532. }
  533. return false
  534. }
  535. type CriuDumpResp struct {
  536. Restored *bool `protobuf:"varint,1,opt,name=restored" json:"restored,omitempty"`
  537. XXX_unrecognized []byte `json:"-"`
  538. }
  539. func (m *CriuDumpResp) Reset() { *m = CriuDumpResp{} }
  540. func (m *CriuDumpResp) String() string { return proto.CompactTextString(m) }
  541. func (*CriuDumpResp) ProtoMessage() {}
  542. func (m *CriuDumpResp) GetRestored() bool {
  543. if m != nil && m.Restored != nil {
  544. return *m.Restored
  545. }
  546. return false
  547. }
  548. type CriuRestoreResp struct {
  549. Pid *int32 `protobuf:"varint,1,req,name=pid" json:"pid,omitempty"`
  550. XXX_unrecognized []byte `json:"-"`
  551. }
  552. func (m *CriuRestoreResp) Reset() { *m = CriuRestoreResp{} }
  553. func (m *CriuRestoreResp) String() string { return proto.CompactTextString(m) }
  554. func (*CriuRestoreResp) ProtoMessage() {}
  555. func (m *CriuRestoreResp) GetPid() int32 {
  556. if m != nil && m.Pid != nil {
  557. return *m.Pid
  558. }
  559. return 0
  560. }
  561. type CriuNotify struct {
  562. Script *string `protobuf:"bytes,1,opt,name=script" json:"script,omitempty"`
  563. Pid *int32 `protobuf:"varint,2,opt,name=pid" json:"pid,omitempty"`
  564. XXX_unrecognized []byte `json:"-"`
  565. }
  566. func (m *CriuNotify) Reset() { *m = CriuNotify{} }
  567. func (m *CriuNotify) String() string { return proto.CompactTextString(m) }
  568. func (*CriuNotify) ProtoMessage() {}
  569. func (m *CriuNotify) GetScript() string {
  570. if m != nil && m.Script != nil {
  571. return *m.Script
  572. }
  573. return ""
  574. }
  575. func (m *CriuNotify) GetPid() int32 {
  576. if m != nil && m.Pid != nil {
  577. return *m.Pid
  578. }
  579. return 0
  580. }
  581. //
  582. // List of features which can queried via
  583. // CRIU_REQ_TYPE__FEATURE_CHECK
  584. type CriuFeatures struct {
  585. MemTrack *bool `protobuf:"varint,1,opt,name=mem_track" json:"mem_track,omitempty"`
  586. XXX_unrecognized []byte `json:"-"`
  587. }
  588. func (m *CriuFeatures) Reset() { *m = CriuFeatures{} }
  589. func (m *CriuFeatures) String() string { return proto.CompactTextString(m) }
  590. func (*CriuFeatures) ProtoMessage() {}
  591. func (m *CriuFeatures) GetMemTrack() bool {
  592. if m != nil && m.MemTrack != nil {
  593. return *m.MemTrack
  594. }
  595. return false
  596. }
  597. type CriuReq struct {
  598. Type *CriuReqType `protobuf:"varint,1,req,name=type,enum=CriuReqType" json:"type,omitempty"`
  599. Opts *CriuOpts `protobuf:"bytes,2,opt,name=opts" json:"opts,omitempty"`
  600. NotifySuccess *bool `protobuf:"varint,3,opt,name=notify_success" json:"notify_success,omitempty"`
  601. //
  602. // When set service won't close the connection but
  603. // will wait for more req-s to appear. Works not
  604. // for all request types.
  605. KeepOpen *bool `protobuf:"varint,4,opt,name=keep_open" json:"keep_open,omitempty"`
  606. //
  607. // 'features' can be used to query which features
  608. // are supported by the installed criu/kernel
  609. // via RPC.
  610. Features *CriuFeatures `protobuf:"bytes,5,opt,name=features" json:"features,omitempty"`
  611. XXX_unrecognized []byte `json:"-"`
  612. }
  613. func (m *CriuReq) Reset() { *m = CriuReq{} }
  614. func (m *CriuReq) String() string { return proto.CompactTextString(m) }
  615. func (*CriuReq) ProtoMessage() {}
  616. func (m *CriuReq) GetType() CriuReqType {
  617. if m != nil && m.Type != nil {
  618. return *m.Type
  619. }
  620. return CriuReqType_EMPTY
  621. }
  622. func (m *CriuReq) GetOpts() *CriuOpts {
  623. if m != nil {
  624. return m.Opts
  625. }
  626. return nil
  627. }
  628. func (m *CriuReq) GetNotifySuccess() bool {
  629. if m != nil && m.NotifySuccess != nil {
  630. return *m.NotifySuccess
  631. }
  632. return false
  633. }
  634. func (m *CriuReq) GetKeepOpen() bool {
  635. if m != nil && m.KeepOpen != nil {
  636. return *m.KeepOpen
  637. }
  638. return false
  639. }
  640. func (m *CriuReq) GetFeatures() *CriuFeatures {
  641. if m != nil {
  642. return m.Features
  643. }
  644. return nil
  645. }
  646. type CriuResp struct {
  647. Type *CriuReqType `protobuf:"varint,1,req,name=type,enum=CriuReqType" json:"type,omitempty"`
  648. Success *bool `protobuf:"varint,2,req,name=success" json:"success,omitempty"`
  649. Dump *CriuDumpResp `protobuf:"bytes,3,opt,name=dump" json:"dump,omitempty"`
  650. Restore *CriuRestoreResp `protobuf:"bytes,4,opt,name=restore" json:"restore,omitempty"`
  651. Notify *CriuNotify `protobuf:"bytes,5,opt,name=notify" json:"notify,omitempty"`
  652. Ps *CriuPageServerInfo `protobuf:"bytes,6,opt,name=ps" json:"ps,omitempty"`
  653. CrErrno *int32 `protobuf:"varint,7,opt,name=cr_errno" json:"cr_errno,omitempty"`
  654. Features *CriuFeatures `protobuf:"bytes,8,opt,name=features" json:"features,omitempty"`
  655. XXX_unrecognized []byte `json:"-"`
  656. }
  657. func (m *CriuResp) Reset() { *m = CriuResp{} }
  658. func (m *CriuResp) String() string { return proto.CompactTextString(m) }
  659. func (*CriuResp) ProtoMessage() {}
  660. func (m *CriuResp) GetType() CriuReqType {
  661. if m != nil && m.Type != nil {
  662. return *m.Type
  663. }
  664. return CriuReqType_EMPTY
  665. }
  666. func (m *CriuResp) GetSuccess() bool {
  667. if m != nil && m.Success != nil {
  668. return *m.Success
  669. }
  670. return false
  671. }
  672. func (m *CriuResp) GetDump() *CriuDumpResp {
  673. if m != nil {
  674. return m.Dump
  675. }
  676. return nil
  677. }
  678. func (m *CriuResp) GetRestore() *CriuRestoreResp {
  679. if m != nil {
  680. return m.Restore
  681. }
  682. return nil
  683. }
  684. func (m *CriuResp) GetNotify() *CriuNotify {
  685. if m != nil {
  686. return m.Notify
  687. }
  688. return nil
  689. }
  690. func (m *CriuResp) GetPs() *CriuPageServerInfo {
  691. if m != nil {
  692. return m.Ps
  693. }
  694. return nil
  695. }
  696. func (m *CriuResp) GetCrErrno() int32 {
  697. if m != nil && m.CrErrno != nil {
  698. return *m.CrErrno
  699. }
  700. return 0
  701. }
  702. func (m *CriuResp) GetFeatures() *CriuFeatures {
  703. if m != nil {
  704. return m.Features
  705. }
  706. return nil
  707. }
  708. func init() {
  709. proto.RegisterEnum("CriuCgMode", CriuCgMode_name, CriuCgMode_value)
  710. proto.RegisterEnum("CriuReqType", CriuReqType_name, CriuReqType_value)
  711. }