1Panel/backend/constant/app.go

51 lines
1.1 KiB
Go
Raw Normal View History

package constant
const (
Running = "Running"
UnHealthy = "UnHealthy"
Error = "Error"
Stopped = "Stopped"
Installing = "Installing"
DownloadErr = "DownloadErr"
2023-05-18 16:48:19 +08:00
Upgrading = "Upgrading"
UpgradeErr = "UpgradeErr"
Rebuilding = "Rebuilding"
2023-11-03 18:18:12 +08:00
Syncing = "Syncing"
SyncSuccess = "SyncSuccess"
SyncErr = "SyncErr"
ContainerPrefix = "1Panel-"
2022-09-30 17:56:06 +08:00
AppNormal = "Normal"
AppTakeDown = "TakeDown"
2022-12-13 20:03:54 +08:00
AppOpenresty = "openresty"
AppMysql = "mysql"
AppMariaDB = "mariadb"
AppPostgresql = "postgresql"
AppRedis = "redis"
AppResourceLocal = "local"
AppResourceRemote = "remote"
CPUS = "CPUS"
MemoryLimit = "MEMORY_LIMIT"
HostIP = "HOST_IP"
ContainerName = "CONTAINER_NAME"
2022-09-30 17:56:06 +08:00
)
2022-12-14 15:08:21 +08:00
type AppOperate string
var (
2023-03-01 11:51:49 +08:00
Start AppOperate = "start"
Stop AppOperate = "stop"
2022-12-14 15:08:21 +08:00
Restart AppOperate = "restart"
Delete AppOperate = "delete"
Sync AppOperate = "sync"
Backup AppOperate = "backup"
Update AppOperate = "update"
2023-03-01 11:51:49 +08:00
Rebuild AppOperate = "rebuild"
2023-03-08 11:04:22 +08:00
Upgrade AppOperate = "upgrade"
Reload AppOperate = "reload"
2022-12-14 15:08:21 +08:00
)