mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 07:37:38 +01:00
fix SWR replication adapter pull-based
Signed-off-by: Ziming Zhang <zziming@vmware.com>
This commit is contained in:
parent
bad8f026fc
commit
e7c89ce1d9
@ -62,8 +62,20 @@ func (a *adapter) Info() (*model.RegistryInfo, error) {
|
|||||||
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