{"modulePath":"github.com/unclejack/box","version":"v0.0.0-20170617203741-67d9101d2afc","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package executor\n\n## Types\n\n```go\ntype Executor interface {\n\t// LoadConfig loads the configuration into the executor.\n\tLoadConfig(*config.Config) error\n\n\t// Config returns the current *Config for the executor.\n\tConfig() *config.Config\n\n\t// Commit commits an entry to the layer list.\n\tCommit(string, Hook) error\n\n\t// CopyFromContainer copies a series of files in a similar fashion to\n\t// CopyToContainer, just in reverse.\n\tCopyFromContainer(string, string) (io.Reader, int64, error)\n\n\t// CopyFromContainer copies a series of files in a similar fashion to\n\t// CopyToContainer, just in reverse.\n\tCopyToContainer(string, io.Reader) error\n\n\t// CopyOneFileFromContainer copies a file from the container and returns its content.\n\tCopyOneFileFromContainer(string) ([]byte, error)\n\n\t// Create a container. Returns the container ID.\n\tCreate() (string, error)\n\n\t// Destroy a container by ID.\n\tDestroy(string) error\n\n\t// RunHook is used to manage run invocations, and is processed by the run\n\t// statement.\n\tRunHook(context.Context, string) error\n\n\t// SetStdin turns on the stdin features during run invocations. It is used to\n\t// facilitate debugging.\n\tSetStdin(bool)\n\n\t// Layers returns the layer handler for this executor.\n\tLayers() layers.Layers\n\n\t// Image returns the image handler for this executor.\n\tImage() layers.Image\n}\n```\nExecutor is an engine for talking to different layering/execution context subsystems. It is the meat-and-potatoes of image building.\n\n```go\ntype Hook func(context.Context, string) error\n```\nHook is a hook used in commit calls\n\n","path":"github.com/unclejack/box/builder/executor","name":"executor","synopsis":"","isRedistributable":true}
