Skip to main content

Crate greentic_setup

Crate greentic_setup 

Source
Expand description

End-to-end bundle setup engine for the Greentic platform.

Provides pack discovery, QA-driven configuration, secrets persistence, and bundle lifecycle management as a library crate.

Re-exports§

pub use bundle_source::BundleSource;
pub use engine::SetupEngine;
pub use plan::SetupMode;
pub use plan::SetupPlan;
pub use plan::SetupStep;
pub use plan::SetupStepKind;

Modules§

admin
Admin API types and configuration for secure bundle lifecycle management.
answers_crypto
bundle
Bundle directory structure creation and management.
bundle_source
Bundle source resolution — parse and resolve bundle references from various protocols.
capabilities
Capability validation and auto-upgrade for provider gtpacks.
card_setup
Adaptive Card setup flow types.
cli_args
CLI argument definitions for greentic-setup.
cli_commands
CLI command implementations for greentic-setup.
cli_helpers
CLI helper functions for greentic-setup.
cli_i18n
CLI i18n support for greentic-setup.
config_envelope
Provider configuration envelope — CBOR-serialized config with provenance.
deployment_targets
discovery
Pack discovery — scans a bundle directory for .gtpack files across provider domains (messaging, events, oauth) and extracts metadata.
engine
Setup engine — orchestrates plan building and execution for create/update/remove workflows.
flow
QAFlowSpec builder for multi-step setup with conditional jumps.
gtbundle
.gtbundle archive format support.
plan
Setup plan types — mode, steps, and metadata for bundle lifecycle operations.
platform_setup
Bundle-level platform setup types and static routes policy handling.
qa
QA-driven configuration: FormSpec bridge, wizard prompts, answers persistence, and setup input loading.
reload
Hot reload types and diffing for bundle changes.
secret_name
Normalize secret names to a store-friendly canonical form.
secrets
Dev secrets store management for bundle setup.
setup_input
Load and validate user-provided setup answers from JSON/YAML files.
setup_to_formspec
Converts legacy setup.yaml (SetupSpec) into qa_spec::FormSpec.
webhook
Webhook registration for messaging providers during setup.

Functions§

canonical_secret_uri
Build a canonical secret URI: secrets://{env}/{tenant}/{team}/{provider}/{key}.
resolve_env
Resolve the effective environment string.
version
Returns the crate version.