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,70 @@
package dnsproviders
const conohaSchema = `
{
"type": "object",
"required": [
"subscription_id",
"tenant_id",
"app_id",
"client_secret"
],
"additionalProperties": false,
"properties": {
"api_url": {
"type": "string",
"minLength": 4
},
"user": {
"type": "string",
"minLength": 1
},
"pass": {
"type": "string",
"minLength": 1
},
"tenant_id": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSConoha() Provider {
return Provider{
AcmeshName: "dns_conoha",
Schema: conohaSchema,
Fields: []providerField{
{
Name: "API URL",
Type: "text",
MetaKey: "api_url",
EnvKey: "CONOHA_IdentityServiceApi",
IsRequired: true,
},
{
Name: "Username",
Type: "text",
MetaKey: "user",
EnvKey: "CONOHA_Username",
IsRequired: true,
},
{
Name: "Password",
Type: "password",
MetaKey: "password",
EnvKey: "CONOHA_Password",
IsRequired: true,
IsSecret: true,
},
{
Name: "Tenant ID",
Type: "text",
MetaKey: "tenant_id",
EnvKey: "CONOHA_TenantId",
IsRequired: true,
},
},
}
}