Commit Graph

30 Commits (4f96a2a6679a7093ef36b8746431d32dcd5e2253)

Author SHA1 Message Date
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
Bjarne Saltbaek 9feeba8d4b Forgot to apply the changed default return value 2 years ago
Bjarne Saltbaek 45090fc897 Better way to catch success or failure 2 years ago
Bjarne Saltbaek 2fb9c923f4 push for re-test 3 years ago
Bjarne Saltbaek c485011ed1 Multidomain patch suggestion from Sandeep Mittal 3 years ago
Bjarne Saltbaek 1d2af0f291 force a re-test. 3 years ago
Bjarne Saltbaek e11d0d37ee force a re-test. Le servere fails during test 3 years ago
Bjarne Saltbaek ea4266538a force a re-test 3 years ago
Bjarne Saltbaek a95e83ab6e Added txtvalue to dns lookup 3 years ago
Bjarne Saltbaek 86daaf4bf2 Added remove entry debug 3 years ago
Bjarne Saltbaek d5b4f02932 Added proper id lookup with whitespace removed 3 years ago
Bjarne Saltbaek 15deec6c53 Added proper id lookup with missing bracket 3 years ago
Bjarne Saltbaek 17b1875151 Added proper id lookup 3 years ago
Bjarne Saltbaek bfda8f0b8a First jq rework - 12. redo 3 years ago
Bjarne Saltbaek 7bb0ff986b First jq rework - 11. redo 3 years ago
Bjarne Saltbaek f3cfef4021 First jq rework - 10. redo 3 years ago
Bjarne Saltbaek 3184c3c21b First jq rework - 9. redo 3 years ago
Bjarne Saltbaek 9264737985 First jq rework - 8. redo 3 years ago
Bjarne Saltbaek c9b353a689 First jq rework - 8. redo 3 years ago
Bjarne Saltbaek fda6502f33 First jq rework - 7. redo 3 years ago
Bjarne Saltbaek 0fdac82b93 First jq rework - 6. redo 3 years ago
Bjarne Saltbaek 6b3d6d5211 First jq rework - 5. redo 3 years ago
Bjarne Saltbaek be827be742 First jq rework - 4. redo 3 years ago
Bjarne Saltbaek 8339b88180 First jq rework - docker fails in Github - not my fault... 3 years ago
Bjarne Saltbaek 608547c62c First jq rework - 3. redo 3 years ago
Bjarne Saltbaek bd00db4292 First jq rework - redo 3 years ago
Bjarne Saltbaek 68debc474a First jq rework 3 years ago
Bjarne Saltbaek 6a7f993a9a Forced CI 3 years ago
Bjarne Saltbaek d2d023cca7 added saving of cPanel_Hostname 3 years ago
Bjarne Saltbaek 7f9b8d68ac Added dns-cpanel.sh as support for cPanel controlled DNS systems 3 years ago