Add qiniu deployer

This commit is contained in:
yoan
2024-09-05 10:30:19 +08:00
parent a297b1cc1f
commit e244d6e921
15 changed files with 634 additions and 561 deletions

View File

@@ -10,16 +10,13 @@ import (
"github.com/pocketbase/pocketbase/models"
)
const (
configTypeAliyun = "aliyun"
)
const (
targetAliyunOss = "aliyun-oss"
targetAliyunCdn = "aliyun-cdn"
targetSSH = "ssh"
targetWebhook = "webhook"
targetTencentCdn = "tencent-cdn"
targetQiniuCdn = "qiniu-cdn"
)
type DeployerOption struct {
@@ -63,6 +60,8 @@ func Get(record *models.Record, cert *applicant.Certificate) (Deployer, error) {
return NewWebhook(option)
case targetTencentCdn:
return NewTencentCdn(option)
case targetQiniuCdn:
return NewQiNiu(option)
}
return nil, errors.New("not implemented")
}