dns_conoha, dns_dpi, dns_euserv, dns_tele3

This commit is contained in:
Jamie Curnow
2022-06-01 13:23:56 +04:00
parent 523449f050
commit b221446bb0
6 changed files with 207 additions and 0 deletions

View File

@ -0,0 +1,50 @@
package dnsproviders
const euservSchema = `
{
"type": "object",
"required": [
"user",
"password"
],
"additionalProperties": false,
"properties": {
"user": {
"type": "string",
"minLength": 1
},
"password": {
"type": "string",
"minLength": 1
},
"otp_secret": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSEuserv() Provider {
return Provider{
AcmeshName: "dns_euserv",
Schema: euservSchema,
Fields: []providerField{
{
Name: "User",
Type: "text",
MetaKey: "user",
EnvKey: "EUSERV_Username",
IsRequired: true,
},
{
Name: "Password",
Type: "password",
MetaKey: "password",
EnvKey: "EUSERV_Password",
IsRequired: true,
IsSecret: true,
},
},
}
}