add webhook deployer

This commit is contained in:
yoan
2024-08-28 18:53:33 +08:00
parent 4b8fa3502c
commit 1861e73531
13 changed files with 366 additions and 31 deletions

View File

@@ -17,6 +17,7 @@ const (
targetAliyunOss = "aliyun-oss"
targetAliyunCdn = "aliyun-cdn"
targetSSH = "ssh"
targetWebhook = "webhook"
)
type DeployerOption struct {
@@ -55,6 +56,8 @@ func Get(record *models.Record, cert *applicant.Certificate) (Deployer, error) {
return NewAliyunCdn(option)
case targetSSH:
return NewSSH(option)
case targetWebhook:
return NewWebhook(option)
}
return nil, errors.New("not implemented")
}