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) 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) error
- func (d *Docker) SetStdin(on 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 (*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) LoadConfig ¶
LoadConfig loads the configuration into the executor.
Click to show internal directories.
Click to hide internal directories.