From 2e96acf3007cbd05a37a8af7156f0abda073cb5a Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Sun, 11 Feb 2018 06:05:29 -0500 Subject: Change json to match docker inspect Changing these fields caused the output of podman inspect to more closely match docker inspect. Signed-off-by: Daniel J Walsh Closes: #306 Approved by: mheon --- pkg/inspect/inspect.go | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'pkg/inspect') diff --git a/pkg/inspect/inspect.go b/pkg/inspect/inspect.go index 11a252535..e523d4c4d 100644 --- a/pkg/inspect/inspect.go +++ b/pkg/inspect/inspect.go @@ -106,24 +106,24 @@ type LogConfig struct { // ImageData holds the inspect information of an image type ImageData struct { - ID string `json:"ID"` - Digest digest.Digest `json:"Digest"` - RepoTags []string `json:"RepoTags"` - RepoDigests []string `json:"RepoDigests"` - Parent string `json:"Parent"` - Comment string `json:"Comment"` - Created *time.Time `json:"Created"` - Config *v1.ImageConfig `json:"Config"` - Version string `json:"Version"` - Author string `json:"Author"` - Architecture string `json:"Architecture"` - Os string `json:"Os"` - Size int64 `json:"Size"` - VirtualSize int64 `json:"VirtualSize"` - GraphDriver *Data `json:"GraphDriver"` - RootFS *RootFS `json:"RootFS"` - Labels map[string]string `json:"Labels"` - Annotations map[string]string `json:"Annotations"` + ID string `json:"Id"` + Digest digest.Digest `json:"Digest"` + RepoTags []string `json:"RepoTags"` + RepoDigests []string `json:"RepoDigests"` + Parent string `json:"Parent"` + Comment string `json:"Comment"` + Created *time.Time `json:"Created"` + ContainerConfig *v1.ImageConfig `json:"ContainerConfig"` + Version string `json:"Version"` + Author string `json:"Author"` + Architecture string `json:"Architecture"` + Os string `json:"Os"` + Size int64 `json:"Size"` + VirtualSize int64 `json:"VirtualSize"` + GraphDriver *Data `json:"GraphDriver"` + RootFS *RootFS `json:"RootFS"` + Labels map[string]string `json:"Labels"` + Annotations map[string]string `json:"Annotations"` } // RootFS holds the root fs information of an image -- cgit v1.2.3-54-g00ecf