Documentation ¶
Index ¶
- type Docker
- func (d *Docker) CheckCache(cacheKey string) (bool, error)
- 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) CopyToImage(id string, size int64, tw io.Reader) error
- func (d *Docker) Create() (string, error)
- func (d *Docker) Destroy(id string) error
- func (d *Docker) Fetch(name string) (string, error)
- func (d *Docker) ImageID() string
- func (d *Docker) LoadConfig(c *config.Config) error
- func (d *Docker) RunHook(id string) (string, error)
- func (d *Docker) SetStdin(on bool)
- func (d *Docker) Tag(tag string) error
- func (d *Docker) UseCache(arg 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 (*Docker) CheckCache ¶
CheckCache consults the cache and returns true or false depending on whether there was a match. If there was an error consulting the cache, it will be returned as the second argument.
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) CopyToImage ¶
CopyToImage copies a tarred up series of files (passed in through the io.Reader handle) to the image where they are untarred.
func (*Docker) Fetch ¶
Fetch retrieves a docker image, overwrites the container configuration, and returns its id.
func (*Docker) LoadConfig ¶
LoadConfig loads the configuration into the executor.
func (*Docker) SetStdin ¶
SetStdin turns on the stdin features during run invocations. It is used to facilitate debugging.