MCPcopy Index your code
hub / github.com/docker/cli / buildBlobRequestList

Function buildBlobRequestList

cli/command/manifest/push.go:170–185  ·  view source on GitHub ↗
(imageManifest types.ImageManifest, repoName reference.Named)

Source from the content-addressed store, hash-verified

168}
169
170func buildBlobRequestList(imageManifest types.ImageManifest, repoName reference.Named) ([]manifestBlob, error) {
171 blobs := imageManifest.Blobs()
172 blobReqs := make([]manifestBlob, 0, len(blobs))
173 for _, blobDigest := range blobs {
174 canonical, err := reference.WithDigest(repoName, blobDigest)
175 if err != nil {
176 return nil, err
177 }
178 var os string
179 if imageManifest.Descriptor.Platform != nil {
180 os = imageManifest.Descriptor.Platform.OS
181 }
182 blobReqs = append(blobReqs, manifestBlob{canonical: canonical, os: os})
183 }
184 return blobReqs, nil
185}
186
187func buildPutManifestRequest(imageManifest types.ImageManifest, targetRef reference.Named) (mountRequest, error) {
188 refWithoutTag, err := reference.WithName(targetRef.Name())

Callers 1

buildPushRequestFunction · 0.85

Calls 1

BlobsMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…