runcrunner

package
v0.0.0-...-ed4b4ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2018 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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) Get

func (m *ContainerManager) Get(id string) (run.Container, error)

func (*ContainerManager) Kill

func (m *ContainerManager) Kill(id, signal string, all bool) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL