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

Method ModuleRuntime

sdk/python/runtime/main.go:177–192  ·  view source on GitHub ↗

Container for executing the Python module runtime

(
	ctx context.Context,
	modSource *dagger.ModuleSource,
	introspectionJSON *dagger.File,
)

Source from the content-addressed store, hash-verified

175
176// Container for executing the Python module runtime
177func (m *PythonSdk) ModuleRuntime(
178 ctx context.Context,
179 modSource *dagger.ModuleSource,
180 introspectionJSON *dagger.File,
181) (*dagger.Container, error) {
182 runtime, err := m.Common(ctx, modSource, introspectionJSON)
183 if err != nil {
184 return nil, err
185 }
186 runtime = runtime.WithInstall()
187 ctr := runtime.Container
188 if runtime.Debug {
189 ctr = ctr.Terminal()
190 }
191 return ctr, nil
192}
193
194// Container for executing the Python module runtime
195func (m *PythonSdk) ModuleTypesExp(

Callers 1

invokeFunction · 0.45

Calls 3

CommonMethod · 0.95
WithInstallMethod · 0.45
TerminalMethod · 0.45

Tested by

no test coverage detected