mirror of
https://github.com/usual2970/certimate.git
synced 2025-08-01 06:56:51 +00:00
add cloudflare provider
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user