docker

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2016 License: LGPL-3.0 Imports: 16 Imported by: 1

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 {
	// contains filtered or unexported fields
}

Box ...

func (*Box) Close added in v0.1.5

func (v *Box) Close() error

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