Add local deployer

This commit is contained in:
yoan
2024-09-26 17:04:49 +08:00
parent 253075e7c0
commit 2634789769
12 changed files with 1117 additions and 35 deletions

View File

@@ -21,6 +21,7 @@ const (
targetWebhook = "webhook"
targetTencentCdn = "tencent-cdn"
targetQiniuCdn = "qiniu-cdn"
targetLocal = "local"
)
type DeployerOption struct {
@@ -127,7 +128,10 @@ func getWithAccess(record *models.Record, cert *applicant.Certificate, access *m
case targetTencentCdn:
return NewTencentCdn(option)
case targetQiniuCdn:
return NewQiNiu(option)
case targetLocal:
return NewLocal(option), nil
}
return nil, errors.New("not implemented")
}