github.com/Thanhphan1147/cloudfoundry-cli@v7.1.0+incompatible/util/download/progress_bar.go (about) 1 package download 2 3 import ( 4 "io" 5 6 pb "gopkg.in/cheggaaa/pb.v1" 7 ) 8 9 //go:generate counterfeiter . ProgressBar 10 11 type ProgressBar interface { 12 Finish() 13 NewProxyReader(r io.Reader) *pb.Reader 14 SetTotal(total int) *pb.ProgressBar 15 Start() *pb.ProgressBar 16 }