Versions in this module Expand all Collapse all v0 v0.4.0 Nov 7, 2026 Changes in this version + const MountsFile + const PELazy + const PEParent + const PEPresent + var ErrParentMismatch = errors.New("criu: delta was taken over a checkpoint this home does not hold") + var MinVersion = [2]int + var PageSize = uint64(os.Getpagesize()) + func DumpMounts(pid int, dir string) ([]string, error) + func FindPagemaps(dir string) ([]string, error) + func HasDelta(dir string) bool + func ImageBytes(dir string) (uint64, error) + func MergeDelta(dir string, parent *Parent) error + func MountPoints(mountinfo string) []string + func OwnMountNS(pid int) bool + func RestoreMounts(dir, root string) ([]string, error) + func SocketInode(pid, fd int) (string, error) + type After int + const Kill + const LeaveRunning + const LeaveStopped + type Commander interface + Output func(ctx context.Context, args []string) ([]byte, error) + Start func(args []string, files []*os.File, cgroupFD int) (Process, error) + type DeltaInfo struct + Files []string + KeptPages uint64 + PageSize uint64 + ParentSHA256 string + TotalPages uint64 + func ComputeDelta(dir string, parent *Parent) (DeltaInfo, error) + func ReadDeltaInfo(dir string) (DeltaInfo, error) + func (d DeltaInfo) DeltaBytes() uint64 + type Options struct + Bin string + Commander Commander + Wrap []string + func (o Options) Available(ctx context.Context) error + func (o Options) DumpWith(ctx context.Context, pid int, dir string, after After, extra []string) error + func (o Options) RestoreWith(ctx context.Context, dir string, cgroupFD int, extra []string, ...) (*Restored, error) + type Pagemap struct + Entries []PagemapEntry + Header []byte + PagesID uint32 + Path string + func ReadPagemap(path string) (*Pagemap, error) + func (p *Pagemap) PagesFile() string + type PagemapEntry struct + Flags uint32 + NrPages uint64 + VAddr uint64 + type Parent struct + Dir string + func LoadParent(dir string) (*Parent, error) + func (p *Parent) Close() + func (p *Parent) SHA256() string + type Process interface + Kill func() error + Pid func() int + Wait func() error + type Restored struct + PID int + Process Process + func (r *Restored) Wait() error v0.4.0-rc.1 Nov 6, 2026