跳转到内容

Artifacts

通过 cf、Cloudflare-compatible API 和 Worker binding 使用 Git-backed artifact repository。

Artifacts 提供 account-scoped namespace 和 Git-backed repository。可以使用认证 cf、兼容 /client/v4 API、Git Smart HTTP 或 artifacts Worker binding 创建、导入、fork、读取和管理 repository 与 scoped token。

Repository metadata 以 SQLite 为 authority;bare Git 数据位于平台 data directory。Token 只在创建时返回明文,持久层保存 digest。Snapshot 和 restore 包含 repository 文件与不可变 Worker Version binding。

标准 framework 输出可以声明 cf artifacts 数组。toolchain 在校验 provider namespace 的同时保留本地 namespace resource identity;Script/Version multipart 上传接受同一 { type: "artifacts", name, namespace } binding。namespace 名称是稳定的 account container:repository 与 token 可以删除,但 namespace delete 不属于当前 Cloudflare API 或 open-compute surface。

支持 namespace/repository lifecycle、公开 HTTPS import、独立 fork、read/write token lifecycle、Git HTTP clone/fetch/push、REST object read 和固定 Worker binding surface。

ArtifactFS、event subscription、自动 build/deploy、Git LFS、SSH、private remote import 和 hosted placement 未提供。参见产品和兼容性。