1Panel/backend/constant/app.go

50 lines
1.0 KiB
Go
Raw Normal View History

package constant
const (
Running = "Running"
UnHealthy = "UnHealthy"
Error = "Error"
Stopped = "Stopped"
Installing = "Installing"
Syncing = "Syncing"
DownloadErr = "DownloadErr"
DirNotFound = "DirNotFound"
2023-05-18 08:48:19 +00:00
Upgrading = "Upgrading"
UpgradeErr = "UpgradeErr"
PullErr = "PullErr"
ContainerPrefix = "1Panel-"
2022-09-30 09:56:06 +00:00
AppNormal = "Normal"
AppTakeDown = "TakeDown"
2022-12-13 12:03:54 +00: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 09:56:06 +00:00
)
2022-12-14 07:08:21 +00:00
type AppOperate string
var (
Up AppOperate = "up"
Down AppOperate = "down"
2023-03-01 03:51:49 +00:00
Start AppOperate = "start"
Stop AppOperate = "stop"
2022-12-14 07:08:21 +00:00
Restart AppOperate = "restart"
Delete AppOperate = "delete"
Sync AppOperate = "sync"
Backup AppOperate = "backup"
Restore AppOperate = "restore"
Update AppOperate = "update"
2023-03-01 03:51:49 +00:00
Rebuild AppOperate = "rebuild"
2023-03-08 03:04:22 +00:00
Upgrade AppOperate = "upgrade"
2022-12-14 07:08:21 +00:00
)