import "github.com/docker/docker/pkg/streamformatter"
Package streamformatter provides helper functions to format a stream.
streamformatter.go streamwriter.go
FormatError formats the error as a JSON object
FormatStatus formats the specified objects according to the specified format (and id).
NewJSONProgressOutput returns a progress.Output that formats output using JSON objects
NewProgressOutput returns a progress.Output object that can be passed to progress.NewProgressReader.
NewStderrWriter returns a writer which formats the output as json message representing stderr lines
NewStdoutWriter returns a writer which formats the output as json message representing stdout lines
AuxFormatter is a streamFormatter that writes aux progress messages
func (sf *AuxFormatter) Emit(id string, aux interface{}) error
Emit emits the given interface as an aux progress message
Package streamformatter imports 5 packages (graph) and is imported by 4147 packages. Updated 2020-03-02. Refresh now. Tools for package owners.