build.go 836 B

12345678910111213141516171819202122232425262728293031
  1. package backend
  2. import (
  3. "io"
  4. "github.com/docker/docker/api/types"
  5. "github.com/docker/docker/pkg/streamformatter"
  6. )
  7. // ProgressWriter is a data object to transport progress streams to the client
  8. type ProgressWriter struct {
  9. Output io.Writer
  10. StdoutFormatter io.Writer
  11. StderrFormatter io.Writer
  12. AuxFormatter *streamformatter.AuxFormatter
  13. ProgressReaderFunc func(io.ReadCloser) io.ReadCloser
  14. }
  15. // BuildConfig is the configuration used by a BuildManager to start a build
  16. type BuildConfig struct {
  17. Source io.ReadCloser
  18. ProgressWriter ProgressWriter
  19. Options *types.ImageBuildOptions
  20. }
  21. // GetImageAndLayerOptions are the options supported by GetImageAndReleasableLayer
  22. type GetImageAndLayerOptions struct {
  23. ForcePull bool
  24. AuthConfig map[string]types.AuthConfig
  25. Output io.Writer
  26. }