feat: add deployer BytePlus CDN

This commit is contained in:
Jarod Liu
2024-11-15 20:26:12 +08:00
parent c853f2976f
commit 2b0f7aaf8a
12 changed files with 628 additions and 307 deletions

View File

@@ -42,6 +42,7 @@ const (
targetK8sSecret = "k8s-secret"
targetVolcengineLive = "volcengine-live"
targetVolcengineCDN = "volcengine-cdn"
targetByteplusCDN = "byteplus-cdn"
)
type DeployerOption struct {
@@ -156,6 +157,8 @@ func getWithDeployConfig(record *models.Record, cert *applicant.Certificate, dep
return NewVolcengineLiveDeployer(option)
case targetVolcengineCDN:
return NewVolcengineCDNDeployer(option)
case targetByteplusCDN:
return NewByteplusCDNDeployer(option)
}
return nil, errors.New("unsupported deploy target")
}