MCPcopy
hub / github.com/dagger/dagger / getImage

Method getImage

sdk/python/runtime/discovery.go:170–176  ·  view source on GitHub ↗

getImage returns the container image address for the given name.

(name string)

Source from the content-addressed store, hash-verified

168
169// getImage returns the container image address for the given name.
170func (m *PythonSdk) getImage(name string) Image {
171 image, exists := m.Discovery.Images[name]
172 if !exists {
173 return m.Discovery.DefaultImages[name]
174 }
175 return image
176}
177
178// Load reads from the module source files and metadata.
179//

Callers 4

BaseImageMethod · 0.95
UvImageMethod · 0.95
WithBaseMethod · 0.95
uvMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected