2015-04-19 09:28:40 +08:00
|
|
|
package libcontainer
|
|
|
|
|
2015-04-24 04:16:47 +08:00
|
|
|
type CriuPageServerInfo struct {
|
|
|
|
Address string // IP address of CRIU page server
|
|
|
|
Port int32 // port number of CRIU page server
|
|
|
|
}
|
|
|
|
|
2015-08-25 00:26:39 +08:00
|
|
|
type VethPairName struct {
|
|
|
|
ContainerInterfaceName string
|
|
|
|
HostInterfaceName string
|
|
|
|
}
|
|
|
|
|
2015-04-19 09:28:40 +08:00
|
|
|
type CriuOpts struct {
|
2015-04-24 23:13:15 +08:00
|
|
|
ImagesDirectory string // directory for storing image files
|
|
|
|
WorkDirectory string // directory to cd and write logs/pidfiles/stats to
|
|
|
|
LeaveRunning bool // leave container in running state after checkpoint
|
|
|
|
TcpEstablished bool // checkpoint/restore established TCP connections
|
|
|
|
ExternalUnixConnections bool // allow external unix connections
|
|
|
|
ShellJob bool // allow to dump and restore shell jobs
|
2015-06-27 17:56:24 +08:00
|
|
|
FileLocks bool // handle file locks, for safety
|
2015-04-24 23:13:15 +08:00
|
|
|
PageServer CriuPageServerInfo // allow to dump to criu page server
|
2015-08-25 00:26:39 +08:00
|
|
|
VethPairs []VethPairName // pass the veth to criu when restore
|
2015-04-19 09:28:40 +08:00
|
|
|
}
|