DOMAINNAMESHOP: Domainnameshop documentation update (#1726)

Co-authored-by: Simen Bai <git@simenbai.no>
This commit is contained in:
Simen Bai 2022-08-20 07:51:25 +03:00 committed by GitHub
parent 6eeec2f999
commit 0d9bdc2ddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 24 deletions

View file

@ -31,7 +31,7 @@ Currently supported DNS providers:
- DNS Made Easy
- DNSimple
- DigitalOcean
- DomainNameShop (domeneshop)
- Domainnameshop (Domeneshop)
- Exoscale
- Gandi
- Google DNS

View file

@ -458,7 +458,7 @@
<i class="fa fa-check text-success" aria-hidden="true"></i>
</td>
<td><i class="fa fa-minus dim"></i></td>
<td class="info">
<td class="info" data-toggle="tooltip" data-container="body" data-placement="top" title="Needs custom implementation">
<i class="fa fa-circle-o text-info" aria-hidden="true"></i>
</td>
<td><i class="fa fa-minus dim"></i></td>
@ -740,8 +740,8 @@
<i class="fa fa-check text-success" aria-hidden="true"></i>
</td>
<td><i class="fa fa-minus dim"></i></td>
<td class="info">
<i class="fa fa-circle-o text-info" aria-hidden="true"></i>
<td class="danger" data-toggle="tooltip" data-container="body" data-placement="top" title="According to Domainnameshop this will probably never be supported">
<i class="fa has-tooltip fa-times text-danger" aria-hidden="true"></i>
</td>
<td><i class="fa fa-minus dim"></i></td>
<td class="success">
@ -840,8 +840,8 @@
</td>
<td><i class="fa fa-minus dim"></i></td>
<td><i class="fa fa-minus dim"></i></td>
<td class="danger">
<i class="fa fa-times text-danger" aria-hidden="true"></i>
<td class="danger" data-toggle="tooltip" data-container="body" data-placement="top" title="According to Domainnameshop this will probably never be supported">
<i class="fa has-tooltip fa-times text-danger" aria-hidden="true"></i>
</td>
<td><i class="fa fa-minus dim"></i></td>
<td><i class="fa fa-minus dim"></i></td>
@ -1090,8 +1090,8 @@
<i class="fa fa-times text-danger" aria-hidden="true"></i>
</td>
<td><i class="fa fa-minus dim"></i></td>
<td class="danger">
<i class="fa fa-times text-danger" aria-hidden="true"></i>
<td class="danger" data-toggle="tooltip" data-container="body" data-placement="top" title="Might be supported in the future">
<i class="fa has-tooltip fa-times text-danger" aria-hidden="true"></i>
</td>
<td><i class="fa fa-minus dim"></i></td>
<td><i class="fa fa-minus dim"></i></td>
@ -1180,7 +1180,7 @@
<i class="fa fa-times text-danger" aria-hidden="true"></i>
</td>
<td><i class="fa fa-minus dim"></i></td>
<td class="info">
<td class="info" data-toggle="tooltip" data-container="body" data-placement="top" title="Has support but no documentation. Needs to be investigated.">
<i class="fa fa-circle-o text-info" aria-hidden="true"></i>
</td>
<td><i class="fa fa-minus dim"></i></td>

View file

@ -1,6 +1,6 @@
---
name: DomainNameShop
title: DomainNameShop Provider
name: Domainnameshop
title: Domainnameshop Provider
layout: default
jsId: DOMAINNAMESHOP
---
@ -9,7 +9,7 @@ jsId: DOMAINNAMESHOP
## Configuration
To use this provider, add an entry to `creds.json` with `TYPE` set to `DOMAINNAMESHOP`
along with your [DomainNameShop Token and Secret](https://www.domeneshop.no/admin?view=api).
along with your [Domainnameshop Token and Secret](https://www.domeneshop.no/admin?view=api).
Example:
@ -24,7 +24,7 @@ Example:
```
## Metadata
This provider does not recognize any special metadata fields unique to DomainNameShop.
This provider does not recognize any special metadata fields unique to Domainnameshop.
## Usage
An example `dnsconfig.js` configuration:
@ -43,4 +43,4 @@ D("example.tld", REG_NONE, DnsProvider(DSP_DOMAINNAMESHOP),
## Limitations
- DomainNameShop DNS only supports TTLs which are a multiple of 60.
- Domainnameshop DNS only supports TTLs which are a multiple of 60.

View file

@ -9,7 +9,7 @@ import (
/**
DomainNameShop Provider
Domainnameshop Provider
Info required in 'creds.json':
- token API Token
@ -25,16 +25,16 @@ type domainNameShopProvider struct {
var features = providers.DocumentationNotes{
providers.CanAutoDNSSEC: providers.Cannot(), // Maybe there is support for it
providers.CanGetZones: providers.Unimplemented(), //
providers.CanUseAlias: providers.Unimplemented(), // Can possibly be implemented, needs further research
providers.CanUseAlias: providers.Unimplemented("Needs custom implementation"), // Can possibly be implemented, needs further research
providers.CanUseCAA: providers.Can(),
providers.CanUseDS: providers.Unimplemented(), // Seems to support but needs to be implemented
providers.CanUseDSForChildren: providers.Unimplemented(), // Seems to support but needs to be implemented
providers.CanUseNAPTR: providers.Cannot(), // Does not seem to support it
providers.CanUsePTR: providers.Unimplemented(), // Seems to support but needs to be implemented
providers.CanUseNAPTR: providers.Cannot("According to Domainnameshop this will probably never be supported"), // Does not seem to support it
providers.CanUsePTR: providers.Cannot("According to Domainnameshop this will probably never be supported"), // Seems to support but needs to be implemented
providers.CanUseSOA: providers.Cannot(), // Does not seem to support it
providers.CanUseSRV: providers.Can(),
providers.CanUseSSHFP: providers.Cannot(), // Does not seem to support it
providers.CanUseTLSA: providers.Unimplemented(), // Seems to support but needs to be implemented
providers.CanUseSSHFP: providers.Cannot("Might be supported in the future"), // Does not seem to support it
providers.CanUseTLSA: providers.Unimplemented("Has support but no documentation. Needs to be investigated."), // Seems to support but needs to be implemented
providers.DocCreateDomains: providers.Unimplemented(), // Not tested
providers.DocDualHost: providers.Unimplemented(), // Not tested
providers.DocOfficiallySupported: providers.Cannot(),
@ -51,12 +51,12 @@ func init() {
providers.RegisterDomainServiceProviderType("DOMAINNAMESHOP", fns, features)
}
// newDomainNameShopProvider creates a DomainNameShop specific DNS provider.
// newDomainNameShopProvider creates a Domainnameshop specific DNS provider.
func newDomainNameShopProvider(conf map[string]string, metadata json.RawMessage) (providers.DNSServiceProvider, error) {
if conf["token"] == "" {
return nil, fmt.Errorf("no DomainNameShop token provided")
return nil, fmt.Errorf("no Domainnameshop token provided")
} else if conf["secret"] == "" {
return nil, fmt.Errorf("no DomainNameShop secret provided")
return nil, fmt.Errorf("no Domainnameshop secret provided")
}
api := &domainNameShopProvider{
@ -76,7 +76,7 @@ type domainResponse struct {
// The Actual fields are the values in the right format according to what is needed for RecordConfig.
//
// While the values without Actual are the values directly as received from the DomainNameShop API.
// While the values without Actual are the values directly as received from the Domainnameshop API.
// This is done to make it easier to use the values at later points.
type domainNameShopRecord struct {
ID int `json:"id"`