add cloudflare provider

This commit is contained in:
yoan
2024-09-02 14:36:46 +08:00
parent 2b8fb9314f
commit 52cca47ec8
15 changed files with 854 additions and 87 deletions

View File

@@ -16,8 +16,9 @@ import (
)
const (
configTypeTencent = "tencent"
configTypeAliyun = "aliyun"
configTypeTencent = "tencent"
configTypeAliyun = "aliyun"
configTypeCloudflare = "cloudflare"
)
type Certificate struct {
@@ -67,6 +68,8 @@ func Get(record *models.Record) (Applicant, error) {
return NewTencent(option), nil
case configTypeAliyun:
return NewAliyun(option), nil
case configTypeCloudflare:
return NewCloudflare(option), nil
default:
return nil, errors.New("unknown config type")
}