Expand description
Plugin protocol. The implementation lives in the kernel plugin module;
this shim keeps the historical nichlink_run_method::plugin path.
插件协议。实现本体在 kernel 的 plugin 模块;
本 shim 保留 nichlink_run_method::plugin 历史路径。
Modules§
- artifact
- Verified plugin artifacts and selection decisions. 已验证插件工件与筛选决策。
- catalog
- Plugin lock records and catalog matching. 插件锁记录与清单匹配。
- contracts
- Flow contracts and plugin records carried by registration declarations. 注册声明携带的数据流合同与插件记录。
- graft
- Atomic graft commands and validation errors. 原子嫁接命令与校验错误。
- plugin
- Plugin protocol: manifests, catalogs, trust, slots, and graft overlays. 插件协议:manifest、目录、信任、槽位与嫁接覆盖。
- plugin_
policy - Plugin execution policy and adapter contracts. 插件执行策略与适配器合同。
- slot
- Runtime plugin-slot validation shared by every execution adapter. 各执行适配器共用的运行时插件槽校验。
- trust
- Plugin trust policy and verification errors. 插件信任策略与验证错误。
Structs§
- CutGraft
Command - Parsed
cut [A/a1/b2] graft replacementcommand. 解析cut [A/a1/b2] graft replacement命令。 - Graft
Cut - One path cut and its external implementation selector. 一条路径切口及其外部实现选择器。
- Graft
Plan - A persistent overlay plan. It never moves or edits source files. 持久化覆盖计划;它永不移动或编辑源码文件。
- Graft
Plan Document - One external overlay declaration as written to
graft.plan. 写进graft.plan的一条外部覆盖声明。 - Plugin
Artifact - External registration data together with the bytes that produced it. 外部注册声明及其对应的插件字节。
- Plugin
Catalog - Parsed plugin selections kept separate from the Rust linking entries. 与 Rust 链接入口分离的插件选择记录。
- Plugin
Policy - Host policy for selecting which linked plugin manifests may participate. 宿主选择已链接插件是否参与的策略。
- Plugin
Record - One parsed plugin lock line, kept as typed fields. 一条解析后的插件锁记录,保留为带类型的字段。
- Plugin
Revocation - A withdrawn package version, matched exactly by package and version. 已撤销的包版本,按包名与版本精确匹配。
- Plugin
Trust Policy - A small, dependency-free trust policy for plugin bytes. 一个零依赖的插件字节信任策略。
- Verified
Plugin Artifact - Plugin bytes that passed the configured trust policy. 已通过宿主信任策略的插件字节。
Enums§
- Graft
Error - Reasons a graft was rejected before the live tree was touched. 嫁接在修改线上树之前被拒绝的原因。
- Graft
Plan Document Error - Why a
graft.plandocument was refused.graft.plan文档被拒绝的原因。 - Plugin
Adapter - Where plugin code executes. Native code is trusted process code; the other two modes are explicit isolation choices for untrusted extensions. 插件代码的执行隔离方式。Native 与宿主同进程;另外两种是明确的隔离选项。
- Plugin
Assurance - The strongest check actually performed on an artifact. 插件工件实际完成的最高校验等级。
- Plugin
Channel - Trust lane enabled for one runtime plugin slot. 运行时插件槽允许使用的信任通道。
- Plugin
Decision - One auditable plugin-selection result. 一条可审计的插件筛选结果。
- Plugin
Reject Reason - Why a plugin-selection decision refused a manifest. 插件筛选决策拒绝某个 manifest 的原因。
- Plugin
Trust Error - Why plugin trust verification refused an artifact. 插件信任校验拒绝某个工件的原因。
- Slot
Validation Error - Why a plugin artifact was rejected for one slot. 插件工件被某个插件槽拒绝的原因。
Constants§
- GRAFT_
PLAN_ VERSION - The only
graft.planlayout this build understands. 本版本唯一能读懂的graft.plan版式。 - PLUGIN_
ABI_ VERSION - Version of the host/plugin execution ABI. 宿主与插件执行 ABI 的版本。
Traits§
- Plugin
Runtime - Generic execution backend for a plugin artifact. 插件工件的泛型执行后端。
- Plugin
Signature Verifier - Host-provided cryptographic verifier for official plugin signatures. 由宿主提供的官方插件签名密码学验证器。
Functions§
- validate_
artifact - Validate one verified artifact against a runtime slot definition. 按运行时插件槽定义校验一个已验证工件。
- validate_
graft_ selector - Check one external implementation selector against the plan format. 按计划格式校验一个外部实现选择器。
- validate_
operation_ name - Check the operation name shared by every plugin adapter. 校验各插件适配器共用的操作名。