github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/runc/libcontainer/criurpc/criurpc.pb.go (about)

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