github.com/hustcat/docker@v1.3.3-0.20160314103604-901c67a8eeab/api/server/router/build/backend.go (about) 1 package build 2 3 import ( 4 "github.com/docker/docker/builder" 5 "github.com/docker/engine-api/types" 6 "io" 7 ) 8 9 // Backend abstracts an image builder whose only purpose is to build an image referenced by an imageID. 10 type Backend interface { 11 // Build builds a Docker image referenced by an imageID string. 12 // 13 // Note: Tagging an image should not be done by a Builder, it should instead be done 14 // by the caller. 15 // 16 // TODO: make this return a reference instead of string 17 Build(config *types.ImageBuildOptions, context builder.Context, stdout io.Writer, stderr io.Writer, out io.Writer, clientGone <-chan bool) (string, error) 18 }