Documentation ¶
Index ¶
- type ContainerManager
- func (m *ContainerManager) Exist(id string) (e bool, err error)
- func (m *ContainerManager) Get(id string) (run.Container, error)
- func (m *ContainerManager) Kill(id string, signal os.Signal, all bool) error
- func (m *ContainerManager) List() (r []run.ContainerInfo, err error)
- func (m *ContainerManager) NewContainer(cfg *run.ContainerConfig) (run.Container, error)
- type RuncContainer
- func (c *RuncContainer) Close() (err error)
- func (c *RuncContainer) Destroy() (err error)
- func (c *RuncContainer) Exec(process *specs.Process, io run.ContainerIO) (proc run.Process, 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
- type RuncProcess
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) (proc run.Process, err error)
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
type RuncProcess ¶
type RuncProcess struct {
// contains filtered or unexported fields
}
func NewRuncProcess ¶
func NewRuncProcess(args []string, terminal bool, io run.ContainerIO, debug log.Logger) (c *RuncProcess)
func (*RuncProcess) Close ¶
func (c *RuncProcess) Close() (err error)
func (*RuncProcess) Start ¶
func (c *RuncProcess) Start() (err error)
func (*RuncProcess) Stop ¶
func (c *RuncProcess) Stop()
func (*RuncProcess) Wait ¶
func (c *RuncProcess) Wait() error
Click to show internal directories.
Click to hide internal directories.