Versions in this module Expand all Collapse all v1 v1.0.1 May 17, 2024 Changes in this version + const CloneFlagsAttr — linux/amd64 + const GidmapAttr — linux/amd64 + const GidmapPathAttr — linux/amd64 + const InitMsg — linux/amd64 + const MakeParentPrivAttr — linux/amd64 + const NsPathsAttr — linux/amd64 + const OomScoreAdjAttr — linux/amd64 + const ParentMountAttr — linux/amd64 + const PrepRootfsAttr — linux/amd64 + const RootfsAttr — linux/amd64 + const RootfsPropAttr — linux/amd64 + const RootlessEUIDAttr — linux/amd64 + const SetgroupAttr — linux/amd64 + const ShiftfsMountsAttr — linux/amd64 + const UidmapAttr — linux/amd64 + const UidmapPathAttr — linux/amd64 + func Cgroupfs(l *LinuxFactory) error — linux/amd64 + func CriuPath(criupath string) func(*LinuxFactory) error — linux/amd64 + func InitArgs(args ...string) func(*LinuxFactory) error — linux/amd64 + func IntelRdtFs(l *LinuxFactory) error — linux/amd64 + func NewgidmapPath(newgidmapPath string) func(*LinuxFactory) error — linux/amd64 + func NewuidmapPath(newuidmapPath string) func(*LinuxFactory) error — linux/amd64 + func RootlessCgroupfs(l *LinuxFactory) error — linux/amd64 + func RootlessSystemdCgroups(l *LinuxFactory) error — linux/amd64 + func Sysbox(sysbox *sysbox.Sysbox) func(*LinuxFactory) error — linux/amd64 + func SystemdCgroups(l *LinuxFactory) error — linux/amd64 + func TmpfsRoot(l *LinuxFactory) error — linux/amd64 + type BaseContainer interface + Config func() configs.Config + Destroy func() error + Exec func() error + ID func() string + OCIState func() (*specs.State, error) + Processes func() ([]int, error) + Run func(process *Process) (err error) + Set func(config configs.Config) error + Signal func(s os.Signal, all bool) error + Start func(process *Process) (err error) + State func() (*State, error) + Stats func() (*Stats, error) + Status func() (Status, error) + 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 interface — linux/amd64 + Checkpoint func(criuOpts *CriuOpts) error + NotifyMemoryPressure func(level PressureLevel) (<-chan struct{}, error) + NotifyOOM func() (<-chan struct{}, error) + Pause func() error + Restore func(process *Process, criuOpts *CriuOpts) error + Resume func() error + type CriuOpts struct — linux/amd64 + AutoDedup bool + EmptyNs uint32 + ExternalUnixConnections bool + FileLocks bool + ImagesDirectory string + LazyPages bool + LeaveRunning bool + 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 Error interface + Code func() ErrorCode + Detail func(w io.Writer) error + type ErrorCode int + const ConfigInvalid + const ConsoleExists + const ContainerNotExists + const ContainerNotPaused + const ContainerNotRunning + const ContainerNotStopped + const ContainerPaused + const IdInUse + const InvalidIdFormat + const NoProcessOps + const SystemError + func (c ErrorCode) String() string + type Factory interface + Create func(id string, config *configs.Config) (Container, error) + Load func(id string) (Container, error) + StartInitialization func() error + Type func() string + func New(root string, options ...func(*LinuxFactory) error) (Factory, error) + 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 LinuxFactory struct — linux/amd64 + CriuPath string + InitArgs []string + InitPath string + NewCgroupsManager func(config *configs.Cgroup, paths map[string]string) cgroups.Manager + NewIntelRdtManager func(config *configs.Config, id string, path string) intelrdt.Manager + NewgidmapPath string + NewuidmapPath string + Root string + Sysbox *sysbox.Sysbox + Validator validate.Validator + func (l *LinuxFactory) Create(id string, config *configs.Config) (Container, error) + func (l *LinuxFactory) Load(id string) (Container, error) + func (l *LinuxFactory) StartInitialization() (err error) + func (l *LinuxFactory) Type() string + 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 + Rlimits []configs.Rlimit + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + 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 + SysFs sysbox.Fs + SysMgr sysbox.Mgr + Sysbox sysbox.Sysbox + type Stats struct — linux/amd64 + CgroupStats *cgroups.Stats + IntelRdtStats *intelrdt.Stats + Interfaces []*types.NetworkInterface + type Status int + const Created + const Paused + const Pausing + const Running + const Stopped + func (s Status) String() string + type VethPairName struct — linux/amd64 + ContainerInterfaceName string + HostInterfaceName string