Documentation ¶
Overview ¶
Package progress provides common progress monitoring / display features NOTE: Subject to change, do not rely on this package from outside git-lfs source
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackReader ¶
type CallbackReader struct { C CopyCallback TotalSize int64 ReadSize int64 io.Reader }
type CopyCallback ¶
type ProgressMeter ¶
type ProgressMeter struct {
// contains filtered or unexported fields
}
ProgressMeter provides a progress bar type output for the TransferQueue. It is given an estimated file count and size up front and tracks the number of files and bytes transferred as well as the number of files and bytes that get skipped because the transfer is unnecessary.
func NewProgressMeter ¶
func NewProgressMeter(estFiles int, estBytes int64, dryRun bool, logPath string) *ProgressMeter
NewProgressMeter creates a new ProgressMeter for the number and size of files given.
func (*ProgressMeter) Add ¶
func (p *ProgressMeter) Add(name string)
Add tells the progress meter that a transferring file is being added to the TransferQueue.
func (*ProgressMeter) FinishTransfer ¶
func (p *ProgressMeter) FinishTransfer(name string)
FinishTransfer increments the finished transfer count
func (*ProgressMeter) Skip ¶
func (p *ProgressMeter) Skip(size int64)
Skip tells the progress meter that a file of size `size` is being skipped because the transfer is unnecessary.
func (*ProgressMeter) Start ¶
func (p *ProgressMeter) Start()
func (*ProgressMeter) TransferBytes ¶
func (p *ProgressMeter) TransferBytes(direction, name string, read, total int64, current int)
TransferBytes increments the number of bytes transferred
type Spinner ¶
type Spinner struct {
// contains filtered or unexported fields
}
Indeterminate progress indicator 'spinner'
func NewSpinner ¶
func NewSpinner() *Spinner