We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm using the below code to get the list of Repositories from harbor:
c := &harbor.ClientSetConfig{ URL: h.url, Password: h.password, Username: h.username, Insecure: true, } cs, err := harbor.NewClientSet(c) if err != nil { return "", err } v2Client := cs.V2() _, err := v2Client.Repository.ListRepositories(context.TODO(), repository.NewListRepositoriesParams().WithProjectName(h.projectName)) if err != nil { fmt.Println(err) }
And I get the below error:
&[] (*[]*models.Repository) is not supported by the TextConsumer, can be resolved by supporting TextUnmarshaler interface
Expected result: Should get the exact REST API error code
golang version: 1.20 linux/amd64
The text was updated successfully, but these errors were encountered:
I met the same issue, How to do with it?
Sorry, something went wrong.
do you still see that issue?
are you using the latest version of the library?
yes,the version is v0.210.0, and Go version is 1.19
No branches or pull requests
I'm using the below code to get the list of Repositories from harbor:
And I get the below error:
Expected result:
Should get the exact REST API error code
golang version: 1.20 linux/amd64
The text was updated successfully, but these errors were encountered: