feat: 完整游戏运维功能
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://browser.local/schemas/lifecycle-action.schema.json",
|
||||
"title": "PluginLifecycleActionDeclaration",
|
||||
"type": "object",
|
||||
"required": ["version", "action", "mode"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"version": { "const": 1 },
|
||||
"action": { "enum": ["install", "start", "stop", "restart", "status"] },
|
||||
"mode": { "enum": ["oneshot", "supervised", "control"] },
|
||||
"executableKey": { "$ref": "game-plugin.manifest.schema.json#/$defs/relativePathRef" },
|
||||
"arguments": {
|
||||
"type": "array",
|
||||
"items": { "type": "string", "minLength": 1, "maxLength": 240 },
|
||||
"maxItems": 64
|
||||
},
|
||||
"environment": {
|
||||
"type": "object",
|
||||
"propertyNames": { "pattern": "^(GAME|SERVER|RUN)_[A-Z0-9_]{1,59}$" },
|
||||
"additionalProperties": { "type": "string", "maxLength": 512 },
|
||||
"maxProperties": 32
|
||||
},
|
||||
"timeoutMs": { "type": "integer", "minimum": 1, "maximum": 300000 },
|
||||
"stopTimeoutMs": { "type": "integer", "minimum": 1, "maximum": 60000 }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user