Save raw manifest in db (#391)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2021-05-27 17:10:10 +02:00
committed by GitHub
parent 6d483b398c
commit 8855fbe228

View File

@@ -21,7 +21,8 @@ type Manifest struct {
DockerVersion string
Labels map[string]string
Layers []string
Platform string `json:"-"`
Platform string
Raw []byte
}
// Manifest returns the manifest for a specific image
@@ -99,5 +100,6 @@ func (c *Client) Manifest(image Image, dbManifest Manifest) (Manifest, error) {
Labels: imgInspect.Labels,
Layers: imgInspect.Layers,
Platform: imgPlatform,
Raw: rawManifest,
}, nil
}