daemonbuilder

package
v1.4.2-0...-2180dd6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2015 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectContextFromRemoteURL

func DetectContextFromRemoteURL(r io.ReadCloser, remoteURL string, createProgressReader func(in io.ReadCloser) io.ReadCloser) (context builder.ModifiableContext, dockerfileName string, err error)

DetectContextFromRemoteURL returns a context and in certain cases the name of the dockerfile to be used irrespective of user input. progressReader is only used if remoteURL is actually a URL (not empty, and not a Git endpoint).

Types

type Docker

type Docker struct {
	*daemon.Daemon
	OutOld      io.Writer
	AuthConfigs map[string]types.AuthConfig
	Archiver    *archive.Archiver
}

Docker implements builder.Backend for the docker Daemon object.

func (Docker) BuilderCopy

func (d Docker) BuilderCopy(cID string, destPath string, src builder.FileInfo, decompress bool) error

BuilderCopy copies/extracts a source FileInfo to a destination path inside a container specified by a container object. TODO: make sure callers don't unnecessarily convert destPath with filepath.FromSlash (Copy does it already). BuilderCopy should take in abstract paths (with slashes) and the implementation should convert it to OS-specific paths.

func (Docker) ContainerUpdateCmd

func (d Docker) ContainerUpdateCmd(cID string, cmd []string) error

ContainerUpdateCmd updates Path and Args for the container with ID cID.

func (Docker) GetCachedImage

func (d Docker) GetCachedImage(imgID string, cfg *runconfig.Config) (string, error)

GetCachedImage returns a reference to a cached image whose parent equals `parent` and runconfig equals `cfg`. A cache miss is expected to return an empty ID and a nil error.

func (Docker) Mount

func (d Docker) Mount(cID string) error

Mount mounts the root filesystem for the container.

func (Docker) Pull

func (d Docker) Pull(name string) (*image.Image, error)

Pull tells Docker to pull image referenced by `name`.

func (Docker) Release

func (d Docker) Release(sessionID string, activeImages []string)

Release releases a list of images that were retained for the time of a build.

func (Docker) Retain

func (d Docker) Retain(sessionID, imgID string)

Retain retains an image avoiding it to be removed or overwritten until a corresponding Release() call.

func (Docker) Unmount

func (d Docker) Unmount(cID string) error

Unmount unmounts the root filesystem for the container.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL