mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
Allow edit registry description
Signed-off-by: cd1989 <chende@caicloud.io>
This commit is contained in:
parent
3978def928
commit
8968e82675
@ -4272,6 +4272,9 @@ definitions:
|
||||
name:
|
||||
type: string
|
||||
description: The registry name.
|
||||
description:
|
||||
type: string
|
||||
description: Description of the registry.
|
||||
url:
|
||||
type: string
|
||||
description: The registry address URL string.
|
||||
|
@ -3,6 +3,7 @@ package models
|
||||
// RegistryUpdateRequest is request used to update a registry.
|
||||
type RegistryUpdateRequest struct {
|
||||
Name *string `json:"name"`
|
||||
Description *string `json:"description"`
|
||||
URL *string `json:"url"`
|
||||
CredentialType *string `json:"credential_type"`
|
||||
AccessKey *string `json:"access_key"`
|
||||
|
@ -135,6 +135,9 @@ func (t *RegistryAPI) Put() {
|
||||
if req.Name != nil {
|
||||
registry.Name = *req.Name
|
||||
}
|
||||
if req.Description != nil {
|
||||
registry.Description = *req.Description
|
||||
}
|
||||
if req.URL != nil {
|
||||
registry.URL = *req.URL
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user