Class GlobalConfig.StateConfig
java.lang.Object
cloud.kitelang.cli.config.GlobalConfig.StateConfig
- Enclosing class:
GlobalConfig
State backend configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetEffectivePassword(String project, String environment) Gets the effective password with priority: env var > config file.booleanhasPassword(String project, String environment) Checks if password is available from any source.
-
Constructor Details
-
StateConfig
public StateConfig()
-
-
Method Details
-
getEffectivePassword
Gets the effective password with priority: env var > config file. Environment variable format: KITE__{PROJECT}__{ENVIRONMENT}__DB_PASSWORD- Parameters:
project- the project nameenvironment- the environment name (e.g., "prod", "dev")- Returns:
- the resolved password
-
hasPassword
-