mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-30 23:49:10 +08:00
52 lines
1.1 KiB
Go
52 lines
1.1 KiB
Go
package constant
|
|
|
|
const (
|
|
Running = "Running"
|
|
UnHealthy = "UnHealthy"
|
|
Error = "Error"
|
|
Stopped = "Stopped"
|
|
Installing = "Installing"
|
|
Syncing = "Syncing"
|
|
DownloadErr = "DownloadErr"
|
|
DirNotFound = "DirNotFound"
|
|
Upgrading = "Upgrading"
|
|
UpgradeErr = "UpgradeErr"
|
|
PullErr = "PullErr"
|
|
Rebuilding = "Rebuilding"
|
|
|
|
ContainerPrefix = "1Panel-"
|
|
|
|
AppNormal = "Normal"
|
|
AppTakeDown = "TakeDown"
|
|
|
|
AppOpenresty = "openresty"
|
|
AppMysql = "mysql"
|
|
AppMariaDB = "mariadb"
|
|
AppRedis = "redis"
|
|
|
|
AppResourceLocal = "local"
|
|
AppResourceRemote = "remote"
|
|
|
|
CPUS = "CPUS"
|
|
MemoryLimit = "MEMORY_LIMIT"
|
|
HostIP = "HOST_IP"
|
|
ContainerName = "CONTAINER_NAME"
|
|
)
|
|
|
|
type AppOperate string
|
|
|
|
var (
|
|
Up AppOperate = "up"
|
|
Down AppOperate = "down"
|
|
Start AppOperate = "start"
|
|
Stop AppOperate = "stop"
|
|
Restart AppOperate = "restart"
|
|
Delete AppOperate = "delete"
|
|
Sync AppOperate = "sync"
|
|
Backup AppOperate = "backup"
|
|
Restore AppOperate = "restore"
|
|
Update AppOperate = "update"
|
|
Rebuild AppOperate = "rebuild"
|
|
Upgrade AppOperate = "upgrade"
|
|
)
|