feat(region): allow to update account with provider vmware

This commit is contained in:
rainzm
2021-04-12 15:56:42 +08:00
parent fc62085cf9
commit 12d1aa805d
3 changed files with 32 additions and 1 deletions
+11
View File
@@ -225,6 +225,8 @@ type ICloudProviderFactory interface {
GetTTLRange(zoneType TDnsZoneType, productType TDnsProductType) TTlRange
IsSupportSAMLAuth() bool
GetAccountIdEqualizer() func(origin, now string) bool
}
type ICloudProvider interface {
@@ -711,6 +713,15 @@ func (factory *baseProviderFactory) GetTTLRange(zoneType TDnsZoneType, productTy
return TTlRange{}
}
func (factory *baseProviderFactory) GetAccountIdEqualizer() func(origin, now string) bool {
return func(origin, now string) bool {
if len(now) > 0 && now != origin {
return false
}
return true
}
}
type SDnsCapability struct {
ZoneTypes []TDnsZoneType
DnsTypes map[TDnsZoneType][]TDnsType