Versions in this module Expand all Collapse all v1 v1.13.1 Feb 8, 2017 Changes in this version + const DefaultDockerfileName + func GetContextFromGitURL(gitURL, dockerfileName string) (absContextDir, relDockerfile string, err error) + func GetContextFromLocalDir(localDir, dockerfileName string) (absContextDir, relDockerfile string, err error) + func GetContextFromReader(r io.ReadCloser, dockerfileName string) (out io.ReadCloser, relDockerfile string, err error) + func GetContextFromURL(out io.Writer, remoteURL, dockerfileName string) (io.ReadCloser, string, error) + func ValidateContextDirectory(srcPath string, excludes []string) error + type Backend interface + Commit func(string, *backend.ContainerCommitConfig) (string, error) + ContainerAttachRaw func(cID string, stdin io.ReadCloser, stdout, stderr io.Writer, stream bool) error + ContainerCreate func(config types.ContainerCreateConfig) (container.ContainerCreateCreatedBody, error) + ContainerCreateWorkdir func(containerID string) error + ContainerKill func(containerID string, sig uint64) error + ContainerRm func(name string, config *types.ContainerRmConfig) error + ContainerStart func(containerID string, hostConfig *container.HostConfig, checkpoint string, ...) error + ContainerUpdateCmdOnBuild func(containerID string, cmd []string) error + ContainerWait func(containerID string, timeout time.Duration) (int, error) + CopyOnBuild func(containerID string, destPath string, src FileInfo, decompress bool) error + GetImageOnBuild func(name string) (Image, error) + HasExperimental func() bool + PullOnBuild func(ctx context.Context, name string, authConfigs map[string]types.AuthConfig, ...) (Image, error) + SquashImage func(from string, to string) (string, error) + TagImageWithReference func(image.ID, reference.Named) error + type Context interface + Close func() error + Open func(path string) (io.ReadCloser, error) + Stat func(path string) (string, FileInfo, error) + Walk func(root string, walkFn WalkFunc) error + type DockerIgnoreContext struct + func (c DockerIgnoreContext) Process(filesToRemove []string) error + type FileInfo interface + Path func() string + type Hashed interface + Hash func() string + SetHash func(string) + type HashedFileInfo struct + FileHash string + func (fi *HashedFileInfo) SetHash(h string) + func (fi HashedFileInfo) Hash() string + type Image interface + ImageID func() string + RunConfig func() *container.Config + type ImageCache interface + GetCache func(parentID string, cfg *container.Config) (imageID string, err error) + type ImageCacheBuilder interface + MakeImageCache func(cacheFrom []string) ImageCache + type ModifiableContext interface + Remove func(path string) error + func DetectContextFromRemoteURL(r io.ReadCloser, remoteURL string, ...) (context ModifiableContext, dockerfileName string, err error) + func MakeGitContext(gitURL string) (ModifiableContext, error) + func MakeRemoteContext(remoteURL string, ...) (ModifiableContext, error) + func MakeTarSumContext(tarStream io.Reader) (ModifiableContext, error) + type PathFileInfo struct + FileName string + FilePath string + func (fi PathFileInfo) Name() string + func (fi PathFileInfo) Path() string + type WalkFunc func(path string, fi FileInfo, err error) error