2024-07-23 14:48:37 +08:00
|
|
|
package constant
|
|
|
|
|
|
|
|
const (
|
|
|
|
Running = "Running"
|
|
|
|
UnHealthy = "UnHealthy"
|
|
|
|
Error = "Error"
|
|
|
|
Stopped = "Stopped"
|
|
|
|
Installing = "Installing"
|
|
|
|
DownloadErr = "DownloadErr"
|
|
|
|
Upgrading = "Upgrading"
|
|
|
|
UpgradeErr = "UpgradeErr"
|
|
|
|
Rebuilding = "Rebuilding"
|
|
|
|
Syncing = "Syncing"
|
|
|
|
SyncSuccess = "SyncSuccess"
|
|
|
|
Paused = "Paused"
|
|
|
|
UpErr = "UpErr"
|
2024-07-29 18:09:57 +08:00
|
|
|
InstallErr = "InstallErr"
|
2024-07-23 14:48:37 +08:00
|
|
|
|
|
|
|
ContainerPrefix = "1Panel-"
|
|
|
|
|
|
|
|
AppNormal = "Normal"
|
|
|
|
AppTakeDown = "TakeDown"
|
|
|
|
|
|
|
|
AppOpenresty = "openresty"
|
|
|
|
AppMysql = "mysql"
|
|
|
|
AppMariaDB = "mariadb"
|
|
|
|
AppPostgresql = "postgresql"
|
|
|
|
AppRedis = "redis"
|
|
|
|
AppPostgres = "postgres"
|
|
|
|
AppMongodb = "mongodb"
|
|
|
|
AppMemcached = "memcached"
|
|
|
|
|
|
|
|
AppResourceLocal = "local"
|
|
|
|
AppResourceRemote = "remote"
|
|
|
|
|
|
|
|
CPUS = "CPUS"
|
|
|
|
MemoryLimit = "MEMORY_LIMIT"
|
|
|
|
HostIP = "HOST_IP"
|
|
|
|
ContainerName = "CONTAINER_NAME"
|
|
|
|
)
|
|
|
|
|
|
|
|
type AppOperate string
|
|
|
|
|
|
|
|
var (
|
|
|
|
Start AppOperate = "start"
|
|
|
|
Stop AppOperate = "stop"
|
|
|
|
Restart AppOperate = "restart"
|
|
|
|
Delete AppOperate = "delete"
|
|
|
|
Sync AppOperate = "sync"
|
|
|
|
Backup AppOperate = "backup"
|
|
|
|
Update AppOperate = "update"
|
|
|
|
Rebuild AppOperate = "rebuild"
|
|
|
|
Upgrade AppOperate = "upgrade"
|
|
|
|
Reload AppOperate = "reload"
|
|
|
|
)
|