From d1bb22d768f62dff8622630c18b3d6ed111ed8b6 Mon Sep 17 00:00:00 2001 From: Jamie Curnow Date: Wed, 1 Jun 2022 08:49:31 +0400 Subject: [PATCH] dns_inwx --- backend/internal/dnsproviders/common.go | 1 + backend/internal/dnsproviders/dns_inwx.go | 46 +++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 backend/internal/dnsproviders/dns_inwx.go diff --git a/backend/internal/dnsproviders/common.go b/backend/internal/dnsproviders/common.go index 5b155efe..ed11dc49 100644 --- a/backend/internal/dnsproviders/common.go +++ b/backend/internal/dnsproviders/common.go @@ -54,6 +54,7 @@ func List() []Provider { getDNSGd(), getDNSHe(), getDNSInfoblox(), + getDNSInwx(), getDNSIspconfig(), getDNSLinodeV4(), getDNSLua(), diff --git a/backend/internal/dnsproviders/dns_inwx.go b/backend/internal/dnsproviders/dns_inwx.go new file mode 100644 index 00000000..1142f597 --- /dev/null +++ b/backend/internal/dnsproviders/dns_inwx.go @@ -0,0 +1,46 @@ +package dnsproviders + +const inwxSchema = ` +{ + "type": "object", + "required": [ + "user", + "password" + ], + "additionalProperties": false, + "properties": { + "user": { + "type": "string", + "minLength": 1 + }, + "password": { + "type": "string", + "minLength": 1 + } + } +} +` + +func getDNSInwx() Provider { + return Provider{ + AcmeshName: "dns_inwx", + Schema: inwxSchema, + Fields: []providerField{ + { + Name: "User", + Type: "text", + MetaKey: "user", + EnvKey: "INWX_User", + IsRequired: true, + }, + { + Name: "Password", + Type: "password", + MetaKey: "password", + EnvKey: "INWX_Password", + IsRequired: true, + IsSecret: true, + }, + }, + } +}