mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-12-12 15:39:09 +08:00
51 lines
1.0 KiB
Go
51 lines
1.0 KiB
Go
package constant
|
|
|
|
const (
|
|
ResourceLocal = "local"
|
|
ResourceAppstore = "appstore"
|
|
|
|
RuntimeNormal = "normal"
|
|
RuntimeError = "error"
|
|
RuntimeBuildIng = "building"
|
|
RuntimeStarting = "starting"
|
|
RuntimeRunning = "running"
|
|
RuntimeReCreating = "recreating"
|
|
RuntimeStopped = "stopped"
|
|
RuntimeUnhealthy = "unhealthy"
|
|
RuntimeCreating = "creating"
|
|
RuntimeStartErr = "startErr"
|
|
|
|
RuntimePHP = "php"
|
|
RuntimeNode = "node"
|
|
RuntimeJava = "java"
|
|
RuntimeGo = "go"
|
|
RuntimePython = "python"
|
|
|
|
RuntimeProxyUnix = "unix"
|
|
RuntimeProxyTcp = "tcp"
|
|
|
|
RuntimeUp = "up"
|
|
RuntimeDown = "down"
|
|
RuntimeRestart = "restart"
|
|
|
|
RuntimeInstall = "install"
|
|
RuntimeUninstall = "uninstall"
|
|
RuntimeUpdate = "update"
|
|
|
|
RuntimeNpm = "npm"
|
|
RuntimeYarn = "yarn"
|
|
)
|
|
|
|
var GoDefaultVolumes = map[string]string{
|
|
"${CODE_DIR}": "/app",
|
|
"./run.sh": "/run.sh",
|
|
"./.env": "/.env",
|
|
"./mod": "/go/pkg/mod",
|
|
}
|
|
|
|
var RuntimeDefaultVolumes = map[string]string{
|
|
"${CODE_DIR}": "/app",
|
|
"./run.sh": "/run.sh",
|
|
"./.env": "/.env",
|
|
}
|