Module Worker 0.1.0
Workerアプリケーションに、変わらない識別子を付けます。
公開パッケージの内容を取得して検証済みです。
Hostの対応や受け入れ判断は、パッケージの公開とは別です。このバージョンを使う前に、利用先のHostで確認してください。
使い方
設定が空なのは意図したものです。コード・設定・BindingはWorkerVersionで、トラフィックの割り振りはWorkerDeploymentで指定します。
関連するForms: WorkerBundle 0.1.0 · WorkerVersion 0.3.0 · WorkerDeployment 0.2.0
定義の説明(英語原文)
Long-lived logical identity of one ES Module Worker application. The Form fixes the ES Module Worker ABI by identity, and states it exactly: the runtime contract worker.runtime@1.1.0 in this Form's providedInterfaces fixes the module's default-export shape, the fetch, scheduled, and queue handler signatures, the binding environment, ctx.waitUntil, exception handling, body streaming, the minimum Web API surface, and module loading. A host supporting this Form implements that exact digest; a runtime that behaves differently is a different contract version and a different Form version, never a compatibility date. Code, configuration, and bindings live on Worker Version revisions; traffic selection lives on Worker Deployments.
設定項目
項目名とスキーマ内の説明は、パッケージに含まれる英語の原文です。日本語の解説は定義に要件を追加するものではありません。
設定項目はありません。下の例の空のオブジェクトを使います。
設定の例
パッケージに含まれるfixtures/desired.jsonをそのまま掲載しています。完全なHost APIリクエストやOpenTofuの設定ではありません。例のリソース参照とArtifactのダイジェストは、実際の値に置き換えてください。このJSONだけでリソースが作成されることはありません。
{}設定のスキーマ全文(英語原文)
入れ子の項目、選択肢、すべてのスキーマ制約を以下に掲載しています。Hostが検証する意味上の規則は、定義の説明にも記載されています。
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"description": "Long-lived logical identity of one ES Module Worker application. The Form fixes the ES Module Worker ABI by identity, and states it exactly: the runtime contract worker.runtime@1.1.0 in this Form's providedInterfaces fixes the module's default-export shape, the fetch, scheduled, and queue handler signatures, the binding environment, ctx.waitUntil, exception handling, body streaming, the minimum Web API surface, and module loading. A host supporting this Form implements that exact digest; a runtime that behaves differently is a different contract version and a different Form version, never a compatibility date. Code, configuration, and bindings live on Worker Version revisions; traffic selection lives on Worker Deployments.",
"properties": {},
"title": "Module Worker desired state",
"type": "object"
}ライフサイクル
役割: identity
- create
- read
- delete
- import
- observe
提供するInterface
- worker.runtime@1.1.0 — sha256:ed2f8211aac5be94488d391945ca6aca7627a4ecbd261e39790093e887feae08
- worker.service@1.0.0 — sha256:8024073e25413c8906c3e189555a7485b4c7a6656e8a537fb2801f9b9682536e
パッケージ参照
| 項目 | 値 |
|---|---|
| Kind | ModuleWorker |
| Package digest | sha256:931eda33c673a640530b81779a5821ed27b9244c9f13dec9660867173aa69405 |
| Schema digest | sha256:049df2fb1eda53e4ccb0d646022a3ded8bc17c44eb433fa2e5ac0861efe42ac7 |
| Tag | forms/k-mvsgozjomzxxe3ltfz2gc23pmzxxe3jomnxw2l2nn5shk3dfk5xxe23foi/sha256-931eda33c673a640530b81779a5821ed27b9244c9f13dec9660867173aa69405 |
| Source path | forms/releases/k-mvsgozjomzxxe3ltfz2gc23pmzxxe3jomnxw2l2nn5shk3dfk5xxe23foi/sha256-931eda33c673a640530b81779a5821ed27b9244c9f13dec9660867173aa69405 |
| 署名セット | e7f8a39311dd011b8467e97e7f300cabb9a6b06c |
4項目のFormRef
{
"apiVersion": "edge.forms.takoform.com",
"kind": "ModuleWorker",
"definitionVersion": "0.1.0",
"schemaDigest": "sha256:049df2fb1eda53e4ccb0d646022a3ded8bc17c44eb433fa2e5ac0861efe42ac7"
}