init
This commit is contained in:
14
config/edge_manifest.example.json
Normal file
14
config/edge_manifest.example.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "./edge_manifest.schema.json",
|
||||
"coreHost": "127.0.0.1",
|
||||
"corePort": 18765,
|
||||
"edgeId": "edge-dev-1",
|
||||
"authToken": "",
|
||||
"opsListenPort": 9080,
|
||||
"localTreePath": "/tmp/edge_local_tree.json",
|
||||
"fakeIntervalMs": 5000,
|
||||
"fakeDeviceId": 1,
|
||||
"endpoint": "edge:fake",
|
||||
"protocol": 0,
|
||||
"edgeDiscoveryEnabled": true
|
||||
}
|
||||
22
config/edge_manifest.schema.json
Normal file
22
config/edge_manifest.schema.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"$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:port" },
|
||||
"localTreePath": { "type": "string", "description": "GET / 返回的本地树文件路径(展示用)" },
|
||||
"fakeIntervalMs": { "type": "integer", "minimum": 100, "description": "假数据 DATA_RAWBUS 发送周期(毫秒)" },
|
||||
"fakeDeviceId": { "type": "integer", "description": "RawBusMessage.deviceId" },
|
||||
"endpoint": { "type": "string", "description": "用于 qHash(endpoint) 得到 endpointHash,须与核心设备树约定一致" },
|
||||
"protocol": { "type": "integer", "description": "ProtocolType 枚举数值(与核心 RawBusMessage 一致)" },
|
||||
"edgeDiscoveryEnabled": {
|
||||
"type": "boolean",
|
||||
"description": "HELLO 成功后是否启动 udev 串口发现并向核心发送 TREE_PROPOSE(upsert/patch);需 Linux libudev"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user