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

@@ -20,7 +20,7 @@ func NewVolcengine(option *ApplyOption) Applicant {
}
func (a *volcengine) Apply() (*Certificate, error) {
access := &domain.VolcengineAccess{}
access := &domain.VolcEngineAccess{}
json.Unmarshal([]byte(a.option.Access), access)
os.Setenv("VOLC_ACCESSKEY", access.AccessKeyId)