notify.go 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. package criu
  2. // Notify interface
  3. type Notify interface {
  4. PreDump() error
  5. PostDump() error
  6. PreRestore() error
  7. PostRestore(pid int32) error
  8. NetworkLock() error
  9. NetworkUnlock() error
  10. SetupNamespaces(pid int32) error
  11. PostSetupNamespaces() error
  12. PostResume() error
  13. }
  14. // NoNotify struct
  15. type NoNotify struct{}
  16. // PreDump NoNotify
  17. func (c NoNotify) PreDump() error {
  18. return nil
  19. }
  20. // PostDump NoNotify
  21. func (c NoNotify) PostDump() error {
  22. return nil
  23. }
  24. // PreRestore NoNotify
  25. func (c NoNotify) PreRestore() error {
  26. return nil
  27. }
  28. // PostRestore NoNotify
  29. func (c NoNotify) PostRestore(pid int32) error {
  30. return nil
  31. }
  32. // NetworkLock NoNotify
  33. func (c NoNotify) NetworkLock() error {
  34. return nil
  35. }
  36. // NetworkUnlock NoNotify
  37. func (c NoNotify) NetworkUnlock() error {
  38. return nil
  39. }
  40. // SetupNamespaces NoNotify
  41. func (c NoNotify) SetupNamespaces(pid int32) error {
  42. return nil
  43. }
  44. // PostSetupNamespaces NoNotify
  45. func (c NoNotify) PostSetupNamespaces() error {
  46. return nil
  47. }
  48. // PostResume NoNotify
  49. func (c NoNotify) PostResume() error {
  50. return nil
  51. }