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-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
|
|
|
|
PageServer CriuPageServerInfo // allow to dump to criu page server
|
2015-04-19 09:28:40 +08:00
|
|
|
}
|