backend.go 407 B

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