LookupImageByExtension returns the image for a given extension.
(key string)
| 143 | |
| 144 | // LookupImageByExtension returns the image for a given extension. |
| 145 | func LookupImageByExtension(key string) (*Image, error) { |
| 146 | if v, ok := innerMap[key]; ok { |
| 147 | return v, nil |
| 148 | } |
| 149 | return nil, fmt.Errorf("Map does not contain key %s", key) |
| 150 | } |
| 151 | |
| 152 | // LookupImageByName returns the image for a given image name. |
| 153 | func LookupImageByName(name string) (*Image, error) { |
no outgoing calls