Versions in this module Expand all Collapse all v1 v1.0.1 Apr 30, 2024 Changes in this version + const Bind + const CgroupsReadControlFiles + const CgroupsWriteControlFiles + const CheckpointPagesFileName + const CheckpointStateFileName + const ContMgrCheckpoint + const ContMgrContainerRuntimeState + const ContMgrCreateSubcontainer + const ContMgrCreateTraceSession + const ContMgrDeleteTraceSession + const ContMgrDestroySubcontainer + const ContMgrEvent + const ContMgrExecuteAsync + const ContMgrListTraceSessions + const ContMgrMount + const ContMgrPortForward + const ContMgrProcesses + const ContMgrProcfsDump + const ContMgrRestore + const ContMgrRestoreSubcontainer + const ContMgrRootContainerStart + const ContMgrSignal + const ContMgrStartSubcontainer + const ContMgrWait + const ContMgrWaitPID + const DebugStacks + const LifecyclePause + const LifecycleResume + const LoggingChange + const MetricsExport + const MetricsGetRegistered + const MountPrefix + const NetworkCreateLinksAndRoutes + const Nonefs + const ProfileBlock + const ProfileCPU + const ProfileHeap + const ProfileMutex + const ProfileTrace + const RootfsPrefix + const SelfFilestorePrefix + const UsageCollect + const UsageUsageFD + var DefaultLoopbackLink = LoopbackLink + func EnableAutosave(l *Loader, f *os.File, isResume bool) error + func ParseMountOptions(opts []string) *vfs.MountOptions + func SelfFilestorePath(mountSrc, sandboxID string) string + type Args struct + Conf *config.Config + ControllerFD int + DevGoferFD int + Device *fd.FD + ExecFD int + GoferFDs []int + GoferFilestoreFDs []int + GoferMountConfs []GoferMountConf + ID string + NumCPU int + NvidiaDriverVersion string + PassFDs []FDMapping + PodInitConfigFD int + ProductName string + ProfileOpts profile.Opts + SinkFDs []int + Spec *specs.Spec + StdioFDs []int + TotalHostMem uint64 + TotalMem uint64 + UserLogFD int + type BindOpt int + const BindRunsc + const BindSentry + type CPU struct + Usage CPUUsage + type CPUUsage struct + Kernel uint64 + PerCPU []uint64 + Total uint64 + User uint64 + type ContainerRuntimeState int + const RuntimeStateCreating + const RuntimeStateInvalid + const RuntimeStateRunning + const RuntimeStateStopped + type CreateArgs struct + CID string + type CreateLinksAndRoutesArgs struct + Defaultv4Gateway DefaultRoute + Defaultv6Gateway DefaultRoute + FDBasedLinks []FDBasedLink + LogPackets bool + LoopbackLinks []LoopbackLink + NATBlob bool + PCAP bool + XDPLinks []XDPLink + type CreateTraceSessionArgs struct + Config seccheck.SessionConfig + Force bool + type DefaultRoute struct + Name string + Route Route + type Event struct + Data Stats + ID string + Type string + type EventOut struct + ContainerUsage map[string]uint64 + Event Event + type FDBasedLink struct + Addresses []IPWithPrefix + GSOMaxSize uint32 + GVisorGRO bool + GVisorGSOEnabled bool + InterfaceIndex int + LinkAddress net.HardwareAddr + MTU int + Name string + Neighbors []Neighbor + NumChannels int + ProcessorsPerChannel int + QDisc config.QueueingDiscipline + RXChecksumOffload bool + Routes []Route + TXChecksumOffload bool + type FDMapping struct + Guest int + Host int + type GoferMountConf struct + Lower GoferMountConfLowerType + Upper GoferMountConfUpperType + func (g *GoferMountConf) Set(v string) error + func (g GoferMountConf) IsFilestorePresent() bool + func (g GoferMountConf) IsSelfBacked() bool + func (g GoferMountConf) ShouldUseErofs() bool + func (g GoferMountConf) ShouldUseLisafs() bool + func (g GoferMountConf) ShouldUseOverlayfs() bool + func (g GoferMountConf) ShouldUseTmpfs() bool + func (g GoferMountConf) String() string + type GoferMountConfFlags []GoferMountConf + func (g *GoferMountConfFlags) Get() any + func (g *GoferMountConfFlags) GetArray() []GoferMountConf + func (g *GoferMountConfFlags) Set(s string) error + func (g *GoferMountConfFlags) String() string + type GoferMountConfLowerType byte + const Erofs + const Lisafs + const LowerMax + const NoneLower + func (l *GoferMountConfLowerType) Set(v string) error + func (l GoferMountConfLowerType) String() string + type GoferMountConfUpperType byte + const AnonOverlay + const MemoryOverlay + const NoOverlay + const SelfOverlay + const UpperMax + func (u *GoferMountConfUpperType) Set(v string) error + func (u GoferMountConfUpperType) String() string + type IPWithPrefix struct + Address net.IP + PrefixLen int + func (ip IPWithPrefix) String() string + type InitConfig struct + TraceSession seccheck.SessionConfig + func LoadInitConfig(path string) (*InitConfig, error) + func (c *InitConfig) Setup() ([]*os.File, error) + type Loader struct + PreSeccompCallback func() + func New(args Args) (*Loader, error) + func (l *Loader) Destroy() + func (l *Loader) Run() error + func (l *Loader) WaitExit() linux.WaitStatus + func (l *Loader) WaitForStartSignal() + type LoopbackLink struct + Addresses []IPWithPrefix + GVisorGRO bool + Name string + Routes []Route + type Memory struct + Cache uint64 + Kernel MemoryEntry + KernelTCP MemoryEntry + Raw map[string]uint64 + Swap MemoryEntry + Usage MemoryEntry + type MemoryEntry struct + Failcnt uint64 + Limit uint64 + Max uint64 + Usage uint64 + type MountArgs struct + ContainerID string + Destination string + FsType string + Source string + type MountHint struct + Mount specs.Mount + Name string + Share ShareType + func (m *MountHint) ShouldShareMount() bool + type Neighbor struct + HardwareAddr net.HardwareAddr + IP net.IP + type Network struct + Kernel *kernel.Kernel + Stack *stack.Stack + func (n *Network) CreateLinksAndRoutes(args *CreateLinksAndRoutesArgs, _ *struct{}) error + type NetworkInterface struct + Name string + RxBytes uint64 + RxDropped uint64 + RxErrors uint64 + RxPackets uint64 + TxBytes uint64 + TxDropped uint64 + TxErrors uint64 + TxPackets uint64 + type Pids struct + Current uint64 + Limit uint64 + type PodMountHints struct + Mounts map[string]*MountHint + func NewPodMountHints(spec *specs.Spec) (*PodMountHints, error) + func (p *PodMountHints) FindMount(mountSrc string) *MountHint + type PortForwardOpts struct + ContainerID string + Port uint16 + type RestoreOpts struct + HaveDeviceFile bool + HavePagesFile bool + type RootfsHint struct + Mount specs.Mount + Overlay config.OverlayMedium + func NewRootfsHint(spec *specs.Spec) (*RootfsHint, error) + type Route struct + Destination net.IPNet + Gateway net.IP + func (r *Route) Empty() bool + type ShareType int + func (s ShareType) String() string + type SignalArgs struct + CID string + Mode SignalDeliveryMode + PID int32 + Signo int32 + type SignalDeliveryMode int + const DeliverToAllProcesses + const DeliverToForegroundProcessGroup + const DeliverToProcess + func (s SignalDeliveryMode) String() string + type StartArgs struct + CID string + Conf *config.Config + GoferMountConfs []GoferMountConf + IsDevIoFilePresent bool + NumGoferFilestoreFDs int + Spec *specs.Spec + type Stats struct + CPU CPU + Memory Memory + NetworkInterfaces []*NetworkInterface + Pids Pids + type WaitPIDArgs struct + CID string + PID int32 + type XDPLink struct + Addresses []IPWithPrefix + Bind BindOpt + GVisorGRO bool + InterfaceIndex int + LinkAddress net.HardwareAddr + MTU int + Name string + Neighbors []Neighbor + NumChannels int + QDisc config.QueueingDiscipline + RXChecksumOffload bool + Routes []Route + TXChecksumOffload bool