Skip to content

Worker Bundle 0.1.0

Workerコードの変更不可のビルド成果物を指定します。

公開パッケージの内容を取得して検証済みです。

Hostの対応や受け入れ判断は、パッケージの公開とは別です。このバージョンを使う前に、利用先のHostで確認してください。

使い方

先にArtifactのマニフェストを確定してください。例のダイジェストは説明用です。このパッケージにコード本体は含まれません。

関連するForms: ModuleWorker 0.1.0 · WorkerVersion 0.3.0

定義の説明(英語原文)

Immutable content-addressed module bundle of one worker build, named by the digest of the artifact manifest committed through the content-addressed upload API (decision 0012). The manifest, not this Form, describes the main module and every additional module with its closed media type, exact size, and sha256 digest, so the bundle keeps exactly one source of truth for its bytes. Different bytes commit a different manifest, which is a different bundle.

設定項目

項目名とスキーマ内の説明は、パッケージに含まれる英語の原文です。日本語の解説は定義に要件を追加するものではありません。

manifestDigest

必須 · string

Immutable identity of the committed artifact manifest that describes this bundle: the RFC 8785 canonical sha256 digest the host returned when the manifest was committed. A host resolves that manifest and holds it to the artifact contract before it mutates anything, and rejects a digest it has not committed.

  • pattern: "^sha256:[0-9a-f]{64}$"

設定の例

パッケージに含まれるfixtures/desired.jsonをそのまま掲載しています。完全なHost APIリクエストやOpenTofuの設定ではありません。例のリソース参照とArtifactのダイジェストは、実際の値に置き換えてください。このJSONだけでリソースが作成されることはありません。

json
{
  "manifestDigest": "sha256:6a5cbf24f5d0c86479ae13b9d1731a626a1729f01aef65403c5c8ac82ed85f43"
}

例の原文を見る

設定のスキーマ全文(英語原文)

入れ子の項目、選択肢、すべてのスキーマ制約を以下に掲載しています。Hostが検証する意味上の規則は、定義の説明にも記載されています。

json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "Immutable content-addressed module bundle of one worker build, named by the digest of the artifact manifest committed through the content-addressed upload API (decision 0012). The manifest, not this Form, describes the main module and every additional module with its closed media type, exact size, and sha256 digest, so the bundle keeps exactly one source of truth for its bytes. Different bytes commit a different manifest, which is a different bundle.",
  "properties": {
    "manifestDigest": {
      "description": "Immutable identity of the committed artifact manifest that describes this bundle: the RFC 8785 canonical sha256 digest the host returned when the manifest was committed. A host resolves that manifest and holds it to the artifact contract before it mutates anything, and rejects a digest it has not committed.",
      "pattern": "^sha256:[0-9a-f]{64}$",
      "type": "string"
    }
  },
  "required": [
    "manifestDigest"
  ],
  "title": "Worker Bundle desired state",
  "type": "object"
}

ライフサイクル

役割: revision

  • create
  • read
  • delete
  • import
  • observe

提供するInterface

ありません。

パッケージ参照

項目
KindWorkerBundle
Package digestsha256:68d5d9ea27bc044cdda1cfc0d96fa4492e67b328bd84861e2e77699d3c5b06a1
Schema digestsha256:cb21984a579ae2706bddada8b44a22c0f8390994550c10d7c65df82edfa1141b
Tagforms/k-mvsgozjomzxxe3ltfz2gc23pmzxxe3jomnxw2l2xn5zgwzlsij2w4zdmmu/sha256-68d5d9ea27bc044cdda1cfc0d96fa4492e67b328bd84861e2e77699d3c5b06a1
Source pathforms/releases/k-mvsgozjomzxxe3ltfz2gc23pmzxxe3jomnxw2l2xn5zgwzlsij2w4zdmmu/sha256-68d5d9ea27bc044cdda1cfc0d96fa4492e67b328bd84861e2e77699d3c5b06a1
署名セットe7f8a39311dd011b8467e97e7f300cabb9a6b06c

変更不可のパッケージを開く

4項目のFormRef
json
{
  "apiVersion": "edge.forms.takoform.com",
  "kind": "WorkerBundle",
  "definitionVersion": "0.1.0",
  "schemaDigest": "sha256:cb21984a579ae2706bddada8b44a22c0f8390994550c10d7c65df82edfa1141b"
}