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

Function commandServiceAccountStore

internal/cmd/runtime.go:331–344  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

329}
330
331func commandServiceAccountStore(ctx context.Context) (*config.ServiceAccountStore, error) {
332 if runtime, ok := app.FromContext(ctx); ok {
333 if runtime.ServiceAccounts != nil {
334 return runtime.ServiceAccounts, nil
335 }
336 if err := configureRuntimeLayout(runtime, config.PathKindConfig, config.PathKindData); err != nil {
337 return nil, err
338 }
339 runtime.ServiceAccounts = config.NewServiceAccountStore(runtime.Layout)
340 return runtime.ServiceAccounts, nil
341 }
342
343 return nil, errRuntimeRequired
344}
345
346func commandUserConfigBase(ctx context.Context) (string, error) {
347 runtime, ok := app.FromContext(ctx)

Callers 9

executeWithRuntimeFunction · 0.85
getKeepServiceFunction · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85

Calls 3

FromContextFunction · 0.92
NewServiceAccountStoreFunction · 0.92
configureRuntimeLayoutFunction · 0.85