MCPcopy Index your code
hub / github.com/aptly-dev/aptly / DownloadTemp

Function DownloadTemp

http/temp.go:15–17  ·  view source on GitHub ↗

DownloadTemp starts new download to temporary file and returns File Temporary file would be already removed, so no need to cleanup

(ctx context.Context, downloader aptly.Downloader, url string)

Source from the content-addressed store, hash-verified

13//
14// Temporary file would be already removed, so no need to cleanup
15func DownloadTemp(ctx context.Context, downloader aptly.Downloader, url string) (*os.File, error) {
16 return DownloadTempWithChecksum(ctx, downloader, url, nil, false)
17}
18
19// DownloadTempWithChecksum is a DownloadTemp with checksum verification
20//

Callers 5

FetchMethod · 0.92
TestDownloadTempMethod · 0.85
TestDownloadTempErrorMethod · 0.85
DownloadTryCompressionFunction · 0.85

Calls 1

DownloadTempWithChecksumFunction · 0.85

Tested by 2

TestDownloadTempMethod · 0.68
TestDownloadTempErrorMethod · 0.68