(url safeurl.SafeURL, openDestination func() (*safepaths.Root, error))
| 25 | } |
| 26 | |
| 27 | func (p *apiPlatform) Download(url safeurl.SafeURL, openDestination func() (*safepaths.Root, error)) error { |
| 28 | return downloadArtifact(p.client, p.repo.RepoHost(), url, openDestination) |
| 29 | } |
| 30 | |
| 31 | func downloadArtifact(httpClient *http.Client, hostname string, url safeurl.SafeURL, openDestination func() (*safepaths.Root, error)) (downloadErr error) { |
| 32 | // The server rejects this :( |