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

Function getManifest

internal/registryclient/fetcher.go:58–69  ·  view source on GitHub ↗
(ctx context.Context, repo distribution.Repository, ref reference.Named)

Source from the content-addressed store, hash-verified

56}
57
58func 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
71func pullManifestSchemaV2(ctx context.Context, ref reference.Named, repo distribution.Repository, mfst schema2.DeserializedManifest) (types.ImageManifest, error) {
72 manifestDesc, err := validateManifestDigest(ref, mfst)

Callers 2

fetchManifestFunction · 0.70
fetchListFunction · 0.70

Calls 2

GetMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…