github.com/ncdc/docker@v0.10.1-0.20160129113957-6c6729ef5b74/api/server/router/build/backend.go (about)

     1  package build
     2  
     3  // Backend abstracts an image builder whose only purpose is to build an image referenced by an imageID.
     4  type Backend interface {
     5  	// Build builds a Docker image referenced by an imageID string.
     6  	//
     7  	// Note: Tagging an image should not be done by a Builder, it should instead be done
     8  	// by the caller.
     9  	//
    10  	// TODO: make this return a reference instead of string
    11  	Build() (imageID string)
    12  }