{"modulePath":"github.com/Github/git-lfs","version":"v1.5.6","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package progress\n\nPackage progress provides common progress monitoring / display features NOTE: Subject to change, do not rely on this package from outside git-lfs source\n\n## Types\n\n```go\ntype CallbackReader struct {\n\tC         CopyCallback\n\tTotalSize int64\n\tReadSize  int64\n\tio.Reader\n}\n```\n\n```go\nfunc (w *CallbackReader) Read(p []byte) (int, error)\n```\n\n```go\ntype CopyCallback func(totalSize int64, readSoFar int64, readSinceLast int) error\n```\n\n```go\ntype ProgressMeter struct {\n\t// contains filtered or unexported fields\n}\n```\nProgressMeter 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.\n\n```go\nfunc NewProgressMeter(estFiles int, estBytes int64, dryRun bool, logPath string) *ProgressMeter\n```\nNewProgressMeter creates a new ProgressMeter for the number and size of files given.\n\n```go\nfunc (p *ProgressMeter) Add(name string)\n```\nAdd tells the progress meter that a transferring file is being added to the TransferQueue.\n\n```go\nfunc (p *ProgressMeter) Finish()\n```\nFinish shuts down the ProgressMeter\n\n```go\nfunc (p *ProgressMeter) FinishTransfer(name string)\n```\nFinishTransfer increments the finished transfer count\n\n```go\nfunc (p *ProgressMeter) Skip(size int64)\n```\nSkip tells the progress meter that a file of size \\`size\\` is being skipped because the transfer is unnecessary.\n\n```go\nfunc (p *ProgressMeter) Start()\n```\n\n```go\nfunc (p *ProgressMeter) TransferBytes(direction, name string, read, total int64, current int)\n```\nTransferBytes increments the number of bytes transferred\n\n```go\ntype Spinner struct {\n\t// contains filtered or unexported fields\n}\n```\nIndeterminate progress indicator 'spinner'\n\n```go\nfunc NewSpinner() *Spinner\n```\n\n```go\nfunc (s *Spinner) Finish(out io.Writer, finishMsg string)\n```\nFinish the spinner with a completion message \u0026 newline\n\n```go\nfunc (s *Spinner) Print(out io.Writer, msg string)\n```\nPrint a spinner (stage) to out followed by msg (no linefeed)\n\n```go\nfunc (s *Spinner) Spin(out io.Writer)\n```\nJust spin the spinner one more notch \u0026 use the last message\n\n","path":"github.com/Github/git-lfs/progress","name":"progress","synopsis":"Package progress provides common progress monitoring / display features NOTE: Subject to change, do not rely on this package from outside git-lfs source","isRedistributable":true}
