1Panel/backend/constant/app.go

47 lines
973 B
Go
Raw Normal View History

package constant
const (
Running = "Running"
UnHealthy = "UnHealthy"
Error = "Error"
Stopped = "Stopped"
Installing = "Installing"
Syncing = "Syncing"
DownloadErr = "DownloadErr"
DirNotFound = "DirNotFound"
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"
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 (
Up AppOperate = "up"
Down AppOperate = "down"
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"
Restore AppOperate = "restore"
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"
2022-12-14 15:08:21 +08:00
)