runcrunner

package
v0.7.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 16 Imported by: 1

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

func (m *ContainerManager) Exist(id string) (e bool, err error)

func (*ContainerManager) Get

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

func (*ContainerManager) Kill

func (m *ContainerManager) Kill(id string, signal os.Signal, 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) (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

Jump to

Keyboard shortcuts

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