Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Reporter ¶
type Reporter interface {
// Start registers an image whose pull is beginning.
Start(image string)
// Update the progress bar, status is some text
// like "Downloading", "Extracting". percent is the completion percentage (0-1)
Update(image, status string, percent float64)
// Done marks an image pull as done.
Done(image string, err error)
}
func FromContext ¶
FromContext returns the Reporter stored in ctx, or nil if none was set. A nil return signals callers to use their legacy single-image progress rendering.
Click to show internal directories.
Click to hide internal directories.