Commit Graph

13 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
Aaron W. Swenson 9a473640fb Revert "Update Linode API to v4"
This reverts commit 9a27b38976.

Turns out, the Cloud Manager is not backward compatible, nor is the
Classic Manager forward compatible.
6 years ago
Aaron W. Swenson 9a27b38976 Update Linode API to v4
Linode API has made breaking changes that are resolved by this
update. No user action is required.

Additionally, related README.md entry updated to include new cloud
manager interface.
6 years ago
Jeremy Knope c145f24621 Remove extra space 8 years ago
Jeremy Knope cd3a4573f2 Fix shell check errors 8 years ago
Jeremy Knope ab1efd923b back to sed 8 years ago
Jeremy Knope 8e6cf669ad Try awk instead for \n replacements 8 years ago
Jeremy Knope 29b21b828b Fix DNS API scripts on *BSD
\n isn't available in all regex/sed
8 years ago
Philipp Grosswiler c070407ab2 Fixed Travis CI complaining about missing newline at end of file. 8 years ago
Philipp Grosswiler dd17ac5045 Added instructions on how to get the Linode API key. 8 years ago
Philipp Grosswiler 59182dbc97 Removed Linode CLI dependency. 8 years ago
Philipp Grosswiler 38f2334360 Added support for Linode DNS API. 8 years ago