(url string, dir safepaths.Absolute)
| 24 | } |
| 25 | |
| 26 | func (p *apiPlatform) Download(url string, dir safepaths.Absolute) error { |
| 27 | return downloadArtifact(p.client, url, dir) |
| 28 | } |
| 29 | |
| 30 | func downloadArtifact(httpClient *http.Client, url string, destDir safepaths.Absolute) error { |
| 31 | req, err := http.NewRequest("GET", url, nil) |