修改插件部署、新增多吉云cdn部署

This commit is contained in:
zhangchenhao
2025-06-10 16:12:53 +08:00
parent 0c53a7eb3f
commit aca870ad30
6 changed files with 291 additions and 25 deletions

View File

@@ -0,0 +1,21 @@
package doge
import (
"fmt"
"os"
"testing"
)
func TestPlugin(t *testing.T) {
err := DeployCdn(map[string]interface{}{
"access_key": "xxxxxx",
"secret_key": "xxxxx",
"key": "xxxxx",
"cert": "xxxxx",
"domain": "xx.com",
})
if err != nil {
fmt.Fprintf(os.Stderr, "调用插件失败: %v\n", err)
os.Exit(1)
}
}