goharbor / go-client

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

Implement Consistent Behavior for DeleteRegistryParam #30

Open amands98 opened 3 months ago

amands98 commented 3 months ago

Make DeleteRegistryParams behave consistently like DeleteProjectParams, allowing deletion of registries by Name or ID.

https://github.com/goharbor/go-client/blob/v0.210.0/pkg/sdk/v2.0/client/registry/delete_registry_parameters.go#L63

// @Vad1mo

Vad1mo commented 3 months ago

Can you elaborate a bit more here?

amands98 commented 3 months ago

We currently delete registry by ID only. Let's enable deletion by name or ID, like we do with projects.