goharbor / harbor-cli

[Sandbox] Official Harbor CLI
Apache License 2.0
42 stars 45 forks source link

registry view xxx fails #224

Closed Vad1mo closed 3 weeks ago

Vad1mo commented 4 weeks ago
❯ ./main registry view self
ERRO[0000] failed to parse registry id: strconv.ParseInt: parsing "self": invalid syntax 
ERRO[0000] failed to get registry: [GET /registries/{id}][401] getRegistryUnauthorized  &{Errors:[0x1400038e060]} 

harbor-cli on  v1.23.1 
❯ ./main registry view     
{
  "creation_time": "2024-10-28T09:36:11.671Z",
  "credential": {},
  "id": 37,
  "insecure": true,
  "name": "self",
  "status": "healthy",
  "type": "harbor",
  "update_time": "2024-10-29T14:57:46.157Z",
  "url": "https://demo.goharbor.io"
}