Format code
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
1035610be0
commit
11b0a4d439
|
@ -29,14 +29,14 @@ import (
|
|||
)
|
||||
|
||||
type InternetbsAPI struct {
|
||||
ApiKey string `json:"apikey,omitempty" happydomain:"label=API Key,placeholder=xxxxxxxx,required,description=Your API key."`
|
||||
Password string `json:"password,omitempty" happydomain:"label=Password,placeholder=xxxxxxxx,required,description=Your account password."`
|
||||
ApiKey string `json:"apikey,omitempty" happydomain:"label=API Key,placeholder=xxxxxxxx,required,description=Your API key."`
|
||||
Password string `json:"password,omitempty" happydomain:"label=Password,placeholder=xxxxxxxx,required,description=Your account password."`
|
||||
}
|
||||
|
||||
func (s *InternetbsAPI) NewDNSServiceProvider() (providers.DNSServiceProvider, error) {
|
||||
config := map[string]string{
|
||||
"api-key": s.ApiKey,
|
||||
"password": s.Password,
|
||||
"api-key": s.ApiKey,
|
||||
"password": s.Password,
|
||||
}
|
||||
return providers.CreateDNSProvider(s.DNSControlName(), config, nil)
|
||||
}
|
||||
|
|
|
@ -29,16 +29,16 @@ import (
|
|||
)
|
||||
|
||||
type OpensrsAPI struct {
|
||||
ApiKey string `json:"apiKey,omitempty" happydomain:"label=API key,placeholder=xxxxxxxx,required,description=Your API key."`
|
||||
ApiKey string `json:"apiKey,omitempty" happydomain:"label=API key,placeholder=xxxxxxxx,required,description=Your API key."`
|
||||
Username string `json:"username,omitempty" happydomain:"label=Username,placeholder=xxxxxxxx,required,description=Your username."`
|
||||
BaseUrl string `json:"base_url,omitempty" happydomain:"label=Base URL,placeholder=xxxxxxxx,description=Alternate base URL."`
|
||||
BaseUrl string `json:"base_url,omitempty" happydomain:"label=Base URL,placeholder=xxxxxxxx,description=Alternate base URL."`
|
||||
}
|
||||
|
||||
func (s *OpensrsAPI) NewDNSServiceProvider() (providers.DNSServiceProvider, error) {
|
||||
config := map[string]string{
|
||||
"apikey": s.ApiKey,
|
||||
"apikey": s.ApiKey,
|
||||
"username": s.Username,
|
||||
"baseurl": s.BaseUrl,
|
||||
"baseurl": s.BaseUrl,
|
||||
}
|
||||
return providers.CreateDNSProvider(s.DNSControlName(), config, nil)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue