(ctx context.Context, repo distribution.Repository, ref reference.Named)
| 56 | } |
| 57 | |
| 58 | func getManifest(ctx context.Context, repo distribution.Repository, ref reference.Named) (distribution.Manifest, error) { |
| 59 | manSvc, err := repo.Manifests(ctx) |
| 60 | if err != nil { |
| 61 | return nil, err |
| 62 | } |
| 63 | |
| 64 | dgst, opts, err := getManifestOptionsFromReference(ref) |
| 65 | if err != nil { |
| 66 | return nil, fmt.Errorf("image manifest for %q does not exist", ref) |
| 67 | } |
| 68 | return manSvc.Get(ctx, dgst, opts...) |
| 69 | } |
| 70 | |
| 71 | func pullManifestSchemaV2(ctx context.Context, ref reference.Named, repo distribution.Repository, mfst schema2.DeserializedManifest) (types.ImageManifest, error) { |
| 72 | manifestDesc, err := validateManifestDigest(ref, mfst) |
no test coverage detected
searching dependent graphs…