Skip to content

Commit 1712a7a

Browse files
committed
libdns: Deprecate libdns providers not updated for libdns 1.x
1 parent 46ebd46 commit 1712a7a

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

internal/libdns/hetzner.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package libdns
55

66
import (
77
"github.com/foxcpp/maddy/framework/config"
8+
"github.com/foxcpp/maddy/framework/log"
89
"github.com/foxcpp/maddy/framework/module"
910
"github.com/libdns/hetzner"
1011
)
@@ -16,6 +17,7 @@ func init() {
1617
RecordDeleter: &p,
1718
RecordAppender: &p,
1819
setConfig: func(c *config.Map) {
20+
log.DefaultLogger.Println("WARNING: maddy 0.10.0 will require new DNS API, see https://github.com/foxcpp/maddy/issues/807 for details")
1921
c.String("api_token", false, false, "", &p.AuthAPIToken)
2022
},
2123
instName: instName,

internal/libdns/leaseweb.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package libdns
55

66
import (
77
"github.com/foxcpp/maddy/framework/config"
8+
"github.com/foxcpp/maddy/framework/log"
89
"github.com/foxcpp/maddy/framework/module"
910
"github.com/libdns/leaseweb"
1011
)
@@ -16,6 +17,7 @@ func init() {
1617
RecordDeleter: &p,
1718
RecordAppender: &p,
1819
setConfig: func(c *config.Map) {
20+
log.DefaultLogger.Println("WARNING: maddy 0.10.0 will drop libdns.leaseweb, see https://github.com/foxcpp/maddy/issues/807 for details")
1921
c.String("api_key", false, false, "", &p.APIKey)
2022
},
2123
instName: instName,

internal/libdns/namedotcom.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package libdns
55

66
import (
77
"github.com/foxcpp/maddy/framework/config"
8+
"github.com/foxcpp/maddy/framework/log"
89
"github.com/foxcpp/maddy/framework/module"
910
"github.com/libdns/namedotcom"
1011
)
@@ -18,6 +19,7 @@ func init() {
1819
RecordDeleter: &p,
1920
RecordAppender: &p,
2021
setConfig: func(c *config.Map) {
22+
log.DefaultLogger.Println("WARNING: maddy 0.10.0 will drop libdns.namedotcom, see https://github.com/foxcpp/maddy/issues/807 for details")
2123
c.String("user", false, false, "", &p.User)
2224
c.String("token", false, false, "", &p.Token)
2325
},

internal/libdns/vultr.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package libdns
55

66
import (
77
"github.com/foxcpp/maddy/framework/config"
8+
"github.com/foxcpp/maddy/framework/log"
89
"github.com/foxcpp/maddy/framework/module"
910
"github.com/libdns/vultr"
1011
)
@@ -16,6 +17,7 @@ func init() {
1617
RecordDeleter: &p,
1718
RecordAppender: &p,
1819
setConfig: func(c *config.Map) {
20+
log.DefaultLogger.Println("WARNING: maddy 0.10.0 will drop libdns.vultr, see https://github.com/foxcpp/maddy/issues/807 for details")
1921
c.String("api_token", false, false, "", &p.APIToken)
2022
},
2123
instName: instName,

0 commit comments

Comments
 (0)