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

Function pushList

cli/command/manifest/push.go:248–264  ·  view source on GitHub ↗
(ctx context.Context, dockerCLI command.Cli, req pushRequest)

Source from the content-addressed store, hash-verified

246}
247
248func pushList(ctx context.Context, dockerCLI command.Cli, req pushRequest) error {
249 registryClient := newRegistryClient(dockerCLI, req.insecure)
250
251 if err := mountBlobs(ctx, registryClient, req.targetRef, req.manifestBlobs); err != nil {
252 return err
253 }
254 if err := pushReferences(ctx, dockerCLI.Out(), registryClient, req.mountRequests); err != nil {
255 return err
256 }
257 dgst, err := registryClient.PutManifest(ctx, req.targetRef, req.list)
258 if err != nil {
259 return err
260 }
261
262 _, _ = fmt.Fprintln(dockerCLI.Out(), dgst.String())
263 return nil
264}
265
266func pushReferences(ctx context.Context, out io.Writer, client registryclient.RegistryClient, mounts []mountRequest) error {
267 for _, mount := range mounts {

Callers 1

runPushFunction · 0.85

Calls 6

newRegistryClientFunction · 0.85
mountBlobsFunction · 0.85
pushReferencesFunction · 0.85
OutMethod · 0.65
PutManifestMethod · 0.65
StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…