dns_servercow

This commit is contained in:
Jamie Curnow 2022-06-01 08:51:23 +04:00
parent d1bb22d768
commit 5729dddaf9
2 changed files with 47 additions and 0 deletions

View File

@ -60,6 +60,7 @@ func List() []Provider {
getDNSLua(),
getDNSMe(),
getDNSNamecom(),
getDNSServercow(),
getDNSOne(),
getDNSPDNS(),
getDNSUnoeuro(),

View File

@ -0,0 +1,46 @@
package dnsproviders
const servercowSchema = `
{
"type": "object",
"required": [
"user",
"password"
],
"additionalProperties": false,
"properties": {
"user": {
"type": "string",
"minLength": 1
},
"password": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSServercow() Provider {
return Provider{
AcmeshName: "dns_servercow",
Schema: servercowSchema,
Fields: []providerField{
{
Name: "User",
Type: "text",
MetaKey: "user",
EnvKey: "SERVERCOW_API_Username",
IsRequired: true,
},
{
Name: "Password",
Type: "password",
MetaKey: "password",
EnvKey: "SERVERCOW_API_Password",
IsRequired: true,
IsSecret: true,
},
},
}
}