Documentation ¶
Index ¶
- type Docker
- func (d *Docker) Commit(cacheKey string, hook executor.Hook) error
- func (d *Docker) Config() *config.Config
- func (d *Docker) CopyFromContainer(id, path string) (io.Reader, int64, error)
- func (d *Docker) CopyOneFileFromContainer(fn string) ([]byte, error)
- func (d *Docker) CopyToContainer(id string, r io.Reader) error
- func (d *Docker) Create() (string, error)
- func (d *Docker) Destroy(id string) error
- func (d *Docker) GetShowRun() bool
- func (d *Docker) Image() layers.Image
- func (d *Docker) Layers() layers.Layers
- func (d *Docker) LoadConfig(c *config.Config) error
- func (d *Docker) RunHook(ctx context.Context, id string) (string, error)
- func (d *Docker) SetContext(ctx context.Context)
- func (d *Docker) SetStdin(on bool)
- func (d *Docker) ShowRun(ok bool)
- func (d *Docker) UseTTY(arg bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Docker ¶
type Docker struct {
// contains filtered or unexported fields
}
Docker implements an executor that talks to docker to achieve its goals.
func NewDocker ¶
func NewDocker(ctx context.Context, log *logger.Logger, showRun, useCache, tty bool) (*Docker, error)
NewDocker constructs a new docker instance, for executing against docker engines.
func (*Docker) CopyFromContainer ¶
CopyFromContainer copies a series of files in a similar fashion to CopyToContainer, just in reverse.
func (*Docker) CopyOneFileFromContainer ¶
CopyOneFileFromContainer copies a file from the container and returns its content. An error is returned, if any.
func (*Docker) CopyToContainer ¶
CopyToContainer copies files from the tarfile specified in reader to the containerto the container so it can then be committed. It does not close the reader.
func (*Docker) GetShowRun ¶ added in v0.4.1
GetShowRun returns the visibility of run output.
func (*Docker) Image ¶ added in v0.5.0
Image returns the layers.Image interface for working with Docker
func (*Docker) Layers ¶ added in v0.5.0
Layers returns the layers.Layers interface for working with Docker
func (*Docker) LoadConfig ¶
LoadConfig loads the configuration into the executor.
func (*Docker) SetContext ¶ added in v0.4.1
SetContext sets the context for subsequent calls.
func (*Docker) SetStdin ¶
SetStdin turns on the stdin features during run invocations. It is used to facilitate debugging.