Versions in this module Expand all Collapse all v1 v1.1.1 Oct 18, 2019 v1.1.0 Mar 22, 2019 Changes in this version + func FilterArchive(r io.Reader, w io.Writer, fn TransformFileFunc) error + func NewClientFromEnv() (*docker.Client, error) + func NewLazyArchive(fn CreateFileFunc) io.ReadCloser + func NoAuthFn(string) ([]dockertypes.AuthConfig, bool) + type ClientExecutor struct + AdditionalTags []string + AllowPull bool + AuthFn func(name string) ([]dockertypes.AuthConfig, bool) + Client *docker.Client + Command []string + Container *docker.Container + ContainerTransientMount string + ContextArchive string + Deferred []func() error + Directory string + ErrOut io.Writer + Excludes []string + HostConfig *docker.HostConfig + IgnoreUnrecognizedInstructions bool + Image *docker.Image + LogFn func(format string, args ...interface{}) + Name string + Named map[string]*ClientExecutor + Out io.Writer + StrictVolumeOwnership bool + Tag string + TempDir string + TransientMounts []Mount + Volumes *ContainerVolumeTracker + func NewClientExecutor(client *docker.Client) *ClientExecutor + func (e *ClientExecutor) Archive(fromFS bool, src, dst string, allowDownload bool, excludes []string) (io.Reader, io.Closer, error) + func (e *ClientExecutor) Build(b *imagebuilder.Builder, node *parser.Node, from string) error + func (e *ClientExecutor) Commit(b *imagebuilder.Builder) error + func (e *ClientExecutor) Copy(excludes []string, copies ...imagebuilder.Copy) error + func (e *ClientExecutor) CopyContainer(container *docker.Container, excludes []string, copies ...imagebuilder.Copy) error + func (e *ClientExecutor) CreateScratchImage() (string, error) + func (e *ClientExecutor) DefaultExcludes() error + func (e *ClientExecutor) EnsureContainerPath(path string) error + func (e *ClientExecutor) Execute(b *imagebuilder.Builder, node *parser.Node) error + func (e *ClientExecutor) LoadImage(from string) (*docker.Image, error) + func (e *ClientExecutor) PopulateTransientMounts(opts docker.CreateContainerOptions, transientMounts []Mount, ...) ([]string, error) + func (e *ClientExecutor) Prepare(b *imagebuilder.Builder, node *parser.Node, from string) error + func (e *ClientExecutor) Preserve(path string) error + func (e *ClientExecutor) Release() []error + func (e *ClientExecutor) Run(run imagebuilder.Run, config docker.Config) error + func (e *ClientExecutor) Stages(b *imagebuilder.Builder, stages imagebuilder.Stages, from string) (*ClientExecutor, error) + func (e *ClientExecutor) UnrecognizedInstruction(step *imagebuilder.Step) error + func (e *ClientExecutor) WithName(name string) *ClientExecutor + type ContainerVolumeTracker struct + func NewContainerVolumeTracker() *ContainerVolumeTracker + func (t *ContainerVolumeTracker) Add(path string) + func (t *ContainerVolumeTracker) Empty() bool + func (t *ContainerVolumeTracker) Invalidate(path string) + func (t *ContainerVolumeTracker) Release() []error + func (t *ContainerVolumeTracker) ReleasePath(path string) + func (t *ContainerVolumeTracker) Restore(containerID string, client *docker.Client) error + func (t *ContainerVolumeTracker) Save(containerID, tempDir string, client *docker.Client) error + type CopyInfo struct + Decompress bool + FromDir bool + Path string + func CalcCopyInfo(origPath, rootPath string, allowWildcards bool) ([]CopyInfo, error) + func DownloadURL(src, dst, tempDir string) ([]CopyInfo, string, error) + type CreateFileFunc func() (*tar.Header, io.ReadCloser, bool, error) + type DirectoryCheck interface + IsDirectory func(path string) (bool, error) + type Mount struct + DestinationPath string + SourcePath string + type TransformFileFunc func(h *tar.Header, r io.Reader) (data []byte, update bool, skip bool, err error)