【调整】插件支持动态参数和参数类型

【调整】获取证书列表支持状态过滤
【新增】dns提供商腾讯云eo
This commit is contained in:
v-me-50
2025-12-17 15:07:12 +08:00
parent d01b42139c
commit a027bde148
29 changed files with 1318 additions and 892 deletions

View File

@@ -0,0 +1,52 @@
package main
import (
casPkg "ALLinSSL/plugins/alicloud/cas"
cdnPkg "ALLinSSL/plugins/alicloud/cdn"
dcdnPkg "ALLinSSL/plugins/alicloud/dcdn"
esaPkg "ALLinSSL/plugins/alicloud/esa"
ossPkg "ALLinSSL/plugins/alicloud/oss"
wafPkg "ALLinSSL/plugins/alicloud/waf"
)
func Cdn(cfg map[string]any) (*Response, error) {
if err := cdnPkg.Deploy(cfg); err != nil {
return nil, err
}
return &Response{Status: "success", Message: "OK", Result: nil}, nil
}
func Dcdn(cfg map[string]any) (*Response, error) {
if err := dcdnPkg.Deploy(cfg); err != nil {
return nil, err
}
return &Response{Status: "success", Message: "OK", Result: nil}, nil
}
func Oss(cfg map[string]any) (*Response, error) {
if err := ossPkg.Deploy(cfg); err != nil {
return nil, err
}
return &Response{Status: "success", Message: "OK", Result: nil}, nil
}
func Esa(cfg map[string]any) (*Response, error) {
if err := esaPkg.Deploy(cfg); err != nil {
return nil, err
}
return &Response{Status: "success", Message: "OK", Result: nil}, nil
}
func Cas(cfg map[string]any) (*Response, error) {
if err := casPkg.Deploy(cfg); err != nil {
return nil, err
}
return &Response{Status: "success", Message: "OK", Result: nil}, nil
}
func Waf(cfg map[string]any) (*Response, error) {
if err := wafPkg.Deploy(cfg); err != nil {
return nil, err
}
return &Response{Status: "success", Message: "OK", Result: nil}, nil
}