mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
12 lines
407 B
Go
12 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)
|
|
}
|