Expand description
engine orchestration: load, validate, plan, apply.
Re-exports§
pub use external::run_external_adapter;pub use external::ExternalAdapter;pub use external::ExternalEnvelope;pub use external::ExternalObject;pub use external::ExternalRequest;pub use external::ExternalResponse;pub use external::EXTERNAL_PROTOCOL_VERSION;
Modules§
- external
- helpers for implementing external adapters.
Macros§
- alembic_
external_ main - convenience macro to define an external adapter main.
Structs§
- Applied
Op - result for a single applied operation.
- Apply
Report - aggregated apply report.
- Django
Emit Options - Field
Change - field-level change for an update op.
- Import
Report - Observed
Object - observed backend object representation.
- Observed
State - observed backend state indexed by id and key.
- Plan
- full plan document.
- Plan
Summary - high-level summary of plan operations.
- Provision
Report - report from ensure_schema provisioning.
- Retort
- Retry
Apply Result - State
Data - on-disk state schema.
- State
Store - state store wrapper with load/save helpers.
Enums§
- Adapter
Apply Error - Backend
Id - generic backend identifier (integer or string/uuid).
- Op
- plan operation.
- Postgres
TlsMode - TLS configuration for postgres state backend connections.
Traits§
- Adapter
- adapter contract for backend-specific io.
- Retry
Apply Driver
Functions§
- apply_
non_ delete_ with_ retries - apply_
plan - apply a plan and update the state store.
- build_
key_ from_ schema - build_
plan - observe backend state and produce a deterministic plan.
- build_
request_ body - compile_
retort - emit_
django_ app - import_
inventory - is_
brew_ format - load_
brew - load a brew file (yaml or json) and merge any includes.
- load_
raw_ yaml - load_
retort - plan
- build a deterministic plan from desired and observed state.
- query_
filters_ from_ key - report_
to_ result - helper to format a validation report into a Result.
- report_
to_ result_ with_ sources - helper to format a validation report with source locations into a Result.
- resolve_
value_ for_ type - sort_
ops_ for_ apply - order operations for apply (creates/updates first, deletes last).
- validate
- validate an inventory and return the report.