mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-27 04:35:16 +01:00
Merge pull request #7290 from cd1989/edit-registry-description
Allow edit registry description
This commit is contained in:
commit
9e88f3d28e
@ -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