Documentation
¶
Index ¶
- Variables
- func AddDefaultSpinner(p *mpb.Progress, name string, stage string, cmsg string, opts ...mpb.BarOption) *mpb.Bar
- type Progress
- func (p *Progress) Abort()
- func (p *Progress) AddTracker(name, state, endMsg string, opts ...mpb.BarOption) *Tracker
- func (p *Progress) Complete()
- func (p *Progress) FileDownloadProgress(name, endMsg string, size int64, width int, reader io.Reader, ...) io.ReadCloser
- func (p *Progress) FileUploadProgress(name, endMsg string, size int64, reader io.Reader) (io.ReadCloser, *Tracker)
- func (p *Progress) Wait()
- func (p *Progress) WriteLine(s, prepend string)
- type Tracker
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AddDefaultSpinner ¶
Types ¶
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
func (*Progress) Abort ¶
func (p *Progress) Abort()
Abort will abort all currently active trackers and wait for them to finish before returning
func (*Progress) AddTracker ¶
AddTracker will add a status tracker to the appliance the returned channel is to be used by other functions to update the tracker progress
func (*Progress) Complete ¶
func (p *Progress) Complete()
Complete will complete all currently active trackers and wait for them to finish before returning
func (*Progress) FileDownloadProgress ¶
func (*Progress) FileUploadProgress ¶
Click to show internal directories.
Click to hide internal directories.