Documentation ¶
Overview ¶
This file is derived from opencontainers/runc/tty.go and opencontainers/runc/utils_linux.go (setupIO)
Index ¶
- Constants
- type Container
- func (c *Container) Close() (err error)
- func (c *Container) Destroy() (err error)
- func (c *Container) Exec(process *specs.Process, io run.ContainerIO) (err error)
- func (c *Container) ID() string
- func (c *Container) Rootfs() string
- func (c *Container) Start() (err error)
- func (c *Container) Stop()
- func (c *Container) Wait() (err error)
- type ContainerManager
- type Process
Constants ¶
View Source
const ( RLIMIT_CPU = iota // CPU time in sec RLIMIT_FSIZE // Maximum filesize RLIMIT_DATA // max data size RLIMIT_STACK // max stack size RLIMIT_CORE // max core file size RLIMIT_RSS // max resident set size RLIMIT_NPROC // max number of processes RLIMIT_NOFILE // max number of open files RLIMIT_MEMLOCK // max locked-in-memory address space RLIMIT_AS // address space limit RLIMIT_LOCKS // maximum file locks held RLIMIT_SIGPENDING // max number of pending signals RLIMIT_MSGQUEUE // maximum bytes in POSIX mqueues RLIMIT_NICE // max nice prio allowed to raise to RLIMIT_RTPRIO // maximum realtime priority RLIMIT_RTTIME // timeout for RT tasks in us )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
// contains filtered or unexported fields
}
func LoadContainer ¶
func LoadContainer(id string, factory libcontainer.Factory, loggers log.Loggers) (r *Container, err error)
TODO: Add to ContainerManager interface
func NewContainer ¶
func NewContainer(cfg *run.ContainerConfig, rootless bool, factory libcontainer.Factory, loggers log.Loggers) (r *Container, err error)
func (*Container) Exec ¶
func (c *Container) Exec(process *specs.Process, io run.ContainerIO) (err error)
type ContainerManager ¶
type ContainerManager struct {
// contains filtered or unexported fields
}
func NewContainerManager ¶
func (*ContainerManager) List ¶
func (m *ContainerManager) List() (r []run.ContainerInfo, err error)
func (*ContainerManager) NewContainer ¶
func (m *ContainerManager) NewContainer(cfg *run.ContainerConfig) (c run.Container, err error)
Click to show internal directories.
Click to hide internal directories.