Skip to main content

Module plugin

Module plugin 

Source
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§

CutGraftCommand
Parsed cut [A/a1/b2] graft replacement command. 解析 cut [A/a1/b2] graft replacement 命令。
GraftCut
One path cut and its external implementation selector. 一条路径切口及其外部实现选择器。
GraftPlan
A persistent overlay plan. It never moves or edits source files. 持久化覆盖计划;它永不移动或编辑源码文件。
GraftPlanDocument
One external overlay declaration as written to graft.plan. 写进 graft.plan 的一条外部覆盖声明。
PluginArtifact
External registration data together with the bytes that produced it. 外部注册声明及其对应的插件字节。
PluginCatalog
Parsed plugin selections kept separate from the Rust linking entries. 与 Rust 链接入口分离的插件选择记录。
PluginPolicy
Host policy for selecting which linked plugin manifests may participate. 宿主选择已链接插件是否参与的策略。
PluginRecord
One parsed plugin lock line, kept as typed fields. 一条解析后的插件锁记录,保留为带类型的字段。
PluginRevocation
A withdrawn package version, matched exactly by package and version. 已撤销的包版本,按包名与版本精确匹配。
PluginTrustPolicy
A small, dependency-free trust policy for plugin bytes. 一个零依赖的插件字节信任策略。
VerifiedPluginArtifact
Plugin bytes that passed the configured trust policy. 已通过宿主信任策略的插件字节。

Enums§

GraftError
Reasons a graft was rejected before the live tree was touched. 嫁接在修改线上树之前被拒绝的原因。
GraftPlanDocumentError
Why a graft.plan document was refused. graft.plan 文档被拒绝的原因。
PluginAdapter
Where plugin code executes. Native code is trusted process code; the other two modes are explicit isolation choices for untrusted extensions. 插件代码的执行隔离方式。Native 与宿主同进程;另外两种是明确的隔离选项。
PluginAssurance
The strongest check actually performed on an artifact. 插件工件实际完成的最高校验等级。
PluginChannel
Trust lane enabled for one runtime plugin slot. 运行时插件槽允许使用的信任通道。
PluginDecision
One auditable plugin-selection result. 一条可审计的插件筛选结果。
PluginRejectReason
Why a plugin-selection decision refused a manifest. 插件筛选决策拒绝某个 manifest 的原因。
PluginTrustError
Why plugin trust verification refused an artifact. 插件信任校验拒绝某个工件的原因。
SlotValidationError
Why a plugin artifact was rejected for one slot. 插件工件被某个插件槽拒绝的原因。

Constants§

GRAFT_PLAN_VERSION
The only graft.plan layout this build understands. 本版本唯一能读懂的 graft.plan 版式。
PLUGIN_ABI_VERSION
Version of the host/plugin execution ABI. 宿主与插件执行 ABI 的版本。

Traits§

PluginRuntime
Generic execution backend for a plugin artifact. 插件工件的泛型执行后端。
PluginSignatureVerifier
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. 校验各插件适配器共用的操作名。