MCPcopy
hub / github.com/docker/compose / ImageInspect

Method ImageInspect

pkg/dryrun/dryrunclient.go:207–217  ·  pkg/dryrun/dryrunclient.go::DryRunClient.ImageInspect
(ctx context.Context, imageName string, options ...client.ImageInspectOption)

Source from the content-addressed store, hash-verified

205}
206
207func (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
219func (d *DryRunClient) ImagePull(ctx context.Context, ref string, options client.ImagePullOptions) (client.ImagePullResponse, error) {
220 if _, _, err := d.resolver.Resolve(ctx, ref); err != nil {

Callers 15

inspectWithPullFunction · 0.45
TestDownRemoveImagesFunction · 0.45
TestImagesFunction · 0.45
pullServiceImageMethod · 0.45
imageCreatedTimeMethod · 0.45
getLocalImagesDigestsMethod · 0.45
TestCreateMobyContainerFunction · 0.45

Calls 1

getCallingFunctionFunction · 0.85