MCPcopy Create free account
hub / github.com/dagger/dagger / loadInvokedMethod

Function loadInvokedMethod

sdk/typescript/src/module/entrypoint/load.ts:46–55  ·  view source on GitHub ↗
(
  object: DaggerObject,
  ctx: InvokeCtx,
)

Source from the content-addressed store, hash-verified

44}
45
46export function loadInvokedMethod(
47 object: DaggerObject,
48 ctx: InvokeCtx,
49): (Method | Constructor) | undefined {
50 if (ctx.fnName === "") {
51 return object._constructor
52 }
53
54 return object.methods[ctx.fnName]
55}
56
57/**
58 * Load the values of the arguments from the context.

Callers 1

invokeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected