MCPcopy
hub / github.com/hashicorp/go-getter / TrackProgress

Method TrackProgress

client_option_progress.go:25–25  ·  view source on GitHub ↗

TrackProgress should be called when a new object is being downloaded. src is the location the file is downloaded from. currentSize is the current size of the file in case it is a partial download. totalSize is the total size in bytes, size can be zero if the file size is not known. stream is the fil

(src string, currentSize, totalSize int64, stream io.ReadCloser)

Source from the content-addressed store, hash-verified

23 // download in progress ( stream ).
24 // When the download is finished, body shall be closed.
25 TrackProgress(src string, currentSize, totalSize int64, stream io.ReadCloser) (body io.ReadCloser)
26}

Callers 1

GetFileMethod · 0.65

Implementers 2

MockProgressTrackingclient_option_progress_test.go
ProgressBarcmd/go-getter/progress_tracking.go

Calls

no outgoing calls

Tested by

no test coverage detected