docker

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2016 License: LGPL-3.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBox

func NewBox(cfg isolate.BoxConfig) (isolate.Box, error)

NewBox ...

Types

type Box

type Box struct{}

Box ...

func (*Box) Spawn

func (b *Box) Spawn(ctx context.Context, opts isolate.Profile, name, executable string, args, env map[string]string) (isolate.Process, error)

Spawn spawns a prcess using container

func (*Box) Spool

func (b *Box) Spool(ctx context.Context, name string, opts isolate.Profile) (err error)

Spool spools an image with a tag latest

type Profile

type Profile struct {
	Registry   string `json:"registry"`
	Repository string `json:"repository"`
	Endpoint   string `json:"endpoint"`

	NetworkMode container.NetworkMode `json:"network_mode"`
	RuntimePath string                `json:"runtime-path"`
	Cwd         string                `json:"cwd"`
}

Profile describes a Cocaine profile for Docker isolation type

Jump to

Keyboard shortcuts

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