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