github.com/jiasir/docker@v1.3.3-0.20170609024000-252e610103e7/api/types/backend/build.go (about)

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