Skip to main content

Module env

Module env 

Source
Expand description

Runtime environment detection.

Detects whether the application is running in Kubernetes, Docker, a generic container, or on bare metal. This information is used to configure paths, logging format, and other runtime behaviour.

Structs§

RuntimeContext
Rich runtime context detected once at startup, immutable after.

Enums§

Environment
Runtime environment types.

Functions§

get_app_env
Get the current application environment name (dev, staging, prod).
is_helm
Check if the application was deployed via Helm.
runtime_context
Get the global runtime context (detected lazily on first call).