internal/build: extract registry operator name from ICANN gTLD feed
Randy Reddig
2 years ago
75 | 75 | Trace("@{y}Brand gTLD without ICANN Specification 13: @{y!}%s\n", z.Domain) |
76 | 76 | } |
77 | 77 | |
78 | // Extract registry operator | |
79 | if g.RegistryOperator != "" { | |
80 | z.RegistryOperator = g.RegistryOperator | |
81 | modified = true | |
82 | } | |
83 | ||
78 | 84 | if modified { |
79 | 85 | zonesModified++ |
80 | 86 | } |
97 | 103 | RegistryOperator string `json:"registryOperator"` |
98 | 104 | RegistryOperatorCountryCode *string `json:"registryOperatorCountryCode"` // (always null) |
99 | 105 | RemovalDate ISODate `json:"removalDate"` |
100 | Specification13 bool `json:"specification13"` // Brand TLD | |
101 | ThirdOrLowerLevelRegistration bool `json:"thirdOrLowerLevelRegistration"` | |
102 | ULabel string `json:"uLabel"` // Unicode IDN label | |
106 | Specification13 bool `json:"specification13"` // Brand TLD | |
107 | ThirdOrLowerLevelRegistration bool `json:"thirdOrLowerLevelRegistration"` // (always false or null) | |
108 | ULabel string `json:"uLabel"` // Unicode IDN label | |
103 | 109 | } `json:"gTLDs"` |
104 | 110 | // UpdatedOn time.Time `json:"updatedOn"` // Ignored because of nonstandard format |
105 | 111 | Version int `json:"version"` |
12 | 12 | |
13 | 13 | // Zone represents a build-time DNS zone (public suffix). |
14 | 14 | type Zone struct { |
15 | Domain string `json:"domain,omitempty"` | |
16 | InfoURL string `json:"infoURL,omitempty"` | |
17 | WhoisServer string `json:"whoisServer,omitempty"` | |
18 | WhoisURL string `json:"whoisURL,omitempty"` | |
19 | RDAPURLs []string `json:"rdapURLs,omitempty"` | |
20 | NameServers []string `json:"nameServers,omitempty"` | |
21 | Wildcards []string `json:"wildcards,omitempty"` | |
22 | Locations []string `json:"locations,omitempty"` | |
23 | Languages []string `json:"languages,omitempty"` | |
24 | Tags []string `json:"tags,omitempty"` | |
25 | Policies []Policy `json:"policies,omitempty"` | |
15 | Domain string `json:"domain,omitempty"` | |
16 | RegistryOperator string `json:"registryOperator,omitempty"` | |
17 | InfoURL string `json:"infoURL,omitempty"` | |
18 | WhoisServer string `json:"whoisServer,omitempty"` | |
19 | WhoisURL string `json:"whoisURL,omitempty"` | |
20 | RDAPURLs []string `json:"rdapURLs,omitempty"` | |
21 | NameServers []string `json:"nameServers,omitempty"` | |
22 | Wildcards []string `json:"wildcards,omitempty"` | |
23 | Locations []string `json:"locations,omitempty"` | |
24 | Languages []string `json:"languages,omitempty"` | |
25 | Tags []string `json:"tags,omitempty"` | |
26 | Policies []Policy `json:"policies,omitempty"` | |
26 | 27 | |
27 | 28 | // Internal |
28 | 29 | subdomains []string |