Commit Graph

18 Commits (fcffe8beb9da574818ee6f53772fcd3bbe737d72)

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
Arnoud Vermeer eae490b5b1 [dns_pdns] Fix: missing content type in PATCH requests #3454 4 years ago
manuel 8636d3139e dnsapi/pdns: also normalize json response in detecting root zone 4 years ago
Nils Sandmann a3f7ff90e3
Used e_grep_o instead grep -Po, dns_pdns_rm() now deletes only entry with matching txt value 7 years ago
Nils Sandmann 893917a25d
Fix travis errors 7 years ago
Nils Sandmann af5ff2bb93
Modified DNSAPI for PowerDNS to support wildcard certificates 7 years ago
Rafael Gieschke 4ae108009c dns_pdns.sh: Allow "." as root zone 7 years ago
Josh Soref 506f36b26d spelling: embedded 8 years ago
Bastian Bittorf 3ca93f4a4c shellcheck: fix several occurences of SC2034
message:
SC2034: $VARNAME appears unused. Verify it or export it.

most of these are related to the style:
we generate global vars, which are used in other functions.

the var "lexical_url" was really unused (left it as comment)

the travis-check now does not need anymore special flags.

Signed-off-by: Bastian Bittorf <bb@npl.de>
8 years ago
klemens 329174b6d9 spelling fixes 8 years ago
magna-z d5c00071d3 Add functional in method dns_pdns_rm() 8 years ago
neilpang 422e5026d6 fix shellcheck warnings 8 years ago
neilpang e9f9f515bd fix shellcheck warnings. 8 years ago
neilpang c7b16249b8 fix shellcheck warnings 8 years ago
neilpang 4c2a384159 Add shfmt to format source code 8 years ago
neilpang 5d6fd8099f add dns_xxx_rm function
https://github.com/Neilpang/acme.sh/issues/79
8 years ago
neilpang b9311282eb minor fix pdns api 8 years ago
Maxim Zalysin d6f0c2b52b Add support PowerDNS API (#322)
* Add support PowerDNS API

* Small fixes
8 years ago