mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2025-11-10 00:10:36 +08:00
gofmt cleanups (#1217)
* Create codeql-config.yml * Update codeql-analysis.yml Add config to exclude certain files * Run gofmt on a few files as reported by goreportcard.com
This commit is contained in:
parent
81d3281185
commit
a6b9609cd5
3 changed files with 3 additions and 3 deletions
|
|
@ -42,7 +42,7 @@ func generateFeatureMatrix() error {
|
||||||
{"R53_ALIAS", "Provider supports Route 53 limited ALIAS"},
|
{"R53_ALIAS", "Provider supports Route 53 limited ALIAS"},
|
||||||
{"AZURE_ALIAS", "Provider supports Azure DNS limited ALIAS"},
|
{"AZURE_ALIAS", "Provider supports Azure DNS limited ALIAS"},
|
||||||
{"DS", "Provider supports adding DS records"},
|
{"DS", "Provider supports adding DS records"},
|
||||||
{ "AKAMAICDN", "Provider supports adding AKAMAICDN records"},
|
{"AKAMAICDN", "Provider supports adding AKAMAICDN records"},
|
||||||
|
|
||||||
{"dual host", "This provider is recommended for use in 'dual hosting' scenarios. Usually this means the provider allows full control over the apex NS records"},
|
{"dual host", "This provider is recommended for use in 'dual hosting' scenarios. Usually this means the provider allows full control over the apex NS records"},
|
||||||
{"create-domains", "This means the provider can automatically create domains that do not currently exist on your account. The 'dnscontrol create-domains' command will initialize any missing domains"},
|
{"create-domains", "This means the provider can automatically create domains that do not currently exist on your account. The 'dnscontrol create-domains' command will initialize any missing domains"},
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ func newProvider(apiKey string, secretKey string, sandbox bool, debug bool) *dns
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("Creating DNSMADEEASY provider for %q\n", baseURL)
|
fmt.Printf("Creating DNSMADEEASY provider for %q\n", baseURL)
|
||||||
|
|
||||||
return &dnsMadeEasyProvider{
|
return &dnsMadeEasyProvider{
|
||||||
restAPI: &dnsMadeEasyRestAPI{
|
restAPI: &dnsMadeEasyRestAPI{
|
||||||
apiKey: apiKey,
|
apiKey: apiKey,
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ func fromRecordConfig(rc *models.RecordConfig) *recordRequestData {
|
||||||
|
|
||||||
func systemNameServerToRecordConfig(domain string, nameServer string) *models.RecordConfig {
|
func systemNameServerToRecordConfig(domain string, nameServer string) *models.RecordConfig {
|
||||||
// DNS Made Easy does not allow the system name servers to be edited, and said records appear to always have a fixed TTL of 86400.
|
// DNS Made Easy does not allow the system name servers to be edited, and said records appear to always have a fixed TTL of 86400.
|
||||||
const fixedNameServerRecordTTL = 86400;
|
const fixedNameServerRecordTTL = 86400
|
||||||
|
|
||||||
target := nameServer + "."
|
target := nameServer + "."
|
||||||
return toRecordConfig(domain, &recordResponseDataEntry{Type: "NS", Value: target, TTL: fixedNameServerRecordTTL})
|
return toRecordConfig(domain, &recordResponseDataEntry{Type: "NS", Value: target, TTL: fixedNameServerRecordTTL})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue