Files
soft_bus_edge/config/edge_manifest.schema.json
flower_linux 5e5e608dad first commit
2026-05-19 16:38:09 +08:00

61 lines
3.1 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "softbus_edge_manifest",
"type": "object",
"required": ["coreHost", "corePort", "edgeId"],
"properties": {
"coreHost": { "type": "string", "description": "softbus_daemon 所在主机" },
"corePort": { "type": "integer", "description": "daemon_config edgeIngress.port" },
"edgeId": { "type": "string", "description": "HELLO / PROPOSE 与会话绑定的边缘 ID" },
"authToken": { "type": "string", "description": "若核心配置了 edgeIngress.authToken则此处必须一致" },
"opsListenPort": { "type": "integer", "minimum": 0, "description": "0 关闭运维 HTTP否则监听端口。默认仅 127.0.0.1;设 opsListenAllInterfaces 为 true 时监听 0.0.0.0(局域网可访问,注意安全)" },
"opsListenAllInterfaces": {
"type": "boolean",
"description": "false默认时运维 HTTP 仅绑定本机回环true 时绑定所有网卡,便于从局域网浏览器访问"
},
"localTreePath": {
"type": "string",
"description": "本地设备树 JSON 路径Ops GET / 展示、TREE_FULL 落盘)。未配置时内置默认为 $HOME/softbus/edge/local_tree.json。字符串若以 $HOME/、${HOME}/ 或 ~/ 开头,会在加载时展开为当前用户家目录"
},
"edgeHeartbeatIntervalMs": {
"type": "integer",
"minimum": 0,
"description": "经 DEBUG_TUNNEL 上送边缘心跳的周期(毫秒)。载荷 JSON 含 treeRevision、nodeCount、treeFingerprint设备树紧凑 JSON 的 qHash。0 关闭"
},
"edgeDiscoveryEnabled": {
"type": "boolean",
"description": "为 true 时启动 udev 串口发现:已连接核心且拿到 treeRevision 后发送 TREE_PROPOSE无核心或 HELLO 失败时仍发现,并将 upsert/patch 写入本地 local_tree.json 与 reconcile。需 Linux libudev"
},
"edgeSerialChunkQueueCapacity": {
"type": "integer",
"minimum": 64,
"description": "启用流式 pipeline 时,每个 endpointHash 一条分帧线程对应的有界 SPSC 队列容量(与 daemon EndpointFramingState::chunkQ 语义对齐)。默认 4096"
},
"edgeUseEndpointFramerThreads": {
"type": "boolean",
"description": "为 true默认时串口读回调仅 tryEnqueue 到分帧线程;为 false 时在同线程同步分帧(调试用)。主路径推荐 true"
},
"plugins": {
"type": "object",
"description": "可选;与 softbus_daemon 的 daemon_config.plugins 形态一致。非空时启用边缘流式 framer/parser/mapper见 README",
"properties": {
"protocols": {
"type": "array",
"items": {
"oneOf": [
{ "type": "string", "description": "协议插件 .so 路径(与 manifest 同目录的相对路径可解析)" },
{
"type": "object",
"required": ["path"],
"properties": {
"path": { "type": "string", "description": "dlopen 路径,通常指向 libmodbus_rtu.so 等" }
}
}
]
}
}
}
}
}
}