mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
remove unused parameters
This commit is contained in:
@@ -31,7 +31,7 @@ func newAzureDNSDsp(conf map[string]string, metadata json.RawMessage) (providers
|
||||
return newAzureDNS(conf, metadata)
|
||||
}
|
||||
|
||||
func newAzureDNS(m map[string]string, metadata json.RawMessage) (*azurednsProvider, error) {
|
||||
func newAzureDNS(m map[string]string, _ json.RawMessage) (*azurednsProvider, error) {
|
||||
subID, rg := m["SubscriptionID"], m["ResourceGroup"]
|
||||
clientID, clientSecret, tenantID := m["ClientID"], m["ClientSecret"], m["TenantID"]
|
||||
credential, authErr := aauth.NewClientSecretCredential(tenantID, clientID, clientSecret, nil)
|
||||
|
@@ -3,6 +3,7 @@ package bunnydns
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
|
||||
"github.com/StackExchange/dnscontrol/v4/models"
|
||||
"github.com/StackExchange/dnscontrol/v4/providers"
|
||||
)
|
||||
|
@@ -82,7 +82,7 @@ func newReg(conf map[string]string) (providers.Registrar, error) {
|
||||
}
|
||||
|
||||
// newHelper generates a handle.
|
||||
func newHelper(m map[string]string, metadata json.RawMessage) (*gandiv5Provider, error) {
|
||||
func newHelper(m map[string]string, _ json.RawMessage) (*gandiv5Provider, error) {
|
||||
api := &gandiv5Provider{}
|
||||
api.apikey = m["apikey"]
|
||||
if api.apikey == "" {
|
||||
|
@@ -78,7 +78,7 @@ func newReg(conf map[string]string) (providers.Registrar, error) {
|
||||
}
|
||||
|
||||
// newHelper generates a handle.
|
||||
func newHelper(m map[string]string, metadata json.RawMessage) (*APIClient, error) {
|
||||
func newHelper(m map[string]string, _ json.RawMessage) (*APIClient, error) {
|
||||
if m["username"] == "" {
|
||||
return nil, fmt.Errorf("missing Loopia API username")
|
||||
}
|
||||
|
@@ -31,7 +31,7 @@ var features = providers.DocumentationNotes{
|
||||
providers.DocOfficiallySupported: providers.Cannot(),
|
||||
}
|
||||
|
||||
func newOVH(m map[string]string, metadata json.RawMessage) (*ovhProvider, error) {
|
||||
func newOVH(m map[string]string, _ json.RawMessage) (*ovhProvider, error) {
|
||||
appKey, appSecretKey, consumerKey := m["app-key"], m["app-secret-key"], m["consumer-key"]
|
||||
|
||||
c, err := ovh.NewClient(getOVHEndpoint(m), appKey, appSecretKey, consumerKey)
|
||||
|
@@ -34,7 +34,7 @@ func newDsp(conf map[string]string, metadata json.RawMessage) (providers.DNSServ
|
||||
}
|
||||
|
||||
// newPorkbun creates the provider.
|
||||
func newPorkbun(m map[string]string, metadata json.RawMessage) (*porkbunProvider, error) {
|
||||
func newPorkbun(m map[string]string, _ json.RawMessage) (*porkbunProvider, error) {
|
||||
c := &porkbunProvider{}
|
||||
|
||||
c.apiKey, c.secretKey = m["api_key"], m["secret_key"]
|
||||
|
@@ -3,14 +3,15 @@ package realtimeregister
|
||||
import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/StackExchange/dnscontrol/v4/models"
|
||||
"github.com/StackExchange/dnscontrol/v4/pkg/diff2"
|
||||
"github.com/StackExchange/dnscontrol/v4/providers"
|
||||
"github.com/miekg/dns/dnsutil"
|
||||
"golang.org/x/exp/slices"
|
||||
"sort"
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
/*
|
||||
@@ -54,7 +55,7 @@ func init() {
|
||||
providers.RegisterRegistrarType("REALTIMEREGISTER", newRtrReg)
|
||||
}
|
||||
|
||||
func newRtr(config map[string]string, metadata json.RawMessage) (*realtimeregisterAPI, error) {
|
||||
func newRtr(config map[string]string, _ json.RawMessage) (*realtimeregisterAPI, error) {
|
||||
apikey := config["apikey"]
|
||||
sandbox := config["sandbox"] == "1"
|
||||
|
||||
|
@@ -43,7 +43,7 @@ func newRoute53Dsp(conf map[string]string, metadata json.RawMessage) (providers.
|
||||
return newRoute53(conf, metadata)
|
||||
}
|
||||
|
||||
func newRoute53(m map[string]string, metadata json.RawMessage) (*route53Provider, error) {
|
||||
func newRoute53(m map[string]string, _ json.RawMessage) (*route53Provider, error) {
|
||||
optFns := []func(*config.LoadOptions) error{
|
||||
// Route53 uses a global endpoint and route53domains
|
||||
// currently only has a single regional endpoint in us-east-1
|
||||
|
Reference in New Issue
Block a user