Static Asset Bundle 0.1.0
Workerと一緒に配信する、変更不可の静的ファイルを指定します。
公開パッケージの内容を取得して検証済みです。
Hostの対応や受け入れ判断は、パッケージの公開とは別です。このバージョンを使う前に、利用先のHostで確認してください。
使い方
マニフェストが対象ファイルを特定します。配信の順序やフォールバックは、WorkerVersionのassets接続で設定します。
関連するForms: WorkerVersion 0.3.0
定義の説明(英語原文)
Immutable content-addressed set of files served beside one Worker Version. The whole portable desired state is the digest of a committed artifacts.takoform.com/v1alpha1 StaticAssetBundle manifest; the manifest is the sole ordered inventory of path, media type, exact size, and sha256 digest for every file. Raw file bytes, upload locations, backend identities, and serving policy never enter this resource. Serving order and not-found behavior belong to the Worker Version attachment so the same bytes can participate in different immutable versions without giving the bundle two meanings.
設定項目
項目名とスキーマ内の説明は、パッケージに含まれる英語の原文です。日本語の解説は定義に要件を追加するものではありません。
manifestDigest
必須 · string
Immutable identity of the committed StaticAssetBundle artifact manifest. Before mutation a host resolves it within the caller's tenant, verifies that its canonical digest matches, that its kind is StaticAssetBundle, and that every file path, media type, size, and blob digest is valid.
- pattern: "^sha256:[0-9a-f]{64}$"
設定の例
パッケージに含まれるfixtures/desired.jsonをそのまま掲載しています。完全なHost APIリクエストやOpenTofuの設定ではありません。例のリソース参照とArtifactのダイジェストは、実際の値に置き換えてください。このJSONだけでリソースが作成されることはありません。
{
"manifestDigest": "sha256:50ae1f6f1c6b121e8d64c4c5a83a3780c92d3a888765640a07bc20b20d71f4ef"
}設定のスキーマ全文(英語原文)
入れ子の項目、選択肢、すべてのスキーマ制約を以下に掲載しています。Hostが検証する意味上の規則は、定義の説明にも記載されています。
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"additionalProperties": false,
"description": "Immutable content-addressed set of files served beside one Worker Version. The whole portable desired state is the digest of a committed artifacts.takoform.com/v1alpha1 StaticAssetBundle manifest; the manifest is the sole ordered inventory of path, media type, exact size, and sha256 digest for every file. Raw file bytes, upload locations, backend identities, and serving policy never enter this resource. Serving order and not-found behavior belong to the Worker Version attachment so the same bytes can participate in different immutable versions without giving the bundle two meanings.",
"properties": {
"manifestDigest": {
"description": "Immutable identity of the committed StaticAssetBundle artifact manifest. Before mutation a host resolves it within the caller's tenant, verifies that its canonical digest matches, that its kind is StaticAssetBundle, and that every file path, media type, size, and blob digest is valid.",
"pattern": "^sha256:[0-9a-f]{64}$",
"type": "string"
}
},
"required": [
"manifestDigest"
],
"title": "Static Asset Bundle desired state",
"type": "object"
}ライフサイクル
役割: revision
- create
- read
- delete
- import
- observe
提供するInterface
ありません。
パッケージ参照
| 項目 | 値 |
|---|---|
| Kind | StaticAssetBundle |
| Package digest | sha256:14521f2b5a673168344ce1a1af9090a957b56948115e183b578eb449a13db392 |
| Schema digest | sha256:83142a3f824cf1fa2793fb73f4c32203ae07fb70db789d056aebe4c0ebe9334f |
| Tag | forms/k-mvsgozjomzxxe3ltfz2gc23pmzxxe3jomnxw2l2torqxi2ldifzxgzluij2w4zdmmu/sha256-14521f2b5a673168344ce1a1af9090a957b56948115e183b578eb449a13db392 |
| Source path | forms/releases/k-mvsgozjomzxxe3ltfz2gc23pmzxxe3jomnxw2l2torqxi2ldifzxgzluij2w4zdmmu/sha256-14521f2b5a673168344ce1a1af9090a957b56948115e183b578eb449a13db392 |
| 署名セット | e7f8a39311dd011b8467e97e7f300cabb9a6b06c |
4項目のFormRef
{
"apiVersion": "edge.forms.takoform.com",
"kind": "StaticAssetBundle",
"definitionVersion": "0.1.0",
"schemaDigest": "sha256:83142a3f824cf1fa2793fb73f4c32203ae07fb70db789d056aebe4c0ebe9334f"
}