Skip to main content

Module project

Module project 

Source
Expand description

Stripe Projects orchestration: project anchor, per-instance environments, resource add/remove, env materialization, and spend reporting.

Structs§

AddedResource
Result of add_resource: the Stripe local name that was env-attached and the projects add payload (null on reuse).

Constants§

INIT_PREFLIGHT_FLAGS
Shared flags for init --preflight (doctor prefixes projects / --json; run_init_preflight uses stripe.json which supplies those).

Functions§

add_resource
delete_environment
ensure_environment
ensure_project
find_env_value
merge_env_lines
Parse KEY=VALUE lines into out (comments and blank lines skipped).
project_initialized_in_dir
Whether .projects/ exists under definition_dir (created by init). Vault pull before first up must skip until this exists.
pull_env_value
pull_env_values
Pull the instance’s env once and read several keys from it, returning one Option<String> per key in input order. Values are read from on-disk vault files after env --pull — the plugin still redacts values in JSON at 0.23.0.
recorded_project_id
The recorded Stripe Projects anchor from [stack.projects.stripe].project.
refreshed_env_value
remove_resource
resolve_registered_resource
Resolve an existing service/plan to reuse (exact name, else catalog service_id), always scoped to the provider in reference.
resource_registered
Whether a service or plan with this exact local name is already on the project.
run_init_preflight
Run init --preflight before project creation so auth/eligibility blockers surface once instead of mid-init. Uses the same consent flags as real init.
set_spend_cap
spend_summary
sync_vault_pull_for_instance
Select the target instance environment, then refresh its vault files.
unquote_env_value
vault_env_from_dir
Read env keys from pulled vault files. Scans .env then .env.<instance> (instance overrides base). Does not call the Stripe CLI.
write_project_anchor