From 8855fbe228794f00d981eff39921731211b32457 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Thu, 27 May 2021 17:10:10 +0200 Subject: [PATCH] Save raw manifest in db (#391) Co-authored-by: CrazyMax --- pkg/registry/manifest.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/registry/manifest.go b/pkg/registry/manifest.go index d0c774ff..25fc580c 100644 --- a/pkg/registry/manifest.go +++ b/pkg/registry/manifest.go @@ -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 }