Documentation
¶
Overview ¶
Package cloudpath 暴露仓库级只读契约资产的嵌入副本。
目的:发布出去的 CLI / Edge 二进制在**没有仓库 checkout 的机器**上也能校验插件 manifest。否则「干净电脑 → 安装 Edge → 从 GitHub 安装 Driver」这条验收路径会卡在 找不到 spec/plugin-manifest.schema.json。
SSOT 仍是 spec/plugin-manifest.schema.json;这里只是同一份文件的嵌入副本, 不允许出现第二份手写 schema。
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var PluginManifestSchema []byte
PluginManifestSchema 是 spec/plugin-manifest.schema.json 的嵌入副本。
View Source
var PluginUISchema []byte
PluginUISchema 是 spec/plugin-ui.schema.json 的嵌入副本,供 manifest UI 贡献校验使用。
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
cloudpath
command
cloudpath is the Cloudpath plugin Registry CLI.
|
cloudpath is the Cloudpath plugin Registry CLI. |
|
cloudpath-edge
command
cloudpath-edge 是 Cloudpath 边缘代理:管理本机串口设备并接入 server。
|
cloudpath-edge 是 Cloudpath 边缘代理:管理本机串口设备并接入 server。 |
|
cloudpath-server
command
cloudpath-server 是 Cloudpath 中心服务:REST API + WS hub + SQLite + 内嵌 WebUI。
|
cloudpath-server 是 Cloudpath 中心服务:REST API + WS hub + SQLite + 内嵌 WebUI。 |
|
examples
|
|
|
demo
Package demo 实现 CloudPath 的参考演示设备适配器(reference demo device)。
|
Package demo 实现 CloudPath 的参考演示设备适配器(reference demo device)。 |
|
scheduled-compartment/cmd/cloud-path-app-scheduled-compartment
command
Command cloud-path-app-scheduled-compartment is the executable entrypoint for the Scheduled Compartment reference application.
|
Command cloud-path-app-scheduled-compartment is the executable entrypoint for the Scheduled Compartment reference application. |
|
internal
|
|
|
api
Package api 定义 edge↔server↔浏览器 的共享契约:WS 消息信封与 REST DTO。
|
Package api 定义 edge↔server↔浏览器 的共享契约:WS 消息信封与 REST DTO。 |
|
application
Package application implements the device-independent Application Binding engine for CloudPath.
|
Package application implements the device-independent Application Binding engine for CloudPath. |
|
appruntime
Package appruntime implements the device-independent Application Runtime.
|
Package appruntime implements the device-independent Application Runtime. |
|
audit
Package audit 是租户级、append-only、不可泄密的安全审计日志域。
|
Package audit 是租户级、append-only、不可泄密的安全审计日志域。 |
|
auth
Package auth 提供 Cloudpath 的鉴权原语:argon2id 密码哈希、服务端会话 cookie、 服务令牌校验、登录限流与请求身份(Principal)解析(docs/api.md §1/§2)。
|
Package auth 提供 Cloudpath 的鉴权原语:argon2id 密码哈希、服务端会话 cookie、 服务令牌校验、登录限流与请求身份(Principal)解析(docs/api.md §1/§2)。 |
|
device
Package device 是 sdk/go/driverkit 的内部薄兼容层:Core(edge/server)继续使用 device.Command / device.Adapter / device.Register 等既有名字,单一实现与注册表都在 公共 driverkit 中,外部 Driver 插件只 import sdk/go/driverkit,不 import 本包。
|
Package device 是 sdk/go/driverkit 的内部薄兼容层:Core(edge/server)继续使用 device.Command / device.Adapter / device.Register 等既有名字,单一实现与注册表都在 公共 driverkit 中,外部 Driver 插件只 import sdk/go/driverkit,不 import 本包。 |
|
edge
Package edge 是 Cloudpath 边缘代理运行时:串口设备监督(热插拔自愈)、 轮询/对时调度、状态上报与命令执行(WS 持久连接)。
|
Package edge 是 Cloudpath 边缘代理运行时:串口设备监督(热插拔自愈)、 轮询/对时调度、状态上报与命令执行(WS 持久连接)。 |
|
edgedriverhost
Package edgedriverhost 把外部 Driver Plugin Host 接入 edge 进程生命周期: 由 desired-state + lockfile 驱动,在 edge 退出时优雅关闭、不留孤儿进程。
|
Package edgedriverhost 把外部 Driver Plugin Host 接入 edge 进程生命周期: 由 desired-state + lockfile 驱动,在 edge 退出时优雅关闭、不留孤儿进程。 |
|
logx
Package logx 提供 slog 全局初始化(结构化日志,零第三方依赖)。
|
Package logx 提供 slog 全局初始化(结构化日志,零第三方依赖)。 |
|
model
Package model 是 sdk/go/model 的内部薄兼容层。
|
Package model 是 sdk/go/model 的内部薄兼容层。 |
|
plugincatalog
Package plugincatalog 是插件事实的只读、租户作用域视图。
|
Package plugincatalog 是插件事实的只读、租户作用域视图。 |
|
registry
Package registry implements Cloudpath plugin discovery, manifest validation, registry entries, digest verification and the plugins.lock contract.
|
Package registry implements Cloudpath plugin discovery, manifest validation, registry entries, digest verification and the plugins.lock contract. |
|
secrethandle
Package secrethandle implements the local-only plugin secret reference boundary.
|
Package secrethandle implements the local-only plugin secret reference boundary. |
|
server
Package server 是 Cloudpath 中心服务:chi REST + WS hub(edge 接入 / 浏览器 fan-out) + SQLite 持久化 + 内嵌 webui。
|
Package server 是 Cloudpath 中心服务:chi REST + WS hub(edge 接入 / 浏览器 fan-out) + SQLite 持久化 + 内嵌 webui。 |
|
server/storeadapter
Package storeadapter 是 Captain 在 STORE / SERVER 两条 lane 合并后的唯一接线点: 把 *store.Store 接到 internal/server/storeport.PluginStore 端口。
|
Package storeadapter 是 Captain 在 STORE / SERVER 两条 lane 合并后的唯一接线点: 把 *store.Store 接到 internal/server/storeport.PluginStore 端口。 |
|
server/storeport
Package storeport defines the persistence port used by the server-side plugin control plane.
|
Package storeport defines the persistence port used by the server-side plugin control plane. |
|
store
Package store 是 SQLite 持久层(modernc.org/sqlite,纯 Go 零 CGO)。
|
Package store 是 SQLite 持久层(modernc.org/sqlite,纯 Go 零 CGO)。 |
|
tenantpolicy
Package tenantpolicy defines CloudPath's v0.1 anti-abuse limits and tenant-scoped retention policy.
|
Package tenantpolicy defines CloudPath's v0.1 anti-abuse limits and tenant-scoped retention policy. |
|
sdk
|
|
|
go/cloudpath/v1/application
Package application is the handwritten Go contract for proto/cloudpath/v1/application.proto (Application Protocol v1).
|
Package application is the handwritten Go contract for proto/cloudpath/v1/application.proto (Application Protocol v1). |
|
go/cloudpath/v1/driver
Package driver is the handwritten Go contract for proto/cloudpath/v1/driver.proto (Driver Protocol v1).
|
Package driver is the handwritten Go contract for proto/cloudpath/v1/driver.proto (Driver Protocol v1). |
|
go/cloudpath/v1/status
Package status defines the handwritten RPC status type shared by the driver and application protocol packages.
|
Package status defines the handwritten RPC status type shared by the driver and application protocol packages. |
|
go/driverkit
Package driverkit 定义外部 Driver 插件所需的公共契约:Config / State / Event / Command / Device / Adapter 与 Descriptor/Capability 类型,以及进程内注册表。
|
Package driverkit 定义外部 Driver 插件所需的公共契约:Config / State / Event / Command / Device / Adapter 与 Descriptor/Capability 类型,以及进程内注册表。 |
|
go/driverkit/sampleexternal
Package sampleexternal 是一个「仓外风格」的参考 Driver 样例:只 import 公共 SDK (sdk/go/driverkit 与 sdk/go/model),不 import 任何 internal/*。
|
Package sampleexternal 是一个「仓外风格」的参考 Driver 样例:只 import 公共 SDK (sdk/go/driverkit 与 sdk/go/model),不 import 任何 internal/*。 |
|
go/model
Package model 定义 CloudPath 的设备无关领域模型:Device / Entity / Capability / Observation / Event / Command / Descriptor,并负责对冻结契约 spec/descriptor.schema.json 与 spec/capability.schema.json 的校验。
|
Package model 定义 CloudPath 的设备无关领域模型:Device / Entity / Capability / Observation / Event / Command / Descriptor,并负责对冻结契约 spec/descriptor.schema.json 与 spec/capability.schema.json 的校验。 |
|
go/pluginmain
Package pluginmain is the common executable entrypoint helper for CloudPath process plugins.
|
Package pluginmain is the common executable entrypoint helper for CloudPath process plugins. |
|
go/pluginruntime
Package pluginruntime provides the production local socket transport that binds a plugin process to its host for one launch, plus the handshake and RPC bridges used by the A4 Plugin Host and SDK service layers.
|
Package pluginruntime provides the production local socket transport that binds a plugin process to its host for one launch, plus the handshake and RPC bridges used by the A4 Plugin Host and SDK service layers. |
|
go/rpc
Package rpc is a small, handwritten RPC framing layer for the in-process transport.
|
Package rpc is a small, handwritten RPC framing layer for the in-process transport. |
|
go/transport
Package transport defines the transport abstraction every handwritten RPC protocol sits on.
|
Package transport defines the transport abstraction every handwritten RPC protocol sits on. |
|
testing
|
|
|
plugin-fixtures
Package pluginfixtures provides the minimal simulated Driver plugin used by the process-host E2E tests.
|
Package pluginfixtures provides the minimal simulated Driver plugin used by the process-host E2E tests. |
|
plugin-fixtures/cmd/cloudpath-driver-fixture
command
Command cloudpath-driver-fixture is a minimal simulated Driver plugin used by the process-host E2E tests.
|
Command cloudpath-driver-fixture is a minimal simulated Driver plugin used by the process-host E2E tests. |
|
plugin-harness
Package pluginharness contains the conformance runner plus its mock Driver and mock Core.
|
Package pluginharness contains the conformance runner plus its mock Driver and mock Core. |
Click to show internal directories.
Click to hide internal directories.