mirror of
https://github.com/coder/coder.git
synced 2026-06-03 04:58:23 +00:00
dd7a4f54b1
Scaffolds the coderd/templatebuilder package for the guided template builder (DEVEX-272). Adds: - codersdk.TemplateBuilderModule and related types matching the RFC schema - ModuleManifest internal type with go:embed wiring for bundled catalog - LoadModules() to parse module.json files from embedded FS - ToSDK() conversion from on-disk manifest to API response type - Stub module exercising all schema fields (builder_managed, sensitive, conflicts_with, compatible_os, pinned_version) - Tests for catalog loading, field parsing, and SDK conversion
30 lines
678 B
JSON
30 lines
678 B
JSON
{
|
|
"id": "stub",
|
|
"display_name": "Stub Module",
|
|
"description": "Stub module for testing the catalog system.",
|
|
"icon": "",
|
|
"category": "Utility",
|
|
"tags": ["test"],
|
|
"compatible_os": ["linux"],
|
|
"conflicts_with": [],
|
|
"pinned_version": "0.0.0",
|
|
"variables": [
|
|
{
|
|
"name": "agent_id",
|
|
"type": "string",
|
|
"description": "The ID of the Coder agent.",
|
|
"required": true,
|
|
"sensitive": false,
|
|
"builder_managed": true
|
|
},
|
|
{
|
|
"name": "example_secret",
|
|
"type": "string",
|
|
"description": "An example sensitive variable.",
|
|
"required": false,
|
|
"sensitive": true,
|
|
"builder_managed": false
|
|
}
|
|
]
|
|
}
|