2020-08-10 17:43:49 +00:00
|
|
|
package criu
|
|
|
|
|
2021-04-14 18:11:13 +00:00
|
|
|
// Notify interface
|
2020-08-10 17:43:49 +00:00
|
|
|
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
|
2021-04-14 18:11:13 +00:00
|
|
|
type NoNotify struct{}
|
2020-08-10 17:43:49 +00:00
|
|
|
|
|
|
|
// 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
|
|
|
|
}
|