MCPcopy Create free account
hub / github.com/openclaw/gogcli / runtimeKeyringBackendInfo

Function runtimeKeyringBackendInfo

internal/cmd/runtime.go:259–271  ·  view source on GitHub ↗
(runtime *app.Runtime)

Source from the content-addressed store, hash-verified

257}
258
259func 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
273func hydrateRuntimeLayoutFromConfig(runtime *app.Runtime) error {
274 if runtime.Config == nil {

Callers 2

helpDescriptionFunction · 0.85

Calls 2

configureRuntimeConfigFunction · 0.85

Tested by

no test coverage detected