Rename the adapter name of huawei to huawei-SWR

Rename the adapter name of huawei to huawei-SWR. Fixes #7732

Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
Wenkai Yin 2019-05-09 14:20:36 +08:00
parent 4e583ad65a
commit 4f6116f9c0
2 changed files with 2 additions and 6 deletions

View File

@ -16,10 +16,6 @@ import (
"github.com/goharbor/harbor/src/replication/util"
)
const (
huawei model.RegistryType = "Huawei"
)
func init() {
err := adp.RegisterFactory(model.RegistryTypeHuawei, AdapterFactory)
if err != nil {
@ -38,7 +34,7 @@ type adapter struct {
// Info gets info about Huawei SWR
func (a *adapter) Info() (*model.RegistryInfo, error) {
registryInfo := model.RegistryInfo{
Type: huawei,
Type: model.RegistryTypeHuawei,
Description: "Adapter for SWR -- The image registry of Huawei Cloud",
SupportedResourceTypes: []model.ResourceType{model.ResourceTypeImage},
SupportedResourceFilters: []*model.FilterStyle{},

View File

@ -25,7 +25,7 @@ const (
RegistryTypeHarbor RegistryType = "harbor"
RegistryTypeDockerHub RegistryType = "docker-hub"
RegistryTypeDockerRegistry RegistryType = "docker-registry"
RegistryTypeHuawei RegistryType = "huawei"
RegistryTypeHuawei RegistryType = "huawei-SWR"
FilterStyleTypeText = "input"
FilterStyleTypeRadio = "radio"