feat: support aliyun dcdn(esa)

This commit is contained in:
PBK-B
2024-09-17 19:10:25 +08:00
parent 1977201051
commit 0390ac3eda
5 changed files with 232 additions and 7 deletions

View File

@@ -16,6 +16,7 @@ import (
const (
targetAliyunOss = "aliyun-oss"
targetAliyunCdn = "aliyun-cdn"
targetAliyunEsa = "aliyun-dcdn"
targetSSH = "ssh"
targetWebhook = "webhook"
targetTencentCdn = "tencent-cdn"
@@ -117,6 +118,8 @@ func getWithAccess(record *models.Record, cert *applicant.Certificate, access *m
return NewAliyun(option)
case targetAliyunCdn:
return NewAliyunCdn(option)
case targetAliyunEsa:
return NewAliyunEsa(option)
case targetSSH:
return NewSSH(option)
case targetWebhook: