mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
Merge pull request #7740 from ywk253100/190509_huawei
Rename the adapter name of huawei to huawei-SWR
This commit is contained in:
commit
9cc203d15b
@ -16,10 +16,6 @@ import (
|
|||||||
"github.com/goharbor/harbor/src/replication/util"
|
"github.com/goharbor/harbor/src/replication/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
huawei model.RegistryType = "Huawei"
|
|
||||||
)
|
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
err := adp.RegisterFactory(model.RegistryTypeHuawei, AdapterFactory)
|
err := adp.RegisterFactory(model.RegistryTypeHuawei, AdapterFactory)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -38,7 +34,7 @@ type adapter struct {
|
|||||||
// Info gets info about Huawei SWR
|
// Info gets info about Huawei SWR
|
||||||
func (a *adapter) Info() (*model.RegistryInfo, error) {
|
func (a *adapter) Info() (*model.RegistryInfo, error) {
|
||||||
registryInfo := model.RegistryInfo{
|
registryInfo := model.RegistryInfo{
|
||||||
Type: huawei,
|
Type: model.RegistryTypeHuawei,
|
||||||
Description: "Adapter for SWR -- The image registry of Huawei Cloud",
|
Description: "Adapter for SWR -- The image registry of Huawei Cloud",
|
||||||
SupportedResourceTypes: []model.ResourceType{model.ResourceTypeImage},
|
SupportedResourceTypes: []model.ResourceType{model.ResourceTypeImage},
|
||||||
SupportedResourceFilters: []*model.FilterStyle{},
|
SupportedResourceFilters: []*model.FilterStyle{},
|
||||||
|
@ -25,7 +25,7 @@ const (
|
|||||||
RegistryTypeHarbor RegistryType = "harbor"
|
RegistryTypeHarbor RegistryType = "harbor"
|
||||||
RegistryTypeDockerHub RegistryType = "docker-hub"
|
RegistryTypeDockerHub RegistryType = "docker-hub"
|
||||||
RegistryTypeDockerRegistry RegistryType = "docker-registry"
|
RegistryTypeDockerRegistry RegistryType = "docker-registry"
|
||||||
RegistryTypeHuawei RegistryType = "huawei"
|
RegistryTypeHuawei RegistryType = "huawei-SWR"
|
||||||
|
|
||||||
FilterStyleTypeText = "input"
|
FilterStyleTypeText = "input"
|
||||||
FilterStyleTypeRadio = "radio"
|
FilterStyleTypeRadio = "radio"
|
||||||
|
Loading…
Reference in New Issue
Block a user