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

Function runtimeWithService

internal/cmd/runtime_services.go:144–150  ·  view source on GitHub ↗
(ctx context.Context, name string)

Source from the content-addressed store, hash-verified

142}
143
144func runtimeWithService(ctx context.Context, name string) (*app.Runtime, error) {
145 runtime, ok := app.FromContext(ctx)
146 if !ok {
147 return nil, fmt.Errorf("%w: %s", errRuntimeServiceRequired, name)
148 }
149 return runtime, nil
150}
151
152func adminDirectoryService(ctx context.Context, account string) (*admin.Service, error) {
153 runtime, err := runtimeWithService(ctx, "admin directory")

Callers 15

adminDirectoryServiceFunction · 0.85
appScriptServiceFunction · 0.85
analyticsAdminServiceFunction · 0.85
analyticsDataServiceFunction · 0.85
calendarServiceFunction · 0.85
chatServiceFunction · 0.85
classroomServiceFunction · 0.85
cloudIdentityServiceFunction · 0.85
meetServiceFunction · 0.85
photosServiceFunction · 0.85

Calls 2

FromContextFunction · 0.92
ErrorfMethod · 0.80

Tested by

no test coverage detected