jfrog-client-go
jfrog-client-go copied to clipboard
GetAllRepositoriesFiltered(params services.RepositoriesFilterParams) should honor the API
We are able to search for all Repositories in the project through the API but not using the client
Consider handling the project parameter here: type RepositoriesFilterParams struct { RepoType string PackageType string } The code needs to reflect the API: https://jfrog.com/help/r/jfrog-rest-apis/get-repositories
Br, Raghed Ali
Thanks for raising this @Raghed22. We'd welcome a pull request that adds this.
Hey @Raghed22, I have just opened a PR that addresses your needs. I will update you on this thread once it is released.
@Raghed22
JFrog Go client version 1.46.0 has been released, now with support for projects in the GetAllRepositoriesFiltered
method.
Usage:
params := services.NewRepositoriesFilterParams()
params.ProjectKey = "project-key"
err := servicesManager.GetAllRepositoriesFiltered(params)
See also https://github.com/jfrog/jfrog-client-go?tab=readme-ov-file#getting-all-repositories.
We would appreciate your feedback on this update.