2015-12-17 16:17:50 -08:00
|
|
|
package build
|
|
|
|
|
2016-01-20 15:32:02 -08:00
|
|
|
import (
|
|
|
|
"github.com/docker/docker/builder"
|
|
|
|
"github.com/docker/engine-api/types"
|
|
|
|
"io"
|
|
|
|
)
|
|
|
|
|
2015-12-17 16:17:50 -08:00
|
|
|
// 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
|
2016-01-20 15:32:02 -08:00
|
|
|
Build(config *types.ImageBuildOptions, context builder.Context, stdout io.Writer, stderr io.Writer, out io.Writer, clientGone <-chan bool) (string, error)
|
2015-12-17 16:17:50 -08:00
|
|
|
}
|