runc

package
v0.0.0-...-7735c78 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply(spec *specs.Spec, opts ...SpecOption)

func DefaultSpec

func DefaultSpec() *specs.Spec

Types

type Runc

type Runc struct {
	// contains filtered or unexported fields
}

func New

func New() *Runc

func (*Runc) Create

func (r *Runc) Create(id, bundlePath, pidPath string) error

stdout,stderr cannot be extracted from execution or the command will hang indefinitely

func (*Runc) DeleteContainer

func (r *Runc) DeleteContainer(id string)

func (*Runc) HasContainer

func (r *Runc) HasContainer(id string) (bool, error)

func (*Runc) Start

func (r *Runc) Start(id string) error

type SpecOption

type SpecOption func(*specs.Spec)

func AppendMounts

func AppendMounts(mounts []specs.Mount) SpecOption

func PrependMounts

func PrependMounts(mounts []specs.Mount) SpecOption

func RemoveMount

func RemoveMount(mountSrc string) SpecOption

Jump to

Keyboard shortcuts

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