mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-21 13:23:09 +01:00
Save raw manifest in db (#391)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user