backend.go 470 B

1234567891011121314151617
  1. package build
  2. import (
  3. "github.com/docker/docker/api/types/backend"
  4. "golang.org/x/net/context"
  5. )
  6. // Backend abstracts an image builder whose only purpose is to build an image referenced by an imageID.
  7. type Backend interface {
  8. // Build a Docker image returning the id of the image
  9. // TODO: make this return a reference instead of string
  10. Build(context.Context, backend.BuildConfig) (string, error)
  11. }
  12. type experimentalProvider interface {
  13. HasExperimental() bool
  14. }