Available on crate feature
templates only.Expand description
Registration + materialization of pipeline templates (#444).
Pure orchestration over crate::serve::history::RunHistory’s template
methods and crate::params; no HTTP, no clap, no MCP shapes — the three
front-ends are thin adapters over the two entry points here.
Structs§
- Launch
Outcome - The outcome of a
launch: which version is now live, and what it replaced. - Materialized
Config - A template rendered for one trigger: a config document with every
${param.*}bound, ready to hand to the ordinary run path. - Register
Request - A registration, before validation.
Enums§
- Materialize
- Where the materialized config is going — which decides whether load-time directives may be resolved here.
Functions§
- launch
- Launch a version: make it
stable, so unpinned callers start using it. - list_
with_ state - Every registered template’s latest version, each carrying its release state.
- materialize
- Fetch a template version and bind the supplied params into a runnable config document.
- promote
- Point a named environment channel at a version, moving it if already set.
- register
- Validate a submitted config and append it as a new template version.
- resolve_
store_ url - Connect a template store from a URL:
memory,sqlite:<path>, or apostgres://…URL. Same grammar (and same build-feature requirements) ascatalog.urlandfaucet serve --history, so one store can hold run history, the dataset catalog, and the template registry together. - resolve_
version - Resolve a
VersionSelectorto the exact version to act on. - rollback
- Roll back to the previously launched version —
launchofprevious, named for the thing you actually want to find under pressure. - set_
deprecated - Retire (
Some) or revive (None) a template. - template_
state - The template’s full release state (status,
stable/previous/newest, channel pointers). Errors only if the registry itself is unreadable.
Type Aliases§
- Template
Store - The registry handle. Any
RunHistorybackend will do —faucet servepasses its own--historystore so templates live beside run records; the CLI connects one from--store/ the config’scatalog:block.