feat: add Deployer factory

This commit is contained in:
Fu Diwei
2024-11-21 11:23:15 +08:00
parent 30b66adc3b
commit 4916757d59
6 changed files with 361 additions and 22 deletions

View File

@@ -24,7 +24,7 @@ type VolcengineLiveDeployer struct {
}
func NewVolcengineLiveDeployer(option *DeployerOption) (Deployer, error) {
access := &domain.VolcengineAccess{}
access := &domain.VolcEngineAccess{}
if err := json.Unmarshal([]byte(option.Access), access); err != nil {
return nil, xerrors.Wrap(err, "failed to get access")
}