MCPcopy Index your code
hub / github.com/dagger/dagger / CurrentQuery

Function CurrentQuery

core/query.go:203–209  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

201}
202
203func CurrentQuery(ctx context.Context) (*Query, error) {
204 q, ok := ctx.Value(queryKey{}).(*Query)
205 if !ok {
206 return nil, fmt.Errorf("no query in context")
207 }
208 return q, nil
209}
210
211func CurrentDagqlServer(ctx context.Context) (*dagql.Server, error) {
212 // Prefer the dagql server explicitly attached to this resolver context.

Callers 15

ModuleTypesMethod · 0.92
CallMethod · 0.92
ModuleTypesMethod · 0.92
CallMethod · 0.92
currentEnvironmentMethod · 0.92
withCurrentModuleMethod · 0.92
engineMethod · 0.92
localCacheMethod · 0.92
clientsMethod · 0.92
cacheEntrySetMethod · 0.92
cachePruneMethod · 0.92
updateMethod · 0.92

Calls 1

ValueMethod · 0.65

Tested by

no test coverage detected