ไวยากรณ์ URI และรายการสตริงรูปแบบ
เอนทิตีcore/postgres:1.0.0) ปรากฏcore/postgres:1.0.0 อ้าง
หน้าtype: แบบ
การอนุมานประเภทเอนทิตีตามตำแหน่ง
สตริง URI เดียวกัน
| Position | ประเภท | การ |
|---|---|---|
Aggregate.spec.components.<id>.type | Component | /component/{publisher}/{category}/{name} |
Aggregate.spec.subsystems.<name>.components.<id>.type | Component (เหมือน | /component/{publisher}/{category}/{name} |
Aggregate.spec.aggregates.<id>.type | Aggregate (โมดูล Aggregate ย่อย) | /aggregate/{publisher}/{name} |
Aggregate.spec.components.<id>.features.<id>.type | Feature | /feature/{publisher}/{name} |
Aggregate.spec.components.<id>.features.<id>.type | Feature (ข้อมูลfeature.aggrega.ai/kind: secret) | /feature/{publisher}/{name} |
Manifest.spec.mappings.components.type.<key> | Component (URI ที่ | คีย์: /component/ ค่า: /recipe/{provider}/{name} |
Manifest.spec.mappings.components.name.<id> | Recipe (การ | /recipe/{provider}/{name} |
Manifest.spec.mappings.features.type.<key> | Feature (คีย์ | คีย์: /feature/ ค่า: /featurerecipe/{provider}/{name} |
Manifest.spec.mappings.features.name.<id> | FeatureRecipe (การ | /featurerecipe/{provider}/{name} |
Manifest.spec.mappings.features.annotations.<key>.feature | Feature (ผูก | /feature/{publisher}/{name} |
Recipe.spec.implements | Component (สัญญา | /component/{publisher}/{category}/{name} |
FeatureRecipe.spec.implements | Feature (สัญญา | /feature/{publisher}/{name} |
Component.spec.extends / Feature.spec.extends | Component / Feature (ต้นแบบ | /component/{publisher}/{category}/{name} หรือ /feature/{publisher}/{name} |
Manifest.spec.extends | Manifest (ต้นแบบ | ไม่ใช่metadata.name เปล่าๆ ของ Manifest ที่ |
Release.spec.extends | Release (ต้นแบบ | ไม่ใช่ |
Release.spec.aggregate | Aggregate (เป้า | /aggregate/{publisher}/{name} |
Release.spec.manifest | Manifest (ไฟล์ | ไม่ใช่metadata.name เปล่าๆ ของ Manifest ที่ |
FeatureRecipe.spec.pipeline.<step>.plugin | ปลั๊กอิน Wasm | /plugin/{pluginType}/{name} |
มีextends: ของmanifest: ของ Release ใดๆ จึงmanifest: ของ Release ระบุmetadata.name เปล่าๆ ของ Manifest ที่extends: ทั้งextends: ทั้งmetadata.name เปล่าๆ ของ Manifest ที่entities/release.md สำหรับerrors/fatal-halts.md สำหรับ
กฎtype: หนึ่งๆ อ้างaggrega inspect) อ่าน
สองรูปทรงของ URI — ปลั๊กอินที่มีพิกัดได้มาเทียบกับเอนทิตีแค็ตตาล็อกที่ระบุประเภทในเมทาดาทา
URI ของ
พิกัดoci://hub.aggrega.ai/plugin/<pluginType>/<name> พิกัด<pluginType> และ <name> แบบmetadata.pluginType และ metadata.name — ที่metadata.name เป็นplugin/provider/helm, plugin/linter/publishing และ plugin/parser/yaml — แต่ละmetadata.name แบบhelm, publishing, yaml) เข้าmetadata.pluginType ของprovider, linter, parser) ส่วน <pluginType> เป็น<name> แบบpluginType ที่<pluginType> ใช้entities/plugin.md
เอนทิตี<publisher>/<category>/<name> (เช่น core/datastore/postgres) kind: ของcore/datastore/postgres) Recipe หรือ FeatureRecipe มีhelm/postgres) ประเภท<publisher>/<name> แบบ
เหตุmetadata ส่วน
รูปทรงของ URI — แบบระบุเวอร์ชันและแบบไม่ระบุเวอร์ชัน
ทุก
| รูป | ตัวอย่าง | ความ |
|---|---|---|
| ไม่ | core/postgres | หา |
| การ | core/postgres:1.0.0 | ปักmetadata.version ของ |
| การ | core/postgres:^1.0.0 | เลือก^1.0.0 คือ1.0.0 ขึ้น2.0.0 |
การ/ เท่านั้น การlocalhost:5000/core/postgres — จึง
การcore/postgres:^garbage) หรือcore/postgres:1.x, core/postgres:1.0, core/postgres:v1.0.0) — ไม่errors/fatal-halts.md ภายaggrega validate, aggrega pull, aggrega build — ไม่ใช่
ทุกmappings.{components,features}.type ของ Manifest รองรับcore/api-server:1.0.0) มีcore/api-server) เมื่อtype: เดียวกันspec.capability ของ Recipe ที่
สำหรับvocabulary/inheritance-and-interface.md หัวข้อ “การ
การcore/postgres:^1.0.0) และversion-resolution.md สำหรับimplements: แบบ10-status.md หัวข้อ “การ
ตัวตน ไม่ใช่ที่ตั้ง
การ
ตัวdefault_registry และ
ตัว:<version> หรือ :^<version>) เพื่อ
ขณะ
การอนุมานรูปแบบย่อของ OCI URI
ผู้
กฎข้อ 1 — โดเมนเริ่มต้น
URI ใดdefault_registry ที่.aggrega-config.yaml (ค่าhub.aggrega.ai/)
# Shorthandtype: core/postgres:1.0.0
# Equivalent canonical formtype: hub.aggrega.ai/component/core/postgres:1.0.0กฎข้อ 2 — การขยายเอนทิตีตามบริบท
คอมไพเลอร์/component/, /aggregate/, /recipe/, /featurerecipe/, /feature/, /plugin/)
# Same string, two positions, two expansionsAggregate.spec.components.foo.type: core/postgres:1.0.0# → hub.aggrega.ai/component/core/postgres:1.0.0
Manifest.spec.mappings.components.type."core/postgres:1.0.0": helm/postgres:1.0.0# Key: hub.aggrega.ai/component/core/postgres:1.0.0# Value: hub.aggrega.ai/recipe/helm/postgres:1.0.0กฎข้อ 3 — ลำดับความสำคัญสามชั้น
ก่อนarchitecture/13-catalog-and-registry.md:
- เส้น
ทาง ภายใน เครื่อง — สำหรับ เอกสาร ที่ Release และ Manifest ของ Release นั้น ระบุ ชื่อ aggregate,manifestหรือextendsของ Release หรือextendsของ Manifest ที่เขียน ด้วย คำนำ หน้า ./หรือ../จะถูก อ่าน เป็น ไฟล์ เทียบ กับ ไดเรกทอรี ของ Release เอง การ อนุมาน ของ OCI ไม่ ทำงาน ไม่มี ตำแหน่ง อื่น รับ เส้น ทาง: typeคีย์หรือ ค่า ของ การ แมป ใน Manifest implementsหรือpluginของไปป์ไลน์ ที่ เขียน เป็น ./…ไม่ระบุ เอนทิตี ใด และ ทำให้ บิลด์ หยุด เอนทิตี ที่ เขียน ไว้ ภายใน เครื่อง จะ วาง ไว้ ใต้ catalog/ที่รูท ของ พื้นที่ ทำงาน หรือ ใน ไดเรกทอรี ที่ workspace.catalog_dirsระบุ และหา ค่า ตาม ชื่อ ผ่าน ชั้น พื้นที่ ทำงาน และ แคช - พื้นที่
ทำงาน ไดเรกทอรีและ แคช — สแตก การ ค้นหา แค็ตตาล็อก ของ พื้นที่ ทำงาน แล้ว จึง แคช catalog_dirs:ของพื้นที่ ทำงาน ใน .aggrega-config.yaml— หรือสำหรับ Release ที่ การ กำหนด ค่า ให้ ไดเรกทอรี ของ ตนเอง ไว้ ใต้ workspace.releasesก็คือ ของ Release นั้น — จะ ถูก ค้นหา ตาม ลำดับ ที่ เขียน และ ไดเรกทอรี catalog/ที่รูท เป็นของ พื้นที่ ทำงาน จะ ถูก ค้นหา ลำดับ — หลังสุดท้าย ทุก รายการ ที่ ระบุ และ เฉพาะ เมื่อ ไดเรกทอรี นั้น มี อยู่ การ ตรง กัน ที่ ใด ก็ตาม ใน สแตก ทำให้ การ อนุมาน ของ OCI ถูก ข้าม หาก ไม่ พบ จึง ตรวจ artifact_cache_dirซึ่งเก็บ สิ่ง ที่ การ pull จาก รีจิสทรี ครั้ง ก่อน ดึง มา - รีจิสทรี เมื่อ
ชั้น พื้นที่ ทำงาน และ แคช ไม่ พบ กฎ การ อนุมาน ของ OCI จะ ทำงาน และ การ อ้างอิง จะ ถูก ดึง จาก รีจิสทรี ระยะ ไกล ด้วย aggrega pullหรือด้วย การ รัน บิลด์ ที่ ใช้ --auto-pullหรือการ ตั้ง ค่า auto_pullของพื้นที่ ทำงาน บิลด์ ที่ ไม่มี ทั้ง สอง อย่าง จะ อ่าน เฉพาะ สิ่ง ที่ ไฟล์ ล็อก ปัก หมุด ไว้
การ
เมื่อ catalog_dirs: ระบุ
ไดเรกทอรี catalog/ ที่catalog_dirs: และcatalog/ อยู่ ถ้า[] จะ
กฎข้อ 4 — การจัดการเวอร์ชัน
URI อาจimplements: การนำinheritance-and-interface.md หัวข้อ “การ
รายการสตริงรูปแบบ
นอกจาก
| รูป | ที่ | ตรวจ |
|---|---|---|
เทมเพลต Go ({{ .field }}) | Recipe valuesMapping: / workload: / artifacts: / provides: / locals: / source: FeatureRecipe injectMapping: / with: ของparameters: ของ Aggregate และ directory: / subDirectory: ของ Release | ตัวtemplates/expansion-matrix.md |
เอกสาร{{ default 1 .v }} เป็นต้น) | พื้น | Sprig v3 FuncMap ที่templates/sprig-functions.md |
| JSON Schema 2020-12 (แบบ | เนื้อหา schema: ของ Component / Feature (หรือ $ref: ไป | ตัว |
| JSON Pointer (RFC 6901) | คีย์ locals.<*_path>: ของ Recipe (volumes_path, containers_path เป็นต้น) การpipeline: ใน FeatureRecipe และ | RFC 6901 เป็นplugins/plugin-contract.md |
| regex ของ SemVer | ฟิลด์ metadata.version ของ | regex ของ JSON Schema ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-...)?$ ตาม |
การ:<version>, :^<version>) | ส่วน | คอมไพเลอร์ |
| เส้น | เส้นcatalog_dirs: ใน .aggrega-config.yaml) และ$import: ของ Recipe ใน workload: / artifacts: / valuesMapping: | อ่านcatalog_dirs: เทียบ$import: เทียบ* จึง |
| นิพจน์ | Component.spec.usesSchema.<socket>.selector และ appliesTo: / appliesToAnyOf: ของ Feature | ตัวvocabulary/modifier-system.md |
รูป<namespace>/<name>) | คีย์ metadata.annotations คีย์ features.annotations ของ Manifest และ | regex ของ JSON Schema ต่อvocabulary/labels-and-annotations.md |
ชื่อ Provider ซึ่งhelm, helm:^1.0.0) | Recipe.spec.capability; FeatureRecipe.spec.capability | การ |
คีย์env.<KEY>, file.<path>, arg.<flag>) | บล็อก inject: ของ Aggregate และinjectMapping: ของ FeatureRecipe | สคีมา inject อยู่vocabulary/topology-triad.md |
แต่ละ
ตัวaggrega serve ตรวจcli/aggrega-serve.md หัวข้อ “การaggrega draft ร่าง
ข้อมูลอ้างอิงข้ามหน้า
entities/manifest.md— การหา ค่า ชั้น การ แมป ของ Manifest + ส่วน URI แบบ ย่อ ที่ รับ รู้ บริบท entities/plugin.md— อนุกรมวิธานซ็อกเก็ต ของ Plugin + รูป ทรง URI ที่ เข้า รหัส ซ็อกเก็ต plugin/<socket>/<name>architecture/13-catalog-and-registry.md— โมเดลการ หา ค่า เอนทิตี สาม ชั้น + อนุกรมวิธาน OCI แบบ มาตรฐาน สำหรับ การ แจก จ่าย แค็ตตาล็อก vocabulary/inheritance-and-interface.md— การผูก อินเทอร์เฟซ ด้วย implements:+ การใช้ เวอร์ชัน ข้าม เอนทิตี templates/expansion-matrix.md— กฎความ พร้อม ใช้ งาน ราย ตำแหน่ง เทมเพลต สำหรับ สตริง รูป แบบ ของ เทมเพลต Go templates/sprig-functions.md— รายการตัว ช่วย ของ Sprig v3 ที่ เชื่อม โยง เข้า กับ เอนจิน เทมเพลต vocabulary/topology-triad.md— ธรรมเนียมคีย์ การ ส่ง มอบ inject ไวยากรณ์ นิพจน์ ตัว คัด เลือก อยู่ ที่ vocabulary/modifier-system.mdvocabulary/labels-and-annotations.md— รูปทรง ของ คีย์ คำ อธิบาย ประกอบ และ หลัก การ เรื่อง คำนำ หน้าที่ สงวน ไว้ 10-status.md— สถานะความ พร้อม ของ การ จับ คู่ implements:แบบสาม รูป แบบ และ ของ คำ สั่ง CLI ที่ หา ค่า การ อ้างอิง