mittwald/goharbor-client

How to list repositories?

Closed this issue · 3 comments

Describe your request
I would like to list Harbor repositories using the Harbor client.
I could not find how to do this:

  • the endpoint gets scraped: ListRepositories functions calling GET /projects/{project_name}/repositories exist in the code.
    • apiv2.internal.api.client.repository.Client.ListRepositories exists but you cannot access this from outside the package, I think?

(This issue is identical to #99 except it concerns a different endpoint.)

fnxpt commented

+1 for this, I also don't see any way to get the tags, it would be nice to have an overall of what's currently implemented

Hey @JorenZ, @fnxpt

I've prepared a PR for the repository client.

@fnxpt
+1 for this, I also don't see any way to get the tags, it would be nice to have an overall of what's currently implemented

Addition of an artifact client will be taken care of in the related issue: #106 👍

+1 for this