|
@@ -106,13 +106,13 @@ func (fi *HashedFileInfo) SetHash(h string) {
|
|
|
type Backend interface {
|
|
|
// TODO: use digest reference instead of name
|
|
|
|
|
|
- // GetImage looks up a Docker image referenced by `name`.
|
|
|
+ // GetImageOnBuild looks up a Docker image referenced by `name`.
|
|
|
GetImageOnBuild(name string) (Image, error)
|
|
|
- // Tag an image with newTag
|
|
|
+ // TagImage tags an image with newTag
|
|
|
TagImage(newTag reference.Named, imageName string) error
|
|
|
- // Pull tells Docker to pull image referenced by `name`.
|
|
|
+ // PullOnBuild tells Docker to pull image referenced by `name`.
|
|
|
PullOnBuild(ctx context.Context, name string, authConfigs map[string]types.AuthConfig, output io.Writer) (Image, error)
|
|
|
- // ContainerAttach attaches to container.
|
|
|
+ // ContainerAttachRaw attaches to container.
|
|
|
ContainerAttachRaw(cID string, stdin io.ReadCloser, stdout, stderr io.Writer, stream bool) error
|
|
|
// ContainerCreate creates a new Docker container and returns potential warnings
|
|
|
ContainerCreate(types.ContainerCreateConfig) (types.ContainerCreateResponse, error)
|
|
@@ -120,13 +120,13 @@ type Backend interface {
|
|
|
ContainerRm(name string, config *types.ContainerRmConfig) error
|
|
|
// Commit creates a new Docker image from an existing Docker container.
|
|
|
Commit(string, *backend.ContainerCommitConfig) (string, error)
|
|
|
- // Kill stops the container execution abruptly.
|
|
|
+ // ContainerKill stops the container execution abruptly.
|
|
|
ContainerKill(containerID string, sig uint64) error
|
|
|
- // Start starts a new container
|
|
|
+ // ContainerStart starts a new container
|
|
|
ContainerStart(containerID string, hostConfig *container.HostConfig) error
|
|
|
// ContainerWait stops processing until the given container is stopped.
|
|
|
ContainerWait(containerID string, timeout time.Duration) (int, error)
|
|
|
- // ContainerUpdateCmd updates container.Path and container.Args
|
|
|
+ // ContainerUpdateCmdOnBuild updates container.Path and container.Args
|
|
|
ContainerUpdateCmdOnBuild(containerID string, cmd []string) error
|
|
|
|
|
|
// ContainerCopy copies/extracts a source FileInfo to a destination path inside a container
|