mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 23:57:42 +01:00
Merge pull request #12502 from bitsf/fix_replication_swr_pull
fix SWR replication adapter pull-based
This commit is contained in:
commit
a11c2f32da
@ -59,11 +59,23 @@ 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: model.RegistryTypeHuawei,
|
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{
|
||||||
SupportedTriggers: []model.TriggerType{},
|
{
|
||||||
|
Type: model.FilterTypeName,
|
||||||
|
Style: model.FilterStyleTypeText,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
Type: model.FilterTypeTag,
|
||||||
|
Style: model.FilterStyleTypeText,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
SupportedTriggers: []model.TriggerType{
|
||||||
|
model.TriggerTypeManual,
|
||||||
|
model.TriggerTypeScheduled,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
return ®istryInfo, nil
|
return ®istryInfo, nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user