(ctx context.Context, out io.Writer, client registryclient.RegistryClient, mounts []mountRequest)
| 264 | } |
| 265 | |
| 266 | func 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 | |
| 277 | func mountBlobs(ctx context.Context, client registryclient.RegistryClient, ref reference.Named, blobs []manifestBlob) error { |
| 278 | for _, blob := range blobs { |
no test coverage detected
searching dependent graphs…