mirror of
https://github.com/opencontainers/runc.git
synced 2025-10-29 10:12:34 +08:00
This updates to the latest version of go-criu (4.0.2) which is based on CRIU 3.14. As go-criu provides an existing way to query the CRIU binary for its version this also removes all the code from runc to handle CRIU version checking and now relies on go-criu. An important side effect of this change is that this raises the minimum CRIU version to 3.0.0 as that is the first CRIU version that supports CRIU version queries via RPC in contrast to parsing the output of 'criu --version' CRIU 3.0 has been released in April of 2017. Signed-off-by: Adrian Reber <areber@redhat.com>
64 lines
1.0 KiB
Go
64 lines
1.0 KiB
Go
package criu
|
|
|
|
//Notify interface
|
|
type Notify interface {
|
|
PreDump() error
|
|
PostDump() error
|
|
PreRestore() error
|
|
PostRestore(pid int32) error
|
|
NetworkLock() error
|
|
NetworkUnlock() error
|
|
SetupNamespaces(pid int32) error
|
|
PostSetupNamespaces() error
|
|
PostResume() error
|
|
}
|
|
|
|
// NoNotify struct
|
|
type NoNotify struct {
|
|
}
|
|
|
|
// PreDump NoNotify
|
|
func (c NoNotify) PreDump() error {
|
|
return nil
|
|
}
|
|
|
|
// PostDump NoNotify
|
|
func (c NoNotify) PostDump() error {
|
|
return nil
|
|
}
|
|
|
|
// PreRestore NoNotify
|
|
func (c NoNotify) PreRestore() error {
|
|
return nil
|
|
}
|
|
|
|
// PostRestore NoNotify
|
|
func (c NoNotify) PostRestore(pid int32) error {
|
|
return nil
|
|
}
|
|
|
|
// NetworkLock NoNotify
|
|
func (c NoNotify) NetworkLock() error {
|
|
return nil
|
|
}
|
|
|
|
// NetworkUnlock NoNotify
|
|
func (c NoNotify) NetworkUnlock() error {
|
|
return nil
|
|
}
|
|
|
|
// SetupNamespaces NoNotify
|
|
func (c NoNotify) SetupNamespaces(pid int32) error {
|
|
return nil
|
|
}
|
|
|
|
// PostSetupNamespaces NoNotify
|
|
func (c NoNotify) PostSetupNamespaces() error {
|
|
return nil
|
|
}
|
|
|
|
// PostResume NoNotify
|
|
func (c NoNotify) PostResume() error {
|
|
return nil
|
|
}
|