Versions in this module Expand all Collapse all v1 v1.1.11 Jan 21, 2024 Changes in this version + const CloneFlagsAttr — linux/amd64 + const GidmapAttr — linux/amd64 + const GidmapPathAttr — linux/amd64 + const InitMsg — linux/amd64 + const NsPathsAttr — linux/amd64 + const OomScoreAdjAttr — linux/amd64 + const RootlessEUIDAttr — linux/amd64 + const SetgroupAttr — linux/amd64 + const TimeOffsetsAttr — linux/amd64 + const UidmapAttr — linux/amd64 + const UidmapPathAttr — linux/amd64 + var ErrCriuMissingFeatures = errors.New("criu is missing features") — linux/amd64 + var ErrExist = errors.New("container with given ID already exists") + var ErrInvalidID = errors.New("invalid container ID format") + var ErrNotExist = errors.New("container does not exist") + var ErrNotPaused = errors.New("container not paused") + var ErrNotRunning = errors.New("container not running") + var ErrPaused = errors.New("container paused") + var ErrRunning = errors.New("container still running") + func Init() — linux/amd64 + type BaseState struct + Config configs.Config + Created time.Time + ID string + InitProcessPid int + InitProcessStartTime uint64 + type Boolmsg struct — linux/amd64 + Type uint16 + Value bool + func (msg *Boolmsg) Len() int + func (msg *Boolmsg) Serialize() []byte + type Bytemsg struct — linux/amd64 + Type uint16 + Value []byte + func (msg *Bytemsg) Len() int + func (msg *Bytemsg) Serialize() []byte + type Container struct — linux/amd64 + func Create(root, id string, config *configs.Config) (*Container, error) + func Load(root, id string) (*Container, error) + func (c *Container) Checkpoint(criuOpts *CriuOpts) error + func (c *Container) Config() configs.Config + func (c *Container) Destroy() error + func (c *Container) Exec() error + func (c *Container) ID() string + func (c *Container) NotifyMemoryPressure(level PressureLevel) (<-chan struct{}, error) + func (c *Container) NotifyOOM() (<-chan struct{}, error) + func (c *Container) OCIState() (*specs.State, error) + func (c *Container) Pause() error + func (c *Container) Processes() ([]int, error) + func (c *Container) Restore(process *Process, criuOpts *CriuOpts) error + func (c *Container) Resume() error + func (c *Container) Run(process *Process) error + func (c *Container) Set(config configs.Config) error + func (c *Container) Signal(s os.Signal) error + func (c *Container) Start(process *Process) error + func (c *Container) State() (*State, error) + func (c *Container) Stats() (*Stats, error) + func (c *Container) Status() (Status, error) + type CriuOpts struct — linux/amd64 + AutoDedup bool + EmptyNs uint32 + ExternalUnixConnections bool + FileLocks bool + ImagesDirectory string + LazyPages bool + LeaveRunning bool + LsmMountContext string + LsmProfile string + ManageCgroupsMode criu.CriuCgMode + PageServer CriuPageServerInfo + ParentImage string + PreDump bool + ShellJob bool + StatusFd int + TcpEstablished bool + VethPairs []VethPairName + WorkDirectory string + type CriuPageServerInfo struct — linux/amd64 + Address string + Port int32 + type IO struct + Stderr io.ReadCloser + Stdin io.WriteCloser + Stdout io.ReadCloser + type Int32msg struct — linux/amd64 + Type uint16 + Value uint32 + func (msg *Int32msg) Len() int + func (msg *Int32msg) Serialize() []byte + type PressureLevel uint — linux/amd64 + const CriticalPressure + const LowPressure + const MediumPressure + type Process struct + AdditionalGroups []string + AppArmorProfile string + Args []string + Capabilities *configs.Capabilities + ConsoleHeight uint16 + ConsoleSocket *os.File + ConsoleWidth uint16 + Cwd string + Env []string + ExtraFiles []*os.File + Init bool + Label string + LogLevel string + NoNewPrivileges *bool + PidfdSocket *os.File + Rlimits []configs.Rlimit + Scheduler *configs.Scheduler + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + SubCgroupPaths map[string]string + User string + func (p *Process) InitializeIO(rootuid, rootgid int) (i *IO, err error) + func (p Process) Pid() (int, error) + func (p Process) Signal(sig os.Signal) error + func (p Process) Wait() (*os.ProcessState, error) + type State struct — linux/amd64 + CgroupPaths map[string]string + ExternalDescriptors []string + IntelRdtPath string + NamespacePaths map[configs.NamespaceType]string + Rootless bool + type Stats struct — linux/amd64 + CgroupStats *cgroups.Stats + IntelRdtStats *intelrdt.Stats + Interfaces []*types.NetworkInterface + type Status int + const Created + const Paused + const Running + const Stopped + func (s Status) String() string + type VethPairName struct — linux/amd64 + ContainerInterfaceName string + HostInterfaceName string