goharbor / go-client

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

Can't delete artifact tag #15

Open vmasyagin opened 1 year ago

vmasyagin commented 1 year ago

Good afternoon. Please suggest what is wrong with my request. Execute command in code _, err = cs.V2().Artifact.DeleteTag(context.TODO(), &artifact.DeleteTagParams{ Reference: reference, TagName: reference, ProjectName: *r.Project, RepositoryName: repositoryName, }) and i get an error [DELETE /projects/{project_name}/repositories/{repository_name}/artifacts/{reference}/tags/{tag_name}][401] deleteTagUnauthorized &{Errors:[0xc000236500]}

Methods for getting tags work fine with the same authorization data. In Harbor UI, I can delete the tag with these authorization data

Version: github.com/goharbor/go-client v0.25.0

jeyrce commented 1 year ago

I met the same problem