MCPcopy Index your code
hub / github.com/docker-exec/dexec / LookupImageByName

Function LookupImageByName

dexec/dexec.go:153–160  ·  view source on GitHub ↗

LookupImageByName returns the image for a given image name.

(name string)

Source from the content-addressed store, hash-verified

151
152// LookupImageByName returns the image for a given image name.
153func LookupImageByName(name string) (*Image, error) {
154 for _, v := range innerMap {
155 if v.Image == name {
156 return v, nil
157 }
158 }
159 return nil, fmt.Errorf("Map does not contain image with name %s", name)
160}
161
162// LookupImageByOverride takes an image that has been specified by the user
163// to use instead of the one in the extension map. This function returns a

Callers 1

ImageFromOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected