mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-10-10 07:26:35 +08:00
40 lines
917 B
Go
40 lines
917 B
Go
//go:build !xpack
|
|
|
|
package xpack
|
|
|
|
import (
|
|
"crypto/tls"
|
|
"net"
|
|
"net/http"
|
|
"time"
|
|
|
|
"github.com/1Panel-dev/1Panel/core/utils/ssh"
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func Proxy(c *gin.Context, currentNode string) {}
|
|
|
|
func ProxyDocker(proxyURL string) error { return nil }
|
|
|
|
func UpdateGroup(name string, group, newGroup uint) error { return nil }
|
|
|
|
func CheckBackupUsed(name string) error { return nil }
|
|
|
|
func LoadRequestTransport() *http.Transport {
|
|
return &http.Transport{
|
|
TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
|
|
DialContext: (&net.Dialer{
|
|
Timeout: 60 * time.Second,
|
|
KeepAlive: 60 * time.Second,
|
|
}).DialContext,
|
|
TLSHandshakeTimeout: 5 * time.Second,
|
|
ResponseHeaderTimeout: 10 * time.Second,
|
|
IdleConnTimeout: 15 * time.Second,
|
|
}
|
|
}
|
|
|
|
func LoadNodeInfo(currentNode string) (*ssh.ConnInfo, string, error) {
|
|
return nil, "", nil
|
|
}
|
|
|
|
func Sync(dataType string) error { return nil }
|