feat: implement more Deployer

This commit is contained in:
Fu Diwei
2024-11-20 22:58:01 +08:00
parent 643a666853
commit bde51d8d38
37 changed files with 2015 additions and 67 deletions

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
npEmail "github.com/usual2970/certimate/internal/pkg/core/notifier/providers/email"
provider "github.com/usual2970/certimate/internal/pkg/core/notifier/providers/email"
)
const (
@@ -64,7 +64,7 @@ func Test(t *testing.T) {
fmt.Sprintf("RECEIVERADDRESS: %v", fReceiverAddress),
}, "\n"))
notifier, err := npEmail.New(&npEmail.EmailNotifierConfig{
notifier, err := provider.New(&provider.EmailNotifierConfig{
SmtpHost: fSmtpHost,
SmtpPort: int32(fSmtpPort),
SmtpTLS: fSmtpTLS,

View File

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
npWebhook "github.com/usual2970/certimate/internal/pkg/core/notifier/providers/webhook"
provider "github.com/usual2970/certimate/internal/pkg/core/notifier/providers/webhook"
)
const (
@@ -38,7 +38,7 @@ func Test(t *testing.T) {
fmt.Sprintf("URL: %v", fUrl),
}, "\n"))
notifier, err := npWebhook.New(&npWebhook.WebhookNotifierConfig{
notifier, err := provider.New(&provider.WebhookNotifierConfig{
Url: fUrl,
})
if err != nil {