-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathxpack.go
More file actions
74 lines (55 loc) · 2.28 KB
/
xpack.go
File metadata and controls
74 lines (55 loc) · 2.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
//go:build xpack
package xpack
import (
"net/http"
"github.com/1Panel-dev/1Panel/agent/app/dto"
"github.com/1Panel-dev/1Panel/agent/app/model"
edition "github.com/1Panel-dev/1Panel/agent/xpack/edition"
"github.com/gin-gonic/gin"
)
func RemoveTamper(website string) {
edition.RemoveTamper(website)
}
func StartClam(startClam *model.Clam, isUpdate bool) (int, error) {
return edition.StartClam(startClam, isUpdate)
}
func LoadNodeInfo(isBase bool) (model.NodeInfo, error) {
return edition.LoadNodeInfo(isBase)
}
func GetImagePrefix() string {
return edition.GetImagePrefix()
}
func IsUseCustomApp() bool {
return edition.IsUseCustomApp()
}
func IsXpack() bool {
return edition.IsXpack()
}
func CreateTaskScanSMSAlertLog(info dto.AlertDTO, alertType string, create dto.AlertLogCreate, pushAlert dto.PushAlert, method string) error {
return edition.CreateTaskScanSMSAlertLog(info, alertType, create, pushAlert, method)
}
func CreateSMSAlertLog(alertType string, info dto.AlertDTO, create dto.AlertLogCreate, project string, params []dto.Param, method string) error {
return edition.CreateSMSAlertLog(alertType, info, create, project, params, method)
}
func CreateTaskScanWebhookAlertLog(alert dto.AlertDTO, alertType string, create dto.AlertLogCreate, pushAlert dto.PushAlert, method string, transport *http.Transport, agentInfo *dto.AgentInfo) error {
return edition.CreateTaskScanWebhookAlertLog(alert, alertType, create, pushAlert, method, transport, agentInfo)
}
func CreateWebhookAlertLog(alertType string, info dto.AlertDTO, create dto.AlertLogCreate, project string, params []dto.Param, method string, transport *http.Transport, agentInfo *dto.AgentInfo) error {
return edition.CreateWebhookAlertLog(alertType, info, create, project, params, method, transport, agentInfo)
}
func GetLicenseErrorAlert() (uint, error) {
return edition.GetLicenseErrorAlert()
}
func GetNodeErrorAlert() (uint, error) {
return edition.GetNodeErrorAlert()
}
func LoadRequestTransport() *http.Transport { return edition.LoadRequestTransport() }
func ValidateCertificate(c *gin.Context) bool {
return edition.ValidateCertificate(c)
}
func PushSSLToNode(websiteSSL *model.WebsiteSSL) error {
return edition.PushSSLToNode(websiteSSL)
}
func GetAgentInfo() (*dto.AgentInfo, error) {
return edition.GetAgentInfo()
}