Refactor acme.sh dns providers

- updated chakra and typescript
- added locales for dns provider configs
This commit is contained in:
Jamie Curnow
2023-01-12 16:25:43 +10:00
parent 1d5d3ecd7a
commit 5d3bc0fabd
57 changed files with 2204 additions and 2161 deletions

View File

@ -1,45 +1,24 @@
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,
Title: "dns_servercow",
AdditionalProperties: false,
Required: []string{
"SERVERCOW_API_Username",
"SERVERCOW_API_Password",
},
Properties: map[string]providerField{
"SERVERCOW_API_Username": {
Title: "user",
Type: "string",
MinLength: 1,
},
{
Name: "Password",
Type: "password",
MetaKey: "password",
EnvKey: "SERVERCOW_API_Password",
IsRequired: true,
IsSecret: true,
"SERVERCOW_API_Password": {
Title: "password",
Type: "string",
MinLength: 1,
IsSecret: true,
},
},
}