Commit Graph

23 Commits (master)

Author SHA1 Message Date
neil e0381dd757 fix format 4 months ago
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
neilpang 653c77e852 update 6 years ago
neilpang 2b36f4f57f update 6 years ago
neilpang 3f35006c26 fix error message 6 years ago
James Gibson 9c88971bc1 Use internal base64 util instead of PATH bin/ 7 years ago
raidenii 3052ba433a Fix an obvious stupidity. 7 years ago
raidenii 508012342d Make sure the removal of DNS record is the desired one (i.e., by txtvalue) 7 years ago
raidenii 9fa207e613 Move code to fit DNS API dev guide. 7 years ago
raidenii 628a6ffa07 Tried to fix some weird problems 7 years ago
raidenii 3e1a94cbcd Yet another fix. 7 years ago
raidenii a6c2d4b0e2 Another fix. 7 years ago
raidenii 19277aec87 Use printf instead of echo, hopefully fix SC2039. 7 years ago
raidenii 50a9145386 Rewrote to adapt the new name.com v4 API. 7 years ago
RaidenII 7b32bbfc26 Fix for SC2086. 8 years ago
RaidenII 6963f3880d Fixes the get_root function so that when domain doesn't exist it will correctly return error. 8 years ago
RaidenII 2e602ef6b0 Added ret value verification. 8 years ago
RaidenII 63c6ed3fd0 Fixes to follow coding standards. 8 years ago
RaidenII 17fbfd14db Minor fixes. 8 years ago
RaidenII eeda3062e1 Fix against POSIX standard. 8 years ago
RaidenII 168d712dec Fixed URL of Name.com API and removed useless debug for retcode. 8 years ago
RaidenII e64ad5176e Added Name.com API support.
Minor change to DuckDNS API support.
8 years ago