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)
| 13 | // |
| 14 | // Temporary file would be already removed, so no need to cleanup |
| 15 | func 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 | // |