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

Method CurrentModule

core/query.go:61–61  ·  view source on GitHub ↗

If the current client is coming from a function, return the module that function is from

(context.Context)

Source from the content-addressed store, hash-verified

59
60 // If the current client is coming from a function, return the module that function is from
61 CurrentModule(context.Context) (dagql.ObjectResult[*Module], error)
62
63 // If the current client is a module client or a client created by a module function, returns that module.
64 ModuleParent(context.Context) (dagql.ObjectResult[*Module], error)

Callers 15

AgentMethod · 0.65
TaskMethod · 0.65
ReportMethod · 0.65
PromptMethod · 0.65
PromptMethod · 0.65
bashStepMethod · 0.65
execMetaMethod · 0.65
recordCallMethod · 0.65
allowedMethod · 0.65
parseCallerCalleeRefsFunction · 0.65
client_resource.goFile · 0.65

Implementers 3

mockServercore/telemetry_test.go
currentTypeDefsTestServercore/schema/test_server_test.go
Serverengine/server/server.go

Calls

no outgoing calls

Tested by

no test coverage detected