Expand description
Setup engine — orchestrates plan building and execution for create/update/remove workflows.
This is the main entry point that consumers (e.g. greentic-operator) use to drive bundle setup.
Structs§
- Loaded
Answers - Loaded answers from a JSON/YAML file.
- Setup
Config - Configuration for the setup engine.
- Setup
Engine - The setup engine orchestrates plan → execute for bundle lifecycle.
- Setup
Request - The request object that drives plan building.
Functions§
- apply_
create - Build a plan for create mode.
- apply_
remove - Build a plan for remove mode.
- apply_
update - Build a plan for update mode.
- auto_
install_ provider_ packs - Search sibling bundles for provider packs referenced in setup_answers and install them into this bundle if missing.
- build_
metadata - Build metadata for a plan.
- build_
metadata_ with_ ops - Build metadata with explicit update operations.
- compute_
simple_ hash - Compute a simple hash for a string (used for digest placeholders).
- dedup_
sorted - Deduplicate and sort a list of strings.
- domain_
from_ provider_ id - Extract domain from a provider ID (e.g. “messaging-telegram” → “messaging”).
- emit_
answers - Emit an answers template JSON file.
- encrypt_
secret_ answers - Encrypt secret values in the answers document.
- execute_
add_ packs_ to_ bundle - Execute the AddPacksToBundle step.
- execute_
apply_ pack_ setup - Execute the ApplyPackSetup step.
- execute_
build_ flow_ index - Execute the BuildFlowIndex step.
- execute_
copy_ resolved_ manifests - Execute the CopyResolvedManifest step.
- execute_
create_ bundle - Execute the CreateBundle step.
- execute_
remove_ provider_ artifacts - Remove provider artifacts and config directories.
- execute_
resolve_ packs - Execute the ResolvePacks step.
- execute_
validate_ bundle - Execute the ValidateBundle step.
- execute_
write_ gmap_ rules - Execute the WriteGmapRules step.
- extract_
default_ from_ help - Extract default value from help text.
- find_
provider_ pack_ source - Search known locations for a provider pack file.
- get_
pack_ target_ dir - Determine the target directory for a pack based on its ID.
- infer_
default_ value - Infer a default value for a setup question.
- infer_
update_ ops - Infer update operations from request content.
- load_
answers - Load answers from a JSON/YAML file.
- normalize_
tenants - Normalize tenant selections (sort and deduplicate allow_paths).
- print_
plan_ summary - Print a human-readable plan summary.
- prompt_
secret_ answers - Prompt user to fill in secret values interactively.