Skip to content

Commit b523518

Browse files
authored
ipv64: remove unused option (go-acme#2022)
1 parent d0aa6b3 commit b523518

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

cmd/zz_gen_cmd_dnshelp.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,8 @@ func displayDNSHelp(w io.Writer, name string) error {
10711071
ew.writeln()
10721072

10731073
ew.writeln(`Credentials:`)
1074-
ew.writeln(` - "GANDIV5_API_KEY": API key`)
1074+
ew.writeln(` - "GANDIV5_API_KEY": API key (Deprecated)`)
1075+
ew.writeln(` - "GANDIV5_PERSONAL_ACCESS_TOKEN": Personal Access Token`)
10751076
ew.writeln()
10761077

10771078
ew.writeln(`Additional Configuration:`)
@@ -1512,7 +1513,6 @@ func displayDNSHelp(w io.Writer, name string) error {
15121513
ew.writeln(` - "IPV64_HTTP_TIMEOUT": API request timeout`)
15131514
ew.writeln(` - "IPV64_POLLING_INTERVAL": Time between DNS propagation check`)
15141515
ew.writeln(` - "IPV64_PROPAGATION_TIMEOUT": Maximum waiting time for DNS propagation`)
1515-
ew.writeln(` - "IPV64_SEQUENCE_INTERVAL": Time between sequential requests`)
15161516
ew.writeln(` - "IPV64_TTL": The TTL of the TXT record used for the DNS challenge`)
15171517

15181518
ew.writeln()

docs/content/dns/zz_gen_gandiv5.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Configuration for [Gandi Live DNS (v5)](https://www.gandi.net).
2626
Here is an example bash command using the Gandi Live DNS (v5) provider:
2727

2828
```bash
29-
GANDIV5_API_KEY=abcdefghijklmnopqrstuvwx \
29+
GANDIV5_PERSONAL_ACCESS_TOKEN=abcdefghijklmnopqrstuvwx \
3030
lego --email [email protected] --dns gandiv5 --domains my.example.org run
3131
```
3232

@@ -37,7 +37,8 @@ lego --email [email protected] --dns gandiv5 --domains my.example.org run
3737

3838
| Environment Variable Name | Description |
3939
|-----------------------|-------------|
40-
| `GANDIV5_API_KEY` | API key |
40+
| `GANDIV5_API_KEY` | API key (Deprecated) |
41+
| `GANDIV5_PERSONAL_ACCESS_TOKEN` | Personal Access Token |
4142

4243
The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
4344
More information [here]({{< ref "dns#configuration-and-credentials" >}}).

docs/content/dns/zz_gen_ipv64.md

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}).
5050
| `IPV64_HTTP_TIMEOUT` | API request timeout |
5151
| `IPV64_POLLING_INTERVAL` | Time between DNS propagation check |
5252
| `IPV64_PROPAGATION_TIMEOUT` | Maximum waiting time for DNS propagation |
53-
| `IPV64_SEQUENCE_INTERVAL` | Time between sequential requests |
5453
| `IPV64_TTL` | The TTL of the TXT record used for the DNS challenge |
5554

5655
The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.

providers/dns/ipv64/ipv64.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,23 @@ const (
2424
EnvPropagationTimeout = envNamespace + "PROPAGATION_TIMEOUT"
2525
EnvPollingInterval = envNamespace + "POLLING_INTERVAL"
2626
EnvHTTPTimeout = envNamespace + "HTTP_TIMEOUT"
27-
EnvSequenceInterval = envNamespace + "SEQUENCE_INTERVAL"
27+
EnvSequenceInterval = envNamespace + "SEQUENCE_INTERVAL" // Deprecated: unused, will be removed in v5.
2828
)
2929

3030
// Config is used to configure the creation of the DNSProvider.
3131
type Config struct {
3232
APIKey string
3333
PropagationTimeout time.Duration
3434
PollingInterval time.Duration
35-
SequenceInterval time.Duration
3635
HTTPClient *http.Client
36+
SequenceInterval time.Duration // Deprecated: unused, will be removed in v5.
3737
}
3838

3939
// NewDefaultConfig returns a default configuration for the DNSProvider.
4040
func NewDefaultConfig() *Config {
4141
return &Config{
4242
PropagationTimeout: env.GetOrDefaultSecond(EnvPropagationTimeout, dns01.DefaultPropagationTimeout),
4343
PollingInterval: env.GetOrDefaultSecond(EnvPollingInterval, dns01.DefaultPollingInterval),
44-
SequenceInterval: env.GetOrDefaultSecond(EnvSequenceInterval, dns01.DefaultPropagationTimeout),
4544
HTTPClient: &http.Client{
4645
Timeout: env.GetOrDefaultSecond(EnvHTTPTimeout, 30*time.Second),
4746
},

providers/dns/ipv64/ipv64.toml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ lego --email [email protected] --dns ipv64 --domains my.example.org run
1717
IPV64_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
1818
IPV64_TTL = "The TTL of the TXT record used for the DNS challenge"
1919
IPV64_HTTP_TIMEOUT = "API request timeout"
20-
IPV64_SEQUENCE_INTERVAL = "Time between sequential requests"
2120

2221
[Links]
2322
API = "https://ipv64.net/dyndns_updater_api"

0 commit comments

Comments
 (0)