goharbor / go-client

Client library with golang for accessing Harbor API.
Apache License 2.0
39 stars 18 forks source link

REST Api or SDK to download Image #21

Closed cbsundaram closed 7 months ago

cbsundaram commented 10 months ago

Referring to swagger https://demo.goharbor.io/devcenter-api-2.0 is there any REST api or SDK method which can download the image artifact (in .tar format) for a given project and repository in Harbor?

We tried with Docker pull and save for this. However, we need an API or SDK method to download the image programmatically without invoking docker commands.

Vad1mo commented 7 months ago

this doesnt exist but you can build one yourself easily, with https://github.com/google/go-containerregistry