mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Rename provider handles to *Provider (#914)
This commit is contained in:
@ -12,8 +12,8 @@ import (
|
||||
|
||||
const defaultAPIBase = "api.name.com"
|
||||
|
||||
// namedotcomAPI describes a connection to the NDC API.
|
||||
type namedotcomAPI struct {
|
||||
// namedotcomProvider describes a connection to the NDC API.
|
||||
type namedotcomProvider struct {
|
||||
APIUrl string `json:"apiurl"`
|
||||
APIUser string `json:"apiuser"`
|
||||
APIKey string `json:"apikey"`
|
||||
@ -39,8 +39,8 @@ func newDsp(conf map[string]string, meta json.RawMessage) (providers.DNSServiceP
|
||||
return newProvider(conf)
|
||||
}
|
||||
|
||||
func newProvider(conf map[string]string) (*namedotcomAPI, error) {
|
||||
api := &namedotcomAPI{
|
||||
func newProvider(conf map[string]string) (*namedotcomProvider, error) {
|
||||
api := &namedotcomProvider{
|
||||
client: namecom.New(conf["apiuser"], conf["apikey"]),
|
||||
}
|
||||
api.client.Server = conf["apiurl"]
|
||||
|
Reference in New Issue
Block a user