| 205 | } |
| 206 | |
| 207 | func (d *DryRunClient) ImageInspect(ctx context.Context, imageName string, options ...client.ImageInspectOption) (client.ImageInspectResult, error) { |
| 208 | caller := getCallingFunction() |
| 209 | switch caller { |
| 210 | case "pullServiceImage", "buildContainerVolumes": |
| 211 | return client.ImageInspectResult{ |
| 212 | InspectResponse: image.InspectResponse{ID: "dryRunId"}, |
| 213 | }, nil |
| 214 | default: |
| 215 | return d.apiClient.ImageInspect(ctx, imageName, options...) |
| 216 | } |
| 217 | } |
| 218 | |
| 219 | func (d *DryRunClient) ImagePull(ctx context.Context, ref string, options client.ImagePullOptions) (client.ImagePullResponse, error) { |
| 220 | if _, _, err := d.resolver.Resolve(ctx, ref); err != nil { |