Documentation
¶
Index ¶
- type Manager
- func (pm *Manager) Cleanup()
- func (pm *Manager) FinishFileProgress()
- func (pm *Manager) FinishTotalProgress()
- func (pm *Manager) InitFileProgress(totalBytes int64, filename string)
- func (pm *Manager) InitTotalProgress(totalBytes int64, description string)
- func (pm *Manager) IsCancelled() bool
- func (pm *Manager) PrintInfo(format string, args ...interface{})
- func (pm *Manager) PrintVerbose(format string, args ...interface{})
- func (pm *Manager) SetupCancellation(ctx context.Context) context.Context
- func (pm *Manager) UpdateFileProgress(bytes int64)
- func (pm *Manager) UpdateTotalProgress(bytes int64)
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager handles progress bars and cancellation
func NewManager ¶
NewManager creates a new progress manager
func (*Manager) FinishFileProgress ¶
func (pm *Manager) FinishFileProgress()
FinishFileProgress marks the file progress as complete
func (*Manager) FinishTotalProgress ¶
func (pm *Manager) FinishTotalProgress()
FinishTotalProgress marks the total progress as complete
func (*Manager) InitFileProgress ¶
InitFileProgress initializes the per-file progress bar
func (*Manager) InitTotalProgress ¶
InitTotalProgress initializes the total progress bar
func (*Manager) IsCancelled ¶
IsCancelled checks if the operation was cancelled
func (*Manager) PrintVerbose ¶
PrintVerbose prints verbose information if verbose mode is enabled
func (*Manager) SetupCancellation ¶
SetupCancellation sets up signal handling for cancellation
func (*Manager) UpdateFileProgress ¶
UpdateFileProgress updates the per-file progress bar
func (*Manager) UpdateTotalProgress ¶
UpdateTotalProgress updates the total progress bar
Click to show internal directories.
Click to hide internal directories.