-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Expand file tree
/
Copy pathxpack.go
More file actions
35 lines (24 loc) · 890 Bytes
/
xpack.go
File metadata and controls
35 lines (24 loc) · 890 Bytes
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
//go:build xpack
package xpack
import (
"net/http"
"github.com/1Panel-dev/1Panel/core/utils/ssh"
edition "github.com/1Panel-dev/1Panel/core/xpack/edition"
"github.com/gin-gonic/gin"
)
func Proxy(c *gin.Context, currentNode string) {
edition.Proxy(c, currentNode)
}
func ProxyDocker(proxyURL string) error { return edition.ProxyDocker(proxyURL) }
func UpdateGroup(name string, group, newGroup uint) error {
return edition.UpdateGroup(name, group, newGroup)
}
func CheckBackupUsed(name string) error {
return edition.CheckBackupUsed(name)
}
func LoadRequestTransport() *http.Transport { return edition.LoadRequestTransport() }
func LoadNodeInfo(currentNode string) (*ssh.ConnInfo, string, error) {
return edition.LoadNodeInfo(currentNode)
}
func Sync(dataType string) error { return edition.Sync(dataType) }
func AutoUpgradeWithMaster() { edition.AutoUpgradeWithMaster() }