Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/niedbalski/gocriu
Go bindings for checkpoint/restore functionality for Linux in userspace. (http://criu.org/)
https://github.com/niedbalski/gocriu
Last synced: about 1 month ago
JSON representation
Go bindings for checkpoint/restore functionality for Linux in userspace. (http://criu.org/)
- Host: GitHub
- URL: https://github.com/niedbalski/gocriu
- Owner: niedbalski
- License: bsd-2-clause
- Created: 2015-03-11T18:21:54.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-11T18:53:33.000Z (almost 10 years ago)
- Last Synced: 2024-10-15T08:32:45.758Z (3 months ago)
- Language: Go
- Size: 148 KB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Golang CRIU ( http://criu.org )
=================================This package is not official, just an experimental package
for interact with the rpc/protobuf criu service.# How to use this library
First you need a running criu server
```bash
$ sudo criu service -vvv -W criu -o service.log -b -x --address /tmp/criu.socket -j --shell-job
```Then you can write a Go client, as an example:
```go
package mainimport (
gocriu "github.com/niedbalski/gocriu"
"os"
"fmt"
"strconv"
)func main() {
criu, _ := gocriu.CriuClient("/tmp/criu.socket", "/tmp/pid_dump", true)dumped, err := criu.Dump(pid)
if err != nil {
panic(err)
}fmt.Println(dumped)
restored, err := criu.Restore(pid) // Restore the PID
if err != nil {
panic(err)
}fmt.Println(restored)
}```
# Todo
* Test
* Documentation