Signed-off-by: Anusha Ragunathan <anusha@docker.com> Upstream-commit: f8dc044aecd6fa00c33dc6a72321a3e249a0b40d Component: engine
13 lines
407 B
Go
13 lines
407 B
Go
package build
|
|
|
|
// 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() (imageID string)
|
|
}
|