MCPcopy Create free account
hub / github.com/aptly-dev/aptly / DownloadWithChecksum

Method DownloadWithChecksum

aptly/interfaces.go:163–163  ·  view source on GitHub ↗

DownloadWithChecksum starts new download task with checksum verification

(ctx context.Context, url string, destination string, expected *utils.ChecksumInfo, ignoreMismatch bool)

Source from the content-addressed store, hash-verified

161 Download(ctx context.Context, url string, destination string) error
162 // DownloadWithChecksum starts new download task with checksum verification
163 DownloadWithChecksum(ctx context.Context, url string, destination string, expected *utils.ChecksumInfo, ignoreMismatch bool) error
164 // GetProgress returns Progress object
165 GetProgress() Progress
166 // GetLength returns size by heading object with url

Callers 6

DownloadTempWithChecksumFunction · 0.65
aptlyMirrorUpdateFunction · 0.65
apiMirrorsUpdateFunction · 0.65

Implementers 3

FakeDownloaderhttp/fake.go
GrabDownloaderhttp/grab.go
downloaderImplhttp/download.go

Calls

no outgoing calls

Tested by 2