Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
kastor
command
|
|
|
internal
|
|
|
build
Package build is the codegen engine (SPEC.md §6): it runs a codegen target's Generator over a loaded module and syncs the generated files into the target's output directory.
|
Package build is the codegen engine (SPEC.md §6): it runs a codegen target's Generator over a loaded module and syncs the generated files into the target's output directory. |
|
build/buildtest
Package buildtest provides test helpers that hold generators to the engine's determinism guarantee (see package build).
|
Package buildtest provides test helpers that hold generators to the engine's determinism guarantee (see package build). |
|
build/langgraph
Package langgraph generates a runnable LangGraph (Python) project from a loaded Kastor module — the codegen path of SPEC.md §1 (issue #12).
|
Package langgraph generates a runnable LangGraph (Python) project from a loaded Kastor module — the codegen path of SPEC.md §1 (issue #12). |
|
diff
Package diff produces unified diffs for kastor fmt's -diff output.
|
Package diff produces unified diffs for kastor fmt's -diff output. |
|
graph
Package graph builds the dependency DAG over a loaded module's blocks (SPEC.md §4, §6): references and depends_on entries become edges, cycles are compile errors, and a deterministic topological order is exposed for build/apply consumption.
|
Package graph builds the dependency DAG over a loaded module's blocks (SPEC.md §4, §6): references and depends_on entries become edges, cycles are compile errors, and a deterministic topological order is exposed for build/apply consumption. |
|
module
Package module loads every Kastor file in a directory tree into one module (SPEC.md §2), builds the module-wide symbol table, and resolves all captured references against it.
|
Package module loads every Kastor file in a directory tree into one module (SPEC.md §2), builds the module-wide symbol table, and resolves all captured references against it. |
|
parser
Package parser decodes Kastor source files into the typed structs in internal/schema using hashicorp/hcl/v2.
|
Package parser decodes Kastor source files into the typed structs in internal/schema using hashicorp/hcl/v2. |
|
provider
Package provider is the target-agnostic plan/apply engine (SPEC.md §6): it renders a loaded module into desired resource configurations, compares them three ways (spec vs.
|
Package provider is the target-agnostic plan/apply engine (SPEC.md §6): it renders a loaded module into desired resource configurations, compares them three ways (spec vs. |
|
provider/providertest
Package providertest provides an in-memory Provider for testing the plan/apply engine and CLI without a real platform (mirroring buildtest for the codegen engine).
|
Package providertest provides an in-memory Provider for testing the plan/apply engine and CLI without a real platform (mirroring buildtest for the codegen engine). |
|
schema
Package schema defines the typed configuration structs that parsed Kastor files decode into.
|
Package schema defines the typed configuration structs that parsed Kastor files decode into. |
|
state
Package state owns the kastor.state.json file (SPEC.md §5): the record of which remote resource each block address maps to and the configuration last applied to it, used by kastor plan/apply for three-way comparison and drift detection.
|
Package state owns the kastor.state.json file (SPEC.md §5): the record of which remote resource each block address maps to and the configuration last applied to it, used by kastor plan/apply for three-way comparison and drift detection. |
Click to show internal directories.
Click to hide internal directories.