Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DownloadProgressBar ¶
type DownloadProgressBar struct {
// contains filtered or unexported fields
}
DownloadProgressBar is a progress bar that implements the scs-library-client ProgressBar interface.
func (*DownloadProgressBar) Abort ¶
func (dpb *DownloadProgressBar) Abort(drop bool)
func (*DownloadProgressBar) IncrBy ¶
func (dpb *DownloadProgressBar) IncrBy(n int)
func (*DownloadProgressBar) Init ¶
func (dpb *DownloadProgressBar) Init(contentLength int64)
func (*DownloadProgressBar) ProxyReader ¶
func (dpb *DownloadProgressBar) ProxyReader(r io.Reader) io.ReadCloser
func (*DownloadProgressBar) Wait ¶
func (dpb *DownloadProgressBar) Wait()
type ProgressCallback ¶
ProgressCallback is a function that provides progress information copying from a Reader to a Writer
func ProgressBarCallback ¶
func ProgressBarCallback(ctx context.Context) ProgressCallback
ProgressBarCallback returns a progress bar callback unless e.g. --quiet or lower loglevel is set
type UploadProgressBar ¶
type UploadProgressBar struct {
// contains filtered or unexported fields
}
UploadProgressBar is a progress bar that implements the scs-library-client UploadCallback interface.
func (*UploadProgressBar) Finish ¶
func (upb *UploadProgressBar) Finish()
func (*UploadProgressBar) GetReader ¶
func (upb *UploadProgressBar) GetReader() io.Reader
func (*UploadProgressBar) InitUpload ¶
func (upb *UploadProgressBar) InitUpload(totalSize int64, r io.Reader)
func (*UploadProgressBar) Terminate ¶
func (upb *UploadProgressBar) Terminate()
Click to show internal directories.
Click to hide internal directories.