1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00

Internal: deps updates and linting (#905)

* Update dependencies
* writing-providers.md: Update for Go Mod, etc.
* Linting pkg/version
* s/CloudflareAPI/api/g
* s/ApiKey/APIKey/g
* s/ApiToken/APIToken/g
* s/ApiUser/APIUser/g
This commit is contained in:
Tom Limoncelli
2020-10-18 14:04:50 -04:00
committed by GitHub
parent ac3ee9afea
commit 3a2b1b2f7b
9 changed files with 111 additions and 70 deletions

View File

@@ -37,7 +37,7 @@ func newProvider(conf map[string]string) (*HXClient, error) {
api := &HXClient{
client: hxcl.NewAPIClient(),
}
api.client.SetUserAgent("DNSControl", version.VersionString())
api.client.SetUserAgent("DNSControl", version.Banner())
api.APILogin, api.APIPassword, api.APIEntity = conf["apilogin"], conf["apipassword"], conf["apientity"]
if conf["debugmode"] == "1" {
api.client.EnableDebugMode()