2024-07-23 14:48:37 +08:00
|
|
|
package constant
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
ContainerPrefix = "1Panel-"
|
|
|
|
|
|
|
|
|
|
AppNormal = "Normal"
|
|
|
|
|
AppTakeDown = "TakeDown"
|
|
|
|
|
|
2025-07-14 12:21:51 +08:00
|
|
|
AppOpenresty = "openresty"
|
2026-02-05 16:54:55 +08:00
|
|
|
AppOpenclaw = "openclaw"
|
2026-03-02 14:53:58 +08:00
|
|
|
AppCopaw = "copaw"
|
2026-04-15 11:10:45 +08:00
|
|
|
AppHermesAgent = "hermes-agent"
|
2026-10-21 17:25:38 +08:00
|
|
|
AppDeepSeekHarness = "deepseek-harness"
|
|
|
|
|
AppOctop = "octop"
|
2025-07-14 12:21:51 +08:00
|
|
|
AppMysql = "mysql"
|
|
|
|
|
AppMariaDB = "mariadb"
|
|
|
|
|
AppPostgresql = "postgresql"
|
|
|
|
|
AppRedis = "redis"
|
|
|
|
|
AppPostgres = "postgres"
|
|
|
|
|
AppMongodb = "mongodb"
|
|
|
|
|
AppMemcached = "memcached"
|
|
|
|
|
AppMysqlCluster = "mysql-cluster"
|
|
|
|
|
AppPostgresqlCluster = "postgresql-cluster"
|
|
|
|
|
AppRedisCluster = "redis-cluster"
|
2024-07-23 14:48:37 +08:00
|
|
|
|
|
|
|
|
AppResourceLocal = "local"
|
|
|
|
|
AppResourceRemote = "remote"
|
2024-12-30 21:04:11 +08:00
|
|
|
AppResourceCustom = "custom"
|
2024-07-23 14:48:37 +08:00
|
|
|
|
|
|
|
|
CPUS = "CPUS"
|
|
|
|
|
MemoryLimit = "MEMORY_LIMIT"
|
|
|
|
|
HostIP = "HOST_IP"
|
|
|
|
|
ContainerName = "CONTAINER_NAME"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type AppOperate string
|
|
|
|
|
|
|
|
|
|
var (
|
2025-04-25 16:51:53 +08:00
|
|
|
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"
|
|
|
|
|
Favorite AppOperate = "favorite"
|
2024-07-23 14:48:37 +08:00
|
|
|
)
|