Documentation ¶
Index ¶
- type Criu
- func (c *Criu) Cleanup()
- func (c *Criu) Dump(opts *images.CriuOpts, nfy Notify) error
- func (c *Criu) FeatureCheck(features *images.CriuFeatures) (*images.CriuFeatures, error)
- func (c *Criu) GetCriuVersion() (int, error)
- func (c *Criu) IsCriuAtLeast(version int) (bool, error)
- func (c *Criu) PreDump(opts *images.CriuOpts, nfy Notify) error
- func (c *Criu) Prepare() error
- func (c *Criu) Restore(opts *images.CriuOpts, nfy Notify) error
- func (c *Criu) SetCriuPath(path string)
- func (c *Criu) StartPageServer(opts *images.CriuOpts) error
- func (c *Criu) StartPageServerChld(opts *images.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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Criu ¶
type Criu struct {
// contains filtered or unexported fields
}
Criu struct
func (*Criu) FeatureCheck ¶
func (c *Criu) FeatureCheck(features *images.CriuFeatures) (*images.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) 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
type NoNotify ¶
type NoNotify struct{}
NoNotify struct
func (NoNotify) PostSetupNamespaces ¶
PostSetupNamespaces NoNotify
func (NoNotify) SetupNamespaces ¶
SetupNamespaces NoNotify
Click to show internal directories.
Click to hide internal directories.