Commit Graph

23 Commits

Author SHA1 Message Date
neil
e0381dd757 fix format 2024-10-13 17:55:22 +02:00
neil
7362e8de4d fix format 2024-10-13 17:41:22 +02:00
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>
2024-05-18 12:06:41 +03:00
neilpang
653c77e852 update 2019-03-16 15:09:49 +08:00
neilpang
2b36f4f57f update 2019-03-16 15:07:34 +08:00
neilpang
3f35006c26 fix error message 2019-03-16 14:35:33 +08:00
James Gibson
9c88971bc1 Use internal base64 util instead of PATH bin/ 2018-03-23 14:46:54 -06:00
raidenii
3052ba433a Fix an obvious stupidity. 2018-03-04 17:27:34 -05:00
raidenii
508012342d Make sure the removal of DNS record is the desired one (i.e., by txtvalue) 2018-03-04 17:22:13 -05:00
raidenii
9fa207e613 Move code to fit DNS API dev guide. 2018-03-04 14:13:14 -05:00
raidenii
628a6ffa07 Tried to fix some weird problems 2018-03-01 15:03:28 -05:00
raidenii
3e1a94cbcd Yet another fix. 2018-03-01 14:43:08 -05:00
raidenii
a6c2d4b0e2 Another fix. 2018-03-01 14:38:49 -05:00
raidenii
19277aec87 Use printf instead of echo, hopefully fix SC2039. 2018-03-01 14:29:14 -05:00
raidenii
50a9145386 Rewrote to adapt the new name.com v4 API. 2018-03-01 14:19:43 -05:00
RaidenII
7b32bbfc26 Fix for SC2086. 2017-07-03 08:22:16 -04:00
RaidenII
6963f3880d Fixes the get_root function so that when domain doesn't exist it will correctly return error. 2017-07-03 03:28:28 -07:00
RaidenII
2e602ef6b0 Added ret value verification. 2017-07-02 04:45:07 -07:00
RaidenII
63c6ed3fd0 Fixes to follow coding standards. 2017-07-01 05:14:52 -07:00
RaidenII
17fbfd14db Minor fixes. 2017-06-30 08:32:39 -04:00
RaidenII
eeda3062e1 Fix against POSIX standard. 2017-06-29 15:40:29 -04:00
RaidenII
168d712dec Fixed URL of Name.com API and removed useless debug for retcode. 2017-06-29 09:43:11 -04:00
RaidenII
e64ad5176e Added Name.com API support.
Minor change to DuckDNS API support.
2017-06-28 16:15:57 -04:00