package criu
import "github.com/checkpoint-restore/go-criu/v5"
Index ¶
- type Criu
- func MakeCriu() *Criu
- func (c *Criu) Cleanup()
- func (c *Criu) Dump(opts *rpc.CriuOpts, nfy Notify) error
- func (c *Criu) FeatureCheck(features *rpc.CriuFeatures) (*rpc.CriuFeatures, error)
- func (c *Criu) GetCriuVersion() (int, error)
- func (c *Criu) IsCriuAtLeast(version int) (bool, error)
- func (c *Criu) PreDump(opts *rpc.CriuOpts, nfy Notify) error
- func (c *Criu) Prepare() error
- func (c *Criu) Restore(opts *rpc.CriuOpts, nfy Notify) error
- func (c *Criu) SetCriuPath(path string)
- func (c *Criu) StartPageServer(opts *rpc.CriuOpts) error
- func (c *Criu) StartPageServerChld(opts *rpc.CriuOpts) (int, int, error)
- type NoNotify
- func (c NoNotify) NetworkLock() error
- func (c NoNotify) NetworkUnlock() error
- func (c NoNotify) PostDump() error
- func (c NoNotify) PostRestore(pid int32) error
- func (c NoNotify) PostResume() error
- func (c NoNotify) PostSetupNamespaces() error
- func (c NoNotify) PreDump() error
- func (c NoNotify) PreRestore() error
- func (c NoNotify) SetupNamespaces(pid int32) error
- type Notify
Types ¶
type Criu ¶
type Criu struct {
// contains filtered or unexported fields
}
Criu struct
func MakeCriu ¶
func MakeCriu() *Criu
MakeCriu returns the Criu object required for most operations
func (*Criu) Cleanup ¶
func (c *Criu) Cleanup()
Cleanup cleans up
func (*Criu) Dump ¶
Dump dumps a process
func (*Criu) FeatureCheck ¶
func (c *Criu) FeatureCheck(features *rpc.CriuFeatures) (*rpc.CriuFeatures, error)
func (*Criu) GetCriuVersion ¶
GetCriuVersion executes the VERSION RPC call and returns the version as an integer. Major * 10000 + Minor * 100 + SubLevel
func (*Criu) IsCriuAtLeast ¶
IsCriuAtLeast checks if the version is at least the same as the parameter version
func (*Criu) PreDump ¶
PreDump does a pre-dump
func (*Criu) Prepare ¶
Prepare sets up everything for the RPC communication to CRIU
func (*Criu) Restore ¶
Restore restores a process
func (*Criu) SetCriuPath ¶
SetCriuPath allows setting the path to the CRIU binary if it is in a non standard location
func (*Criu) StartPageServer ¶
StartPageServer starts the page server
func (*Criu) StartPageServerChld ¶
StartPageServerChld starts the page server and returns PID and port
type NoNotify ¶
type NoNotify struct{}
NoNotify struct
func (NoNotify) NetworkLock ¶
NetworkLock NoNotify
func (NoNotify) NetworkUnlock ¶
NetworkUnlock NoNotify
func (NoNotify) PostDump ¶
PostDump NoNotify
func (NoNotify) PostRestore ¶
PostRestore NoNotify
func (NoNotify) PostResume ¶
PostResume NoNotify
func (NoNotify) PostSetupNamespaces ¶
PostSetupNamespaces NoNotify
func (NoNotify) PreDump ¶
PreDump NoNotify
func (NoNotify) PreRestore ¶
PreRestore NoNotify
func (NoNotify) SetupNamespaces ¶
SetupNamespaces NoNotify
type Notify ¶
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 }
Notify interface
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
magic | |
phaul | |
rpc | |
stats | |
test | |
test/phaul |
- Version
- v5.3.0 (latest)
- Published
- Dec 19, 2021
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 2 weeks ago –
Tools for package owners.