Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPullProgressWriter ¶
func NewPullProgressWriter(reportFn func(*ProgressReport)) io.Writer
NewPullProgressWriter creates a writer that periodically reports on pull progress of an image. It only reports when the state of the different layers has changed and uses time threshholds to limit the rate of the reports.
Types ¶
type ProgressReport ¶
type ProgressReport struct { Waiting int Downloading int Extracting int Complete int DownloadPct float32 }
ProgressReport is a report of the progress of an image pull. It provides counts of layers in a given state. It also provides a percentage of downloaded data of those layers that are currently getting downloaded
Click to show internal directories.
Click to hide internal directories.