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,25 @@
package dnsproviders
const infobloxSchema = `
{
"type": "object",
"required": [
"credentials",
"server"
],
"additionalProperties": false,
"properties": {
"credentials": {
"type": "string",
"minLength": 1
},
"server": {
"type": "string",
"minLength": 1
}
}
}
`
func getDNSInfoblox() Provider {
return Provider{
AcmeshName: "dns_infoblox",
Schema: infobloxSchema,
Fields: []providerField{
{
Name: "Credentials",
Type: "text",
MetaKey: "credentials",
EnvKey: "Infoblox_Creds",
IsRequired: true,
IsSecret: true,
Title: "dns_infoblox",
Type: "object",
AdditionalProperties: false,
Required: []string{
"Infoblox_Creds",
"Infoblox_Server",
},
Properties: map[string]providerField{
"Infoblox_Creds": {
Title: "credentials",
Type: "string",
MinLength: 1,
IsSecret: true,
},
{
Name: "Server",
Type: "text",
MetaKey: "server",
EnvKey: "Infoblox_Server",
IsRequired: true,
"Infoblox_Server": {
Title: "server",
Type: "string",
MinLength: 1,
},
},
}