mirror of
https://github.com/certimate-go/certimate.git
synced 2026-09-24 23:10:13 +08:00
chore: fix package names
This commit is contained in:
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/certimate-go/certimate/internal/domain"
|
||||
"github.com/certimate-go/certimate/pkg/core"
|
||||
constellix "github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/constellix"
|
||||
"github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/constellix"
|
||||
xmaps "github.com/certimate-go/certimate/pkg/utils/maps"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/certimate-go/certimate/internal/domain"
|
||||
"github.com/certimate-go/certimate/pkg/core"
|
||||
digitalocean "github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/digitalocean"
|
||||
"github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/digitalocean"
|
||||
xmaps "github.com/certimate-go/certimate/pkg/utils/maps"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/certimate-go/certimate/internal/domain"
|
||||
"github.com/certimate-go/certimate/pkg/core"
|
||||
duckdns "github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/duckdns"
|
||||
"github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/duckdns"
|
||||
xmaps "github.com/certimate-go/certimate/pkg/utils/maps"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/certimate-go/certimate/internal/domain"
|
||||
"github.com/certimate-go/certimate/pkg/core"
|
||||
netlify "github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/netlify"
|
||||
"github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/netlify"
|
||||
xmaps "github.com/certimate-go/certimate/pkg/utils/maps"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import (
|
||||
|
||||
"github.com/certimate-go/certimate/internal/domain"
|
||||
"github.com/certimate-go/certimate/pkg/core"
|
||||
xinnet "github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/xinnet"
|
||||
"github.com/certimate-go/certimate/pkg/core/certifier/challengers/dns01/xinnet"
|
||||
xmaps "github.com/certimate-go/certimate/pkg/utils/maps"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package conohavpsv2
|
||||
package conohavpsv3
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package cloudns
|
||||
package constellix
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package namedotcom
|
||||
package digitalocean
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package namedotcom
|
||||
package duckdns
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
@@ -4,8 +4,9 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"github.com/go-acme/lego/v5/providers/dns/huaweicloud"
|
||||
|
||||
"github.com/certimate-go/certimate/pkg/core/certifier"
|
||||
hwc "github.com/go-acme/lego/v5/providers/dns/huaweicloud"
|
||||
)
|
||||
|
||||
type ChallengerConfig struct {
|
||||
@@ -27,7 +28,7 @@ func NewChallenger(config *ChallengerConfig) (certifier.ACMEChallenger, error) {
|
||||
region = "cn-north-1"
|
||||
}
|
||||
|
||||
providerConfig := hwc.NewDefaultConfig()
|
||||
providerConfig := huaweicloud.NewDefaultConfig()
|
||||
providerConfig.AccessKeyID = config.AccessKeyId
|
||||
providerConfig.SecretAccessKey = config.SecretAccessKey
|
||||
providerConfig.Region = region
|
||||
@@ -38,7 +39,7 @@ func NewChallenger(config *ChallengerConfig) (certifier.ACMEChallenger, error) {
|
||||
providerConfig.TTL = int32(config.DnsTTL)
|
||||
}
|
||||
|
||||
provider, err := hwc.NewDNSProviderConfig(providerConfig)
|
||||
provider, err := huaweicloud.NewDNSProviderConfig(providerConfig)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package netcup
|
||||
package netlify
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
Reference in New Issue
Block a user