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

Function pushReferences

cli/command/manifest/push.go:266–275  ·  view source on GitHub ↗
(ctx context.Context, out io.Writer, client registryclient.RegistryClient, mounts []mountRequest)

Source from the content-addressed store, hash-verified

264}
265
266func pushReferences(ctx context.Context, out io.Writer, client registryclient.RegistryClient, mounts []mountRequest) error {
267 for _, mount := range mounts {
268 newDigest, err := client.PutManifest(ctx, mount.ref, mount.manifest)
269 if err != nil {
270 return err
271 }
272 _, _ = fmt.Fprintf(out, "Pushed ref %s with digest: %s\n", mount.ref, newDigest)
273 }
274 return nil
275}
276
277func mountBlobs(ctx context.Context, client registryclient.RegistryClient, ref reference.Named, blobs []manifestBlob) error {
278 for _, blob := range blobs {

Callers 1

pushListFunction · 0.85

Calls 1

PutManifestMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…