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

Method Download

http/download.go:123–125  ·  view source on GitHub ↗

Download starts new download task

(ctx context.Context, url string, destination string)

Source from the content-addressed store, hash-verified

121
122// Download starts new download task
123func (downloader *downloaderImpl) Download(ctx context.Context, url string, destination string) error {
124 return downloader.DownloadWithChecksum(ctx, url, destination, nil, false)
125}
126
127func retryableError(err error) bool {
128 // unwrap errors.Wrap

Callers

nothing calls this directly

Calls 1

DownloadWithChecksumMethod · 0.95

Tested by

no test coverage detected