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

Method ImagePull

pkg/dryrun/dryrunclient.go:219–224  ·  pkg/dryrun/dryrunclient.go::DryRunClient.ImagePull
(ctx context.Context, ref string, options client.ImagePullOptions)

Source from the content-addressed store, hash-verified

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 {
221 return nil, err
222 }
223 return fakeStreamResult{ReadCloser: http.NoBody}, nil
224}
225
226func (d *DryRunClient) ImagePush(ctx context.Context, ref string, options client.ImagePushOptions) (client.ImagePushResponse, error) {
227 if _, _, err := d.resolver.Resolve(ctx, ref); err != nil {

Callers 2

inspectWithPullFunction · 0.45
pullServiceImageMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected