Documentation
¶
Index ¶
- Constants
- Variables
- func Create(cfg CreateConfig) (container *libcontainer.Container, err error)
- func DefaultRuntimeSpec() (s *specs.Spec)
- func GetStatusState(id string) (status libcontainer.Status, state *libcontainer.State, err error)
- func ListContainers() ([]containerState, error)
- func Remove(id string) (err error)
- func Run(container *libcontainer.Container, cfg RunConfig, ctx context.Context) (err error)
- func SetupIO(process *libcontainer.Process) (*tty, error)
- func Stop(id string, timeout int64) (err error)
- func Update(id string, cfg UpdateConfig) (err error)
- type CreateConfig
- type RunConfig
- type UpdateConfig
Constants ¶
View Source
const CONTAINERS_ROOT = "/run/taskc"
Variables ¶
View Source
var NSmap map[configs.NamespaceType]specs.LinuxNamespaceType = map[configs.NamespaceType]specs.LinuxNamespaceType{ configs.NEWPID: specs.PIDNamespace, configs.NEWNET: specs.NetworkNamespace, configs.NEWNS: specs.MountNamespace, configs.NEWIPC: specs.IPCNamespace, configs.NEWUTS: specs.UTSNamespace, configs.NEWUSER: specs.UserNamespace, configs.NEWCGROUP: specs.CgroupNamespace, configs.NEWTIME: specs.TimeNamespace, }
Functions ¶
func Create ¶ added in v0.2.3
func Create(cfg CreateConfig) (container *libcontainer.Container, err error)
func DefaultRuntimeSpec ¶
These default spec settings are modified from https://github.com/containerd/containerd/tree/main/pkg/oci
func GetStatusState ¶ added in v0.2.3
func GetStatusState(id string) (status libcontainer.Status, state *libcontainer.State, err error)
func ListContainers ¶ added in v0.2.3
func ListContainers() ([]containerState, error)
func SetupIO ¶
func SetupIO(process *libcontainer.Process) (*tty, error)
func Update ¶ added in v0.2.3
func Update(id string, cfg UpdateConfig) (err error)
Types ¶
type CreateConfig ¶ added in v0.2.3
type UpdateConfig ¶ added in v0.2.3
Click to show internal directories.
Click to hide internal directories.