Skip to content

Commit 018db12

Browse files
gcore: change API domain (#1971)
1 parent 152960c commit 018db12

File tree

6 files changed

+21
-21
lines changed

6 files changed

+21
-21
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Detailed documentation is available [here](https://go-acme.github.io/lego/dns).
6363
| [DNSimple](https://go-acme.github.io/lego/dns/dnsimple/) | [DNSPod (deprecated)](https://go-acme.github.io/lego/dns/dnspod/) | [Domain Offensive (do.de)](https://go-acme.github.io/lego/dns/dode/) | [Domeneshop](https://go-acme.github.io/lego/dns/domeneshop/) |
6464
| [DreamHost](https://go-acme.github.io/lego/dns/dreamhost/) | [Duck DNS](https://go-acme.github.io/lego/dns/duckdns/) | [Dyn](https://go-acme.github.io/lego/dns/dyn/) | [Dynu](https://go-acme.github.io/lego/dns/dynu/) |
6565
| [EasyDNS](https://go-acme.github.io/lego/dns/easydns/) | [Efficient IP](https://go-acme.github.io/lego/dns/efficientip/) | [Epik](https://go-acme.github.io/lego/dns/epik/) | [Exoscale](https://go-acme.github.io/lego/dns/exoscale/) |
66-
| [External program](https://go-acme.github.io/lego/dns/exec/) | [freemyip.com](https://go-acme.github.io/lego/dns/freemyip/) | [G-Core Labs](https://go-acme.github.io/lego/dns/gcore/) | [Gandi Live DNS (v5)](https://go-acme.github.io/lego/dns/gandiv5/) |
66+
| [External program](https://go-acme.github.io/lego/dns/exec/) | [freemyip.com](https://go-acme.github.io/lego/dns/freemyip/) | [G-Core](https://go-acme.github.io/lego/dns/gcore/) | [Gandi Live DNS (v5)](https://go-acme.github.io/lego/dns/gandiv5/) |
6767
| [Gandi](https://go-acme.github.io/lego/dns/gandi/) | [Glesys](https://go-acme.github.io/lego/dns/glesys/) | [Go Daddy](https://go-acme.github.io/lego/dns/godaddy/) | [Google Cloud](https://go-acme.github.io/lego/dns/gcloud/) |
6868
| [Google Domains](https://go-acme.github.io/lego/dns/googledomains/) | [Hetzner](https://go-acme.github.io/lego/dns/hetzner/) | [Hosting.de](https://go-acme.github.io/lego/dns/hostingde/) | [Hosttech](https://go-acme.github.io/lego/dns/hosttech/) |
6969
| [HTTP request](https://go-acme.github.io/lego/dns/httpreq/) | [Hurricane Electric DNS](https://go-acme.github.io/lego/dns/hurricane/) | [HyperOne](https://go-acme.github.io/lego/dns/hyperone/) | [IBM Cloud (SoftLayer)](https://go-acme.github.io/lego/dns/ibmcloud/) |

cmd/zz_gen_cmd_dnshelp.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1082,13 +1082,13 @@ func displayDNSHelp(w io.Writer, name string) error {
10821082

10831083
case "gcore":
10841084
// generated from: providers/dns/gcore/gcore.toml
1085-
ew.writeln(`Configuration for G-Core Labs.`)
1085+
ew.writeln(`Configuration for G-Core.`)
10861086
ew.writeln(`Code: 'gcore'`)
10871087
ew.writeln(`Since: 'v4.5.0'`)
10881088
ew.writeln()
10891089

10901090
ew.writeln(`Credentials:`)
1091-
ew.writeln(` - "GCORE_PERMANENT_API_TOKEN": Permanent API tokene (https://gcorelabs.com/blog/permanent-api-token-explained/)`)
1091+
ew.writeln(` - "GCORE_PERMANENT_API_TOKEN": Permanent API token (https://gcore.com/blog/permanent-api-token-explained/)`)
10921092
ew.writeln()
10931093

10941094
ew.writeln(`Additional Configuration:`)

docs/content/dns/zz_gen_gcore.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
---
2-
title: "G-Core Labs"
2+
title: "G-Core"
33
date: 2019-03-03T16:39:46+01:00
44
draft: false
55
slug: gcore
66
dnsprovider:
77
since: "v4.5.0"
88
code: "gcore"
9-
url: "https://gcorelabs.com/dns/"
9+
url: "https://gcore.com/dns/"
1010
---
1111

1212
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
1313
<!-- providers/dns/gcore/gcore.toml -->
1414
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
1515

1616

17-
Configuration for [G-Core Labs](https://gcorelabs.com/dns/).
17+
Configuration for [G-Core](https://gcore.com/dns/).
1818

1919

2020
<!--more-->
@@ -23,7 +23,7 @@ Configuration for [G-Core Labs](https://gcorelabs.com/dns/).
2323
- Since: v4.5.0
2424

2525

26-
Here is an example bash command using the G-Core Labs provider:
26+
Here is an example bash command using the G-Core provider:
2727

2828
```bash
2929
GCORE_PERMANENT_API_TOKEN=xxxxx \
@@ -37,7 +37,7 @@ lego --email [email protected] --dns gcore --domains my.example.org run
3737

3838
| Environment Variable Name | Description |
3939
|-----------------------|-------------|
40-
| `GCORE_PERMANENT_API_TOKEN` | Permanent API tokene (https://gcorelabs.com/blog/permanent-api-token-explained/) |
40+
| `GCORE_PERMANENT_API_TOKEN` | Permanent API token (https://gcore.com/blog/permanent-api-token-explained/) |
4141

4242
The environment variable names can be suffixed by `_FILE` to reference a file instead of a value.
4343
More information [here]({{< ref "dns#configuration-and-credentials" >}}).
@@ -60,7 +60,7 @@ More information [here]({{< ref "dns#configuration-and-credentials" >}}).
6060

6161
## More information
6262

63-
- [API documentation](https://dnsapi.gcorelabs.com/docs#tag/zonesV2)
63+
- [API documentation](https://api.gcore.com/docs/dns#tag/zones)
6464

6565
<!-- THIS DOCUMENTATION IS AUTO-GENERATED. PLEASE DO NOT EDIT. -->
6666
<!-- providers/dns/gcore/gcore.toml -->

providers/dns/gcore/gcore.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ type DNSProvider struct {
5757
client *internal.Client
5858
}
5959

60-
// NewDNSProvider returns an instance of DNSProvider configured for G-Core Labs DNS API.
60+
// NewDNSProvider returns an instance of DNSProvider configured for G-Core DNS API.
6161
func NewDNSProvider() (*DNSProvider, error) {
6262
values, err := env.Get(EnvPermanentAPIToken)
6363
if err != nil {
@@ -70,7 +70,7 @@ func NewDNSProvider() (*DNSProvider, error) {
7070
return NewDNSProviderConfig(config)
7171
}
7272

73-
// NewDNSProviderConfig return a DNSProvider instance configured for G-Core Labs DNS API.
73+
// NewDNSProviderConfig return a DNSProvider instance configured for G-Core DNS API.
7474
func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
7575
if config == nil {
7676
return nil, errors.New("gcore: the configuration of the DNS provider is nil")

providers/dns/gcore/gcore.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Name = "G-Core Labs"
1+
Name = "G-Core"
22
Description = ''''''
3-
URL = "https://gcorelabs.com/dns/"
3+
URL = "https://gcore.com/dns/"
44
Code = "gcore"
55
Since = "v4.5.0"
66

@@ -11,12 +11,12 @@ lego --email [email protected] --dns gcore --domains my.example.org run
1111

1212
[Configuration]
1313
[Configuration.Credentials]
14-
GCORE_PERMANENT_API_TOKEN = "Permanent API tokene (https://gcorelabs.com/blog/permanent-api-token-explained/)"
14+
GCORE_PERMANENT_API_TOKEN = "Permanent API token (https://gcore.com/blog/permanent-api-token-explained/)"
1515
[Configuration.Additional]
1616
GCORE_POLLING_INTERVAL = "Time between DNS propagation check"
1717
GCORE_PROPAGATION_TIMEOUT = "Maximum waiting time for DNS propagation"
1818
GCORE_TTL = "The TTL of the TXT record used for the DNS challenge"
1919
GCORE_HTTP_TIMEOUT = "API request timeout"
2020

2121
[Links]
22-
API = "https://dnsapi.gcorelabs.com/docs#tag/zonesV2"
22+
API = "https://api.gcore.com/docs/dns#tag/zones"

providers/dns/gcore/internal/client.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/go-acme/lego/v4/providers/dns/internal/errutils"
1515
)
1616

17-
const defaultBaseURL = "https://api.gcorelabs.com/dns"
17+
const defaultBaseURL = "https://api.gcore.com/dns"
1818

1919
const (
2020
authorizationHeader = "Authorization"
@@ -43,7 +43,7 @@ func NewClient(token string) *Client {
4343
}
4444

4545
// GetZone gets zone information.
46-
// https://dnsapi.gcorelabs.com/docs#operation/Zone
46+
// https://api.gcore.com/docs/dns#tag/zones/operation/Zone
4747
func (c *Client) GetZone(ctx context.Context, name string) (Zone, error) {
4848
endpoint := c.baseURL.JoinPath("v2", "zones", name)
4949

@@ -57,7 +57,7 @@ func (c *Client) GetZone(ctx context.Context, name string) (Zone, error) {
5757
}
5858

5959
// GetRRSet gets RRSet item.
60-
// https://dnsapi.gcorelabs.com/docs#operation/RRSet
60+
// https://api.gcore.com/docs/dns#tag/rrsets/operation/RRSet
6161
func (c *Client) GetRRSet(ctx context.Context, zone, name string) (RRSet, error) {
6262
endpoint := c.baseURL.JoinPath("v2", "zones", zone, name, txtRecordType)
6363

@@ -71,7 +71,7 @@ func (c *Client) GetRRSet(ctx context.Context, zone, name string) (RRSet, error)
7171
}
7272

7373
// DeleteRRSet removes RRSet record.
74-
// https://dnsapi.gcorelabs.com/docs#operation/DeleteRRSet
74+
// https://api.gcore.com/docs/dns#tag/rrsets/operation/DeleteRRSet
7575
func (c *Client) DeleteRRSet(ctx context.Context, zone, name string) error {
7676
endpoint := c.baseURL.JoinPath("v2", "zones", zone, name, txtRecordType)
7777

@@ -102,14 +102,14 @@ func (c *Client) AddRRSet(ctx context.Context, zone, recordName, value string, t
102102
return c.createRRSet(ctx, zone, recordName, record)
103103
}
104104

105-
// https://dnsapi.gcorelabs.com/docs#operation/CreateRRSet
105+
// https://api.gcore.com/docs/dns#tag/rrsets/operation/CreateRRSet
106106
func (c *Client) createRRSet(ctx context.Context, zone, name string, record RRSet) error {
107107
endpoint := c.baseURL.JoinPath("v2", "zones", zone, name, txtRecordType)
108108

109109
return c.doRequest(ctx, http.MethodPost, endpoint, record, nil)
110110
}
111111

112-
// https://dnsapi.gcorelabs.com/docs#operation/UpdateRRSet
112+
// https://api.gcore.com/docs/dns#tag/rrsets/operation/UpdateRRSet
113113
func (c *Client) updateRRSet(ctx context.Context, zone, name string, record RRSet) error {
114114
endpoint := c.baseURL.JoinPath("v2", "zones", zone, name, txtRecordType)
115115

0 commit comments

Comments
 (0)