engine

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2017 License: Apache-2.0 Imports: 15 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

This section is empty.

Types

type Container

type Container struct {
	Docker *docker.Client
	Exit   <-chan struct{}
	ID     string
	// contains filtered or unexported fields
}

func NewContainer

func NewContainer(docker *docker.Client, config *container.Config, hostConfig *container.HostConfig) (*Container, error)

func (*Container) Close

func (c *Container) Close() error

func (*Container) CloseAfterStream

func (c *Container) CloseAfterStream(stream *Stream) error

func (*Container) Commit

func (c *Container) Commit(ref string) (imageID string, err error)

func (*Container) CopyFrom

func (c *Container) CopyFrom(path string) (Stream, error)

func (*Container) CopyTo

func (c *Container) CopyTo(stream Stream, path string) error

func (*Container) ExtractTo

func (c *Container) ExtractTo(tar io.Reader, path string) error

func (*Container) Start

func (c *Container) Start(logPrefix string, logs io.Writer) (status int64, err error)

type Image

type Image struct {
	Docker *docker.Client
	Exit   <-chan struct{}
}

func (*Image) Build

func (i *Image) Build(tag string, dockerfile Stream) <-chan ui.Progress

func (*Image) Pull

func (i *Image) Pull(image string) <-chan ui.Progress

type Stream

type Stream struct {
	io.ReadCloser
	Size int64
}

func NewStream

func NewStream(data io.ReadCloser, size int64) Stream

func (Stream) Out

func (s Stream) Out(dst io.Writer) error

Jump to

Keyboard shortcuts

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