ctx returns the context from the config, defaulting to background if nil
()
| 179 | |
| 180 | // ctx returns the context from the config, defaulting to background if nil |
| 181 | func (c EngineSecretConfig) ctx() context.Context { |
| 182 | if c.Ctx != nil { |
| 183 | return c.Ctx |
| 184 | } |
| 185 | return context.Background() |
| 186 | } |
| 187 | |
| 188 | // checkAndEnsureEngineSecretsForEngine is the unified entry point for checking and collecting engine secrets. |
| 189 | // It checks existing secrets in the repository and environment, and prompts for missing ones. |
no test coverage detected