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

Function fetchList

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

Source from the content-addressed store, hash-verified

42}
43
44func fetchList(ctx context.Context, repo distribution.Repository, ref reference.Named) ([]types.ImageManifest, error) {
45 manifest, err := getManifest(ctx, repo, ref)
46 if err != nil {
47 return nil, err
48 }
49
50 switch v := manifest.(type) {
51 case *manifestlist.DeserializedManifestList:
52 return pullManifestList(ctx, ref, repo, *v)
53 default:
54 return nil, fmt.Errorf("unsupported manifest format: %v", v)
55 }
56}
57
58func getManifest(ctx context.Context, repo distribution.Repository, ref reference.Named) (distribution.Manifest, error) {
59 manSvc, err := repo.Manifests(ctx)

Callers 1

GetManifestListMethod · 0.85

Calls 2

pullManifestListFunction · 0.85
getManifestFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…