mirror of
https://github.com/containers/skopeo.git
synced 2025-08-22 00:13:21 +00:00
> go get github.com/containers/image/v5@main > go mod tidy && go mod vendor This updates c/image with a new version of x/exp. That package has changed API in an incompatible way, so just bumping x/exp (as in https://github.com/containers/skopeo/pull/2060 ) would break Skopeo builds. This updates both c/image and x/exp in lockstep (and nothing needs updating in Skopeo itself for the x/exp breakage). Signed-off-by: Miloslav Trmač <mitr@redhat.com>
32 lines
667 B
Go
32 lines
667 B
Go
package mpb
|
|
|
|
import (
|
|
"io"
|
|
|
|
"github.com/vbauerster/mpb/v8/decor"
|
|
)
|
|
|
|
// BarFiller interface.
|
|
// Bar (without decorators) renders itself by calling BarFiller's Fill method.
|
|
type BarFiller interface {
|
|
Fill(io.Writer, decor.Statistics) error
|
|
}
|
|
|
|
// BarFillerBuilder interface.
|
|
// Default implementations are:
|
|
//
|
|
// BarStyle()
|
|
// SpinnerStyle()
|
|
// NopStyle()
|
|
type BarFillerBuilder interface {
|
|
Build() BarFiller
|
|
}
|
|
|
|
// BarFillerFunc is function type adapter to convert compatible function
|
|
// into BarFiller interface.
|
|
type BarFillerFunc func(io.Writer, decor.Statistics) error
|
|
|
|
func (f BarFillerFunc) Fill(w io.Writer, stat decor.Statistics) error {
|
|
return f(w, stat)
|
|
}
|