mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00

This adds support for the passthrough on build, push, login, and search. Revamp the integration test to cover these cases and make it more robust. Use backticks instead of quoted strings for backslash-heavy string contstands. Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
20 lines
685 B
Go
20 lines
685 B
Go
package build
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/docker/docker/builder"
|
|
"github.com/docker/engine-api/types"
|
|
"golang.org/x/net/context"
|
|
)
|
|
|
|
// Backend abstracts an image builder whose only purpose is to build an image referenced by an imageID.
|
|
type Backend interface {
|
|
// Build builds a Docker image referenced by an imageID string.
|
|
//
|
|
// Note: Tagging an image should not be done by a Builder, it should instead be done
|
|
// by the caller.
|
|
//
|
|
// TODO: make this return a reference instead of string
|
|
Build(clientCtx context.Context, config *types.ImageBuildOptions, context builder.Context, stdout io.Writer, stderr io.Writer, out io.Writer, clientGone <-chan bool) (string, error)
|
|
}
|