go-client
go-client copied to clipboard
Can't delete artifact tag
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
I met the same problem