Version: v0.5.7 Latest Latest

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

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




This section is empty.


This section is empty.


This section is empty.


type Executor

type Executor interface {
	// SetContext sets the context for subsequent calls.

	// LoadConfig loads the configuration into the executor.
	LoadConfig(*config.Config) error

	// Config returns the current *Config for the executor.
	Config() *config.Config

	// Commit commits an entry to the layer list.
	Commit(string, Hook) error

	// CopyFromContainer copies a series of files in a similar fashion to
	// CopyToContainer, just in reverse.
	CopyFromContainer(string, string) (io.Reader, int64, error)

	// CopyFromContainer copies a series of files in a similar fashion to
	// CopyToContainer, just in reverse.
	CopyToContainer(string, io.Reader) error

	// CopyOneFileFromContainer copies a file from the container and returns its content.
	CopyOneFileFromContainer(string) ([]byte, error)

	// Create a container. Returns the container ID.
	Create() (string, error)

	// Destroy a container by ID.
	Destroy(string) error

	// RunHook is used to manage run invocations, and is processed by the run
	// statement.
	RunHook(context.Context, string) (string, error)

	// SetStdin turns on the stdin features during run invocations. It is used to
	// facilitate debugging.

	// UseTTY determines whether or not to allow docker to use a TTY for both run and pull operations.

	// ShowRun toggles the visibility of run output.

	// GetShowRun returns the visibility of run output.
	GetShowRun() bool

	// Layers returns the layer handler for this executor.
	Layers() layers.Layers

	// Image returns the image handler for this executor.
	Image() layers.Image

Executor is an engine for talking to different layering/execution context subsystems. It is the meat-and-potatoes of image building.

type Hook

type Hook func(context.Context, string) (string, error)

Hook is a hook used in commit calls

Source Files


Path Synopsis

Jump to

Keyboard shortcuts

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