build.go 535 B

12345678910111213141516171819202122
  1. package backend
  2. import (
  3. "io"
  4. "github.com/docker/docker/api/types"
  5. )
  6. // ProgressWriter is a data object to transport progress streams to the client
  7. type ProgressWriter struct {
  8. Output io.Writer
  9. StdoutFormatter io.Writer
  10. StderrFormatter io.Writer
  11. ProgressReaderFunc func(io.ReadCloser) io.ReadCloser
  12. }
  13. // BuildConfig is the configuration used by a BuildManager to start a build
  14. type BuildConfig struct {
  15. Source io.ReadCloser
  16. ProgressWriter ProgressWriter
  17. Options *types.ImageBuildOptions
  18. }