mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-14 02:20:53 +08:00
【调整】插件支持动态参数和参数类型
【调整】获取证书列表支持状态过滤 【新增】dns提供商腾讯云eo
This commit is contained in:
52
plugins/alicloud/action.go
Normal file
52
plugins/alicloud/action.go
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user