MCPcopy
hub / github.com/google/go-containerregistry / ParseIndexManifest

Function ParseIndexManifest

pkg/v1/manifest.go:67–73  ·  view source on GitHub ↗

ParseIndexManifest parses the io.Reader's contents into an IndexManifest.

(r io.Reader)

Source from the content-addressed store, hash-verified

65
66// ParseIndexManifest parses the io.Reader's contents into an IndexManifest.
67func ParseIndexManifest(r io.Reader) (*IndexManifest, error) {
68 im := IndexManifest{}
69 if err := json.NewDecoder(r).Decode(&im); err != nil {
70 return nil, err
71 }
72 return &im, nil
73}

Callers 4

handleMethod · 0.92
IndexManifestMethod · 0.92
validateIndexManifestFunction · 0.92
TestParseIndexManifestFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestParseIndexManifestFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…