(runtime *app.Runtime)
| 257 | } |
| 258 | |
| 259 | func runtimeKeyringBackendInfo(runtime *app.Runtime) (secrets.KeyringBackendInfo, error) { |
| 260 | if runtime == nil || runtime.KeyringOptions == nil { |
| 261 | return secrets.KeyringBackendInfo{}, errRuntimeKeyringRequired |
| 262 | } |
| 263 | if err := configureRuntimeConfig(runtime); err != nil { |
| 264 | return secrets.KeyringBackendInfo{}, err |
| 265 | } |
| 266 | |
| 267 | options := *runtime.KeyringOptions |
| 268 | options.Layout = runtime.Layout |
| 269 | options.Config = runtime.Config |
| 270 | return secrets.ResolveKeyringBackendInfoWithOptions(options) |
| 271 | } |
| 272 | |
| 273 | func hydrateRuntimeLayoutFromConfig(runtime *app.Runtime) error { |
| 274 | if runtime.Config == nil { |
no test coverage detected