Commit Graph

17 Commits (2997a15ba8f09c55153b4cc8d2644c23585004e0)

Author SHA1 Message Date
neil 7362e8de4d fix format 4 months ago
Sergey Ponomarev 6b7b5caf54 DNS provider API: structured description
Instead of using comments declare info in a special variable.
Then the variable can be used to print the DNS API provider usage.
The usage can be parsed on UI and show all needed inputs for options.

The info is stored in plain string that it's both human-readable and easy to parse:

    dns_example_info='API name
     An extended description.
     Multiline.
    Domains: list of alternative domains to find
    Site: the dns provider website e.g. example.com
    Docs: Link to ACME.sh wiki for the provider
    Options:
     VARIABLE1 Title for the option1.
     VARIABLE2 Title for the option2. Default "default value".
     VARIABLE3 Title for the option3. Description to show on UI. Optional.
    Issues: Link to a support ticket on https://github.com/acmesh-official/acme.sh
    Author: First Lastname <authoremail@example.com>, Another Author <https://github.com/example>;
    '

Here:
VARIABLE1 will be required.
VARIABLE2 will be required too but will be populated with a "default value".
VARIABLE3 is optional and can be empty.

A DNS provider may have alternative options like CloudFlare may use API KEY or API Token.
You can use a second section OptionsAlt: section.

Some providers may have alternative names or domains e.g. Aliyun and AlibabaCloud.
Add them to Domains: section.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
9 months ago
robertoetcheverryr f80276584f Added check for Authentication failure in dns_dynu module 5 years ago
Ben Edmunds 68c5c366f4 dnsapi update dynu for api v2 6 years ago
neilpang eef4acd07d fix https://github.com/Neilpang/acme.sh/issues/874 8 years ago
shar0119 2310a9bbc0 Removed grep -Po
Removed usage of grep -Po.
8 years ago
shar0119 8470c60e06 Using _egrep_o() instead of grep -o -e
Modified code to use egrep instead of grep -o -e.
8 years ago
shar0119 394b1002b3 Corrected formatting error.
Part of dns_dynu_rm() impementation.
8 years ago
shar0119 9a61d6293d Implemented dns_dynu_rm()
Implemented dns_dynu_rm() method.
8 years ago
shar0119 6d7f6750e9 Updated author name and link to report bugs 8 years ago
shar0119 695482ded7 Added author name and link to report bugs 8 years ago
shar0119 e137792efd Commented out Dynu_ClientId and Dynu_Secret 8 years ago
shar0119 b7b934913e Removed unnecessary spaces 8 years ago
shar0119 cd8fcbf9c6 Spaces in assignment removed. 8 years ago
shar0119 d0300d4443 Changes as requested per Commit 9c90b21
In dnsapi/dns_dynu.sh line 115:
  export _H1="Authorization: Basic $(printf "%s" "$Dynu_ClientId:$Dynu_Secret" | _base64)"
         ^-- SC2155: Declare and assign separately to avoid masking return values.
8 years ago
shar0119 5c78e0a462 removed source acme.sh 8 years ago
shar0119 7044236824 Create dns_dynu.sh
Add DNS API support for Dynu.
8 years ago