aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/checkpoint-restore/go-criu/README.md
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/README.md
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/README.md')
-rw-r--r--vendor/github.com/checkpoint-restore/go-criu/README.md27
1 files changed, 27 insertions, 0 deletions
diff --git a/vendor/github.com/checkpoint-restore/go-criu/README.md b/vendor/github.com/checkpoint-restore/go-criu/README.md
new file mode 100644
index 000000000..a79b4d7fb
--- /dev/null
+++ b/vendor/github.com/checkpoint-restore/go-criu/README.md
@@ -0,0 +1,27 @@
+[![master](https://travis-ci.org/checkpoint-restore/go-criu.svg?branch=master)](https://travis-ci.org/checkpoint-restore/go-criu)
+
+## go-criu -- Go bindings for [CRIU](https://criu.org/)
+
+This repository provides Go bindings for CRIU. The code is based on the Go based PHaul
+implementation from the CRIU repository. For easier inclusion into other Go projects the
+CRIU Go bindings have been moved to this repository.
+
+The Go bindings provide an easy way to use the CRIU RPC calls from Go without the need
+to set up all the infrastructure to make the actual RPC connection to CRIU.
+
+The following example would print the version of CRIU:
+```
+ c := criu.MakeCriu()
+ version, err := c.GetCriuVersion()
+ fmt.Println(version)
+```
+or to just check if at least a certain CRIU version is installed:
+```
+ c := criu.MakeCriu()
+ result, err := c.IsCriuAtLeast(31100)
+```
+
+### License
+
+The license of go-criu is the Apache 2.0 license.
+