Skip to content

Commit

Permalink
dns access
Browse files Browse the repository at this point in the history
  • Loading branch information
lvyangyang committed Sep 10, 2020
1 parent fb7b5d5 commit 70297e3
Show file tree
Hide file tree
Showing 25 changed files with 2,579 additions and 79 deletions.
9 changes: 5 additions & 4 deletions pkg/apis/compute/dnsrecordsets.go
Expand Up @@ -35,10 +35,11 @@ type DnsRecordPolicy struct {
type DnsRecordSetCreateInput struct {
apis.EnabledStatusStandaloneResourceCreateInput

DnsZoneId string `json:"dns_zone_id"`
DnsType string `json:"dns_type"`
DnsValue string `json:"dns_value"`
TTL int64 `json:"ttl"`
DnsZoneId string `json:"dns_zone_id"`
DnsType string `json:"dns_type"`
DnsValue string `json:"dns_value"`
TTL int64 `json:"ttl"`
MxPriority int64 `json:"mx_priority"`

TrafficPolicies []DnsRecordPolicy `json:"traffic_policies"`
}
Expand Down
5 changes: 5 additions & 0 deletions pkg/cloudprovider/cloudprovider.go
Expand Up @@ -208,6 +208,7 @@ type ICloudProviderFactory interface {
GetSupportedDnsTypes() map[TDnsZoneType][]TDnsType
GetSupportedDnsPolicyTypes() map[TDnsZoneType][]TDnsPolicyType
GetSupportedDnsPolicyValues() map[TDnsPolicyType][]TDnsPolicyValue
GetTTLRange(zoneType TDnsZoneType, productType TDnsProductType) TTlRange
}

type ICloudProvider interface {
Expand Down Expand Up @@ -613,6 +614,10 @@ func (factory *baseProviderFactory) GetSupportedDnsPolicyValues() map[TDnsPolicy
return map[TDnsPolicyType][]TDnsPolicyValue{}
}

func (factory *baseProviderFactory) GetTTLRange(zoneType TDnsZoneType, productType TDnsProductType) TTlRange {
return TTlRange{}
}

type SDnsCapability struct {
ZoneTypes []TDnsZoneType
DnsTypes map[TDnsZoneType][]TDnsType
Expand Down

0 comments on commit 70297e3

Please sign in to comment.