Skip to content

Commit

Permalink
Revert "export manifest for tar file (#1033)" (#1043)
Browse files Browse the repository at this point in the history
This reverts commit f0ce227.
  • Loading branch information
hhstu committed Jun 10, 2021
1 parent 14e26bf commit 5455b5b
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions pkg/v1/tarball/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,22 +117,6 @@ type Descriptor struct {
// Manifest represents the manifests of all images as the `manifest.json` file in a `docker save` tarball.
type Manifest []Descriptor

// LoadManifest load manifest
func LoadManifest(opener Opener) (Manifest, error) {
m, err := opener()
if err != nil {
return nil, err
}
defer m.Close()

var manifest Manifest

if err := json.NewDecoder(m).Decode(&manifest); err != nil {
return nil, err
}
return manifest, nil
}

func (m Manifest) findDescriptor(tag *name.Tag) (*Descriptor, error) {
if tag == nil {
if len(m) != 1 {
Expand Down

0 comments on commit 5455b5b

Please sign in to comment.