Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Image string // Image Identifier, may be different across executors. User StringState // the currently configured user for this image. WorkDir StringState // the current working directory on entering a container Cmd StringSliceState // the secondary execution form, it is provided to images if given to docker run, otherwise this is used. Entrypoint StringSliceState // the primary execution form, the first arguments and the exec() jumping-off point. Env []string // Environment variables Volumes []string // Volume paths }
Config is a basic configuration of an image at each step. It is kept in sync by commit routines in the executor. Setting properties here will propagate them to various image-manipulating commands when needed.
func (*Config) FromDocker ¶
FromDocker sets *Config properties from a docker *container.Config
func (*Config) TemporaryCommand ¶ added in v0.3.2
TemporaryCommand is used to manage run and debug statements and similar effects where the results should not be recorded in the committed container.
type StringSliceState ¶ added in v0.3.2
StringSliceState is a state tracker for two types of states: image-level and temporary (run commands, etc) commands.
type StringState ¶ added in v0.3.2
StringState is just like StringArrayState, but for strings.
Click to show internal directories.
Click to hide internal directories.