podman/vendor/github.com/checkpoint-restore/go-criu
Daniel J Walsh 1896f16a55
Vendor in latest containers/storage
We need this to start testing metacopy up for podman.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2018-10-26 11:17:27 -04:00
..
rpc vendor in go-criu and dependencies 2018-10-23 12:52:03 +02:00
LICENSE vendor in go-criu and dependencies 2018-10-23 12:52:03 +02:00
main.go vendor in go-criu and dependencies 2018-10-23 12:52:03 +02:00
notify.go vendor in go-criu and dependencies 2018-10-23 12:52:03 +02:00
README.md vendor in go-criu and dependencies 2018-10-23 12:52:03 +02:00

master

go-criu -- Go bindings for CRIU

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.