Documentation
¶
Overview ¶
Package fsutilprogress implements progress callbacks and tracking for file system operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProgressCallback ¶
type ProgressCallback struct {
// contains filtered or unexported fields
}
ProgressCallback tracks and logs byte-transfer status for fsutil streams. Each fsutil stream reports cumulative bytes for that stream; when shared across streams, ProgressCallback resets its baseline on stream completion or if a stream reports a lower cumulative byte count than the previous observation.
func New ¶
func New(log *conslogging.ConsoleLogger) *ProgressCallback
New returns a progress callback that logs periodic transfer rate summaries.
func NewContext ¶
func NewContext(contextName string, log *conslogging.ConsoleLogger) *ProgressCallback
NewContext returns a progress callback that logs periodic transfer rate summaries and a completion message for the given build context.
func (*ProgressCallback) Info ¶
func (p *ProgressCallback) Info(numBytes int, last bool)
Info logs periodic transfer rate summaries and completion status for transferred bytes.
func (*ProgressCallback) ReceiveFile ¶
func (p *ProgressCallback) ReceiveFile(relPath string, size int64)
ReceiveFile logs a verbose message when an individual file is received.