MCPcopy Create free account
hub / github.com/docker/cli / mountBlobs

Function mountBlobs

cli/command/manifest/push.go:277–291  ·  view source on GitHub ↗
(ctx context.Context, client registryclient.RegistryClient, ref reference.Named, blobs []manifestBlob)

Source from the content-addressed store, hash-verified

275}
276
277func mountBlobs(ctx context.Context, client registryclient.RegistryClient, ref reference.Named, blobs []manifestBlob) error {
278 for _, blob := range blobs {
279 err := client.MountBlob(ctx, blob.canonical, ref)
280 switch err.(type) {
281 case nil:
282 case registryclient.ErrBlobCreated:
283 if blob.os != "windows" {
284 return fmt.Errorf("error mounting %s to %s", blob.canonical, ref)
285 }
286 default:
287 return err
288 }
289 }
290 return nil
291}

Callers 1

pushListFunction · 0.85

Calls 1

MountBlobMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…