Expand description
Interactive deployment wizard for configuring new services
Provides a step-by-step TUI wizard for deploying services to the Syncable platform.
Re-exports§
pub use recommendations::DeploymentRecommendation;pub use recommendations::MachineOption;pub use recommendations::ProviderOption;pub use recommendations::RecommendationAlternatives;pub use recommendations::RecommendationInput;pub use recommendations::RegionOption;pub use recommendations::recommend_deployment;
Modules§
- recommendations
- Deployment recommendation engine
Structs§
- Available
Service Endpoint - A deployed service with a reachable URL (public or private network).
- Cloud
Region - A cloud region/location option (static data for non-Hetzner providers)
- Dynamic
Cloud Region - Dynamic cloud region with real-time availability info
- Dynamic
Machine Type - Dynamic machine type with real-time pricing and availability
- Endpoint
Suggestion - A suggested mapping: env var -> deployed service URL.
- EnvFile
Entry - Parsed entry from a
.envfile. - Machine
Type - A machine/instance type option (static data for non-Hetzner providers)
- Network
Endpoint Info - A network resource with its connection-relevant details.
Enums§
- Cluster
Selection Result - Result of cluster selection step
- Config
Form Result - Result of config form step
- Dockerfile
Selection Result - Result of Dockerfile selection step
- Environment
Creation Result - Result of environment creation wizard
- Environment
Selection Result - Result of environment selection step
- Hetzner
Fetch Result - Result of dynamic Hetzner data fetch
- Infrastructure
Selection Result - Result of infrastructure selection step
- Match
Confidence - Confidence level for an env-var-to-service match.
- Provider
Selection Result - Result of provider selection step
- Registry
Provisioning Result - Result of registry provisioning
- Registry
Selection Result - Result of registry selection step
- Repository
Selection Result - Result of repository selection step
- Target
Selection Result - Result of target selection step
- Wizard
Result - Result of running the wizard
Functions§
- check_
hetzner_ availability - Check availability of a specific server type at a location
- collect_
config - Collect deployment configuration details from user
- collect_
env_ vars - Collect environment variables interactively
- collect_
network_ endpoint_ env_ vars - Interactive prompt to offer network connection details as env vars.
- collect_
service_ endpoint_ env_ vars - Interactive prompt to link deployed service URLs as env vars.
- count_
badge - Format a count badge
- create_
environment_ wizard - Run the environment creation wizard
- discover_
env_ files - Discover
.envfiles in the project directory (max depth 3, skipping common build dirs). - display_
step_ header - Display a wizard step header box
- extract_
network_ endpoints - Extract useful connection details from cloud runner networks.
- filter_
endpoints_ for_ provider - Filter endpoints so that private-network endpoints only appear when they share the same cloud provider as the service being deployed.
- find_
best_ region - Find the best region for a workload based on availability
- find_
cheapest_ available - Find cheapest available server type for a region
- get_
available_ endpoints - Filter deployments down to services that have a reachable URL (public or private) and are not in a known-bad state.
- get_
default_ machine_ type - Get default machine type for a provider For Azure, returns the default CPU value (used with ACA resource pairs)
- get_
default_ region - Get default region for a provider
- get_
hetzner_ regions_ dynamic - Fetch Hetzner regions dynamically with REAL-TIME availability
- get_
hetzner_ server_ types_ dynamic - Fetch Hetzner server types dynamically with REAL-TIME availability and pricing
- get_
machine_ types_ for_ provider - Get static machine types for a cloud provider NOTE: For Hetzner, returns empty - use get_hetzner_server_types_dynamic() instead
- get_
provider_ deployment_ statuses - Get deployment status for all providers
- get_
recommended_ server_ type - Get recommended server type for a workload profile
- get_
regions_ for_ provider - Get static regions for a cloud provider NOTE: For Hetzner, returns empty - use get_hetzner_regions_dynamic() instead
- match_
env_ vars_ to_ services - For each URL-like env var, find the best matching deployed service.
- parse_
env_ file - Parse a
.envfile into key/value entries. - provision_
registry - Provision a new artifact registry
- run_
wizard - Run the deployment wizard
- select_
cluster - Display cluster selection for Kubernetes deployments
- select_
dockerfile - Select a Dockerfile from discovered Dockerfiles
- select_
environment - Prompt user to select an environment for deployment
- select_
infrastructure - Select region and machine type for Cloud Runner deployment
- select_
infrastructure_ sync - Legacy synchronous version for backward compatibility
- select_
provider - Display provider selection and prompt user to choose
- select_
registry - Display registry selection for container image storage
- select_
repository - Select repository for deployment
- select_
target - Display target selection based on provider capabilities
- status_
indicator - Format a status indicator (checkmark or X)
- wizard_
render_ config - Get the standard render config for wizard prompts