Documentation ¶
Index ¶
- type ContainerManager
- type RuncContainer
- func (c *RuncContainer) Close() (err error)
- func (c *RuncContainer) Destroy() (err error)
- func (c *RuncContainer) Exec(process *specs.Process, io run.ContainerIO) (err error)
- func (c *RuncContainer) ID() string
- func (c *RuncContainer) Rootfs() string
- func (c *RuncContainer) Start() (err error)
- func (c *RuncContainer) Stop()
- func (c *RuncContainer) Wait() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerManager ¶
type ContainerManager struct {
// contains filtered or unexported fields
}
func NewContainerManager ¶
func NewContainerManager(rootDir string, loggers log.Loggers) (*ContainerManager, error)
func (*ContainerManager) List ¶
func (m *ContainerManager) List() (r []run.ContainerInfo, err error)
func (*ContainerManager) NewContainer ¶
func (m *ContainerManager) NewContainer(cfg *run.ContainerConfig) (run.Container, error)
type RuncContainer ¶
type RuncContainer struct {
// contains filtered or unexported fields
}
func NewRuncContainer ¶
func NewRuncContainer(cfg *run.ContainerConfig, rootDir string, debug log.FieldLogger) (c *RuncContainer, err error)
func (*RuncContainer) Close ¶
func (c *RuncContainer) Close() (err error)
func (*RuncContainer) Destroy ¶
func (c *RuncContainer) Destroy() (err error)
func (*RuncContainer) Exec ¶
func (c *RuncContainer) Exec(process *specs.Process, io run.ContainerIO) (err error)
TODO: implement model to runc parameter transformation
func (*RuncContainer) ID ¶
func (c *RuncContainer) ID() string
func (*RuncContainer) Rootfs ¶
func (c *RuncContainer) Rootfs() string
func (*RuncContainer) Start ¶
func (c *RuncContainer) Start() (err error)
func (*RuncContainer) Stop ¶
func (c *RuncContainer) Stop()
func (*RuncContainer) Wait ¶
func (c *RuncContainer) Wait() error
Click to show internal directories.
Click to hide internal directories.