Versions in this module Expand all Collapse all v0 v0.12.2 Aug 19, 2026 Changes in this version + type Generator struct + func New(spec *rspec.Spec) *Generator + func (g *Generator) AddAnnotation(key, value string) + func (g *Generator) AddDevice(device rspec.LinuxDevice) + func (g *Generator) AddLinuxResourcesDevice(allow bool, devType string, major, minor *int64, access string) + func (g *Generator) AddLinuxResourcesHugepageLimit(pageSize string, limit uint64) + func (g *Generator) AddLinuxResourcesUnified(key, val string) + func (g *Generator) AddLinuxSysctl(key, value string) + func (g *Generator) AddMount(mnt rspec.Mount) + func (g *Generator) AddOrReplaceLinuxNamespace(ns string, path string) error + func (g *Generator) AddPostStartHook(hook rspec.Hook) + func (g *Generator) AddPostStopHook(hook rspec.Hook) + func (g *Generator) AddPreStartHook(hook rspec.Hook) + func (g *Generator) AddProcessEnv(name, value string) + func (g *Generator) ClearMounts() + func (g *Generator) ClearProcessEnv() + func (g *Generator) Mounts() []rspec.Mount + func (g *Generator) RemoveAnnotation(key string) + func (g *Generator) RemoveDevice(path string) + func (g *Generator) RemoveLinuxNamespace(ns string) error + func (g *Generator) RemoveLinuxSysctl(key string) + func (g *Generator) RemoveMount(dest string) + func (g *Generator) SetLinuxCgroupsPath(path string) + func (g *Generator) SetLinuxResourcesCPUCpus(cpus string) + func (g *Generator) SetLinuxResourcesCPUMems(mems string) + func (g *Generator) SetLinuxResourcesCPUPeriod(period uint64) + func (g *Generator) SetLinuxResourcesCPUQuota(quota int64) + func (g *Generator) SetLinuxResourcesCPURealtimePeriod(period uint64) + func (g *Generator) SetLinuxResourcesCPURealtimeRuntime(time int64) + func (g *Generator) SetLinuxResourcesCPUShares(shares uint64) + func (g *Generator) SetLinuxResourcesMemoryLimit(limit int64) + func (g *Generator) SetLinuxResourcesMemorySwap(swap int64) + func (g *Generator) SetLinuxRootPropagation(rp string) error + func (g *Generator) SetProcessArgs(args []string) + func (g *Generator) SetProcessOOMScoreAdj(adj int) + func (g *Generator) Spec() *rspec.Spec