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

Method Runtime

core/modulesource.go:539–553  ·  view source on GitHub ↗
(
	ctx context.Context,
	deps *SchemaBuilder,
	src dagql.ObjectResult[*ModuleSource],
)

Source from the content-addressed store, hash-verified

537var _ Runtime = persistedModuleSourceLazyRuntime{}
538
539func (sdk persistedModuleSourceLazyRuntime) Runtime(
540 ctx context.Context,
541 deps *SchemaBuilder,
542 src dagql.ObjectResult[*ModuleSource],
543) (ModuleRuntime, error) {
544 loaded, err := sdk.sdk.load(ctx)
545 if err != nil {
546 return nil, err
547 }
548 runtimeSDK, ok := loaded.AsRuntime()
549 if !ok {
550 return nil, fmt.Errorf("persisted module source sdk does not implement runtime")
551 }
552 return runtimeSDK.Runtime(ctx, deps, src)
553}
554
555type persistedModuleSourceLazyModuleTypes struct {
556 sdk *persistedModuleSourceLazySDK

Callers

nothing calls this directly

Calls 3

AsRuntimeMethod · 0.65
RuntimeMethod · 0.65
loadMethod · 0.45

Tested by

no test coverage detected