2022-09-26 16:32:40 +08:00
|
|
|
package constant
|
|
|
|
|
|
|
|
const (
|
2023-05-15 22:40:05 +08:00
|
|
|
Running = "Running"
|
|
|
|
UnHealthy = "UnHealthy"
|
|
|
|
Error = "Error"
|
|
|
|
Stopped = "Stopped"
|
|
|
|
Installing = "Installing"
|
|
|
|
DownloadErr = "DownloadErr"
|
2023-05-18 16:48:19 +08:00
|
|
|
Upgrading = "Upgrading"
|
|
|
|
UpgradeErr = "UpgradeErr"
|
2023-08-28 18:10:16 +08:00
|
|
|
Rebuilding = "Rebuilding"
|
2023-11-03 18:18:12 +08:00
|
|
|
Syncing = "Syncing"
|
|
|
|
SyncSuccess = "SyncSuccess"
|
|
|
|
SyncErr = "SyncErr"
|
2022-09-26 16:32:40 +08:00
|
|
|
|
|
|
|
ContainerPrefix = "1Panel-"
|
2022-09-30 17:56:06 +08:00
|
|
|
|
|
|
|
AppNormal = "Normal"
|
|
|
|
AppTakeDown = "TakeDown"
|
2022-12-13 20:03:54 +08:00
|
|
|
|
2023-02-22 17:13:08 +08:00
|
|
|
AppOpenresty = "openresty"
|
|
|
|
AppMysql = "mysql"
|
2023-09-06 21:22:12 +08:00
|
|
|
AppMariaDB = "mariadb"
|
2023-12-28 16:29:18 +08:00
|
|
|
AppPostgresql = "postgresql"
|
2023-02-22 17:13:08 +08:00
|
|
|
AppRedis = "redis"
|
2023-04-08 14:02:14 +08:00
|
|
|
|
|
|
|
AppResourceLocal = "local"
|
|
|
|
AppResourceRemote = "remote"
|
2023-05-17 15:46:29 +08:00
|
|
|
|
|
|
|
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"
|
2023-12-05 14:30:10 +08:00
|
|
|
Reload AppOperate = "reload"
|
2022-12-14 15:08:21 +08:00
|
|
|
)
|