engine

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2017 License: Apache-2.0 Imports: 16 Imported by: 0

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{}
	CheckInterval <-chan time.Time
	// contains filtered or unexported fields
}

func NewContainer

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

func (*Container) Background added in v0.14.0

func (c *Container) Background() 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) HealthCheck added in v0.14.0

func (c *Container) HealthCheck() <-chan string

func (*Container) ID

func (c *Container) ID() string

func (*Container) Start

func (c *Container) Start(logPrefix string, logs io.Writer, restart <-chan time.Time) (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