summaryrefslogtreecommitdiff
path: root/vendor/github.com/checkpoint-restore/go-criu/notify.go
diff options
context:
space:
mode:
authorAdrian Reber <areber@redhat.com>2018-10-10 16:54:34 +0000
committerAdrian Reber <adrian@lisas.de>2018-10-23 12:52:03 +0200
commit20b5714f350fa6c8a449b3192c48bdc050ce30a8 (patch)
tree1d774d5a083cf08804e88de471ce34e05a42d265 /vendor/github.com/checkpoint-restore/go-criu/notify.go
parent58a26ac9dcb0d75ca7f061941c1399a28579ed69 (diff)
downloadpodman-20b5714f350fa6c8a449b3192c48bdc050ce30a8.tar.gz
podman-20b5714f350fa6c8a449b3192c48bdc050ce30a8.tar.bz2
podman-20b5714f350fa6c8a449b3192c48bdc050ce30a8.zip
vendor in go-criu and dependencies
Signed-off-by: Adrian Reber <areber@redhat.com>
Diffstat (limited to 'vendor/github.com/checkpoint-restore/go-criu/notify.go')
-rw-r--r--vendor/github.com/checkpoint-restore/go-criu/notify.go63
1 files changed, 63 insertions, 0 deletions
diff --git a/vendor/github.com/checkpoint-restore/go-criu/notify.go b/vendor/github.com/checkpoint-restore/go-criu/notify.go
new file mode 100644
index 000000000..1c8547b43
--- /dev/null
+++ b/vendor/github.com/checkpoint-restore/go-criu/notify.go
@@ -0,0 +1,63 @@
+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
+}