Commit Graph

15 Commits (9c25365b1222ad944f585d043f888f6dbd7f0b0d)

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
Sander Cox 074cf00a7c
Update dns_gcloud.sh rm logs record added
The logs show record was added twice but the second time was actual the rm command thus the removal of the record!
1 year ago
neil e947870da9 minor 2 years ago
Reto Schüttel c2b14d3075 dns_gcloud: disable argument parsing for challenges
fixes #3596
3 years ago
Reto Schuettel 401fd37e35 dns_gcloud: allowrecord-sets list output to be separated by 'semicolon'
gcloud dns record-sets list used to separate records by comma, with
version 353.0.0 the tool uses semicolons instead.
3 years ago
neil 19c4345162 fix shfmt 5 years ago
Andrey Tuzhilin 70fdb1042f fix: added public dns zones filter 5 years ago
Kay Roepke 145b1f4fb3
Improve compatibility with *BSD xargs
The --no-run-if-empty option is a GNU extension and the long version isn't supported by *BSD variants.
Instead use the short version (-r) which is present, but ignored as it is the default behavior, in at least FreeBSD: https://www.freebsd.org/cgi/man.cgi?xargs
6 years ago
chasefox 4aa488f48b
Formatting - indentation
I think this is what CI wants....
6 years ago
chasefox 2d72b25c43
CI wanted double-quote 6 years ago
chasefox f23b0aacd7
Remove here string
CI doesn't want here strings
6 years ago
Matthew R Chase 98d27c4a6a Fix most-specific zone match
Most specific zone selected by deepest sub-domain (how many '.' in the domain)
rather than seemingly irrelevant count of the number of characters within the zone.
6 years ago
Janos Lenart 441f8f3ce8 Replied to PR comments 7 years ago
Janos Lenart 167758003c Fixed shfmt (dns_gcloud) 7 years ago
Janos Lenart 0a3ac1f5c3 Added support for Google Cloud DNS API (dns_gcloud) 7 years ago