Help us shape the future of Go! Take the 2026 Go Developer Survey

fsutilprogress

package
v0.8.20-rc-0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: MPL-2.0 Imports: 4 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL