github.com/hanks177/podman/v4@v4.1.3-0.20220613032544-16d90015bc83/pkg/inspect/inspect.go (about) 1 package inspect 2 3 import ( 4 "time" 5 6 "github.com/containers/image/v5/manifest" 7 "github.com/hanks177/podman/v4/libpod/define" 8 "github.com/opencontainers/go-digest" 9 v1 "github.com/opencontainers/image-spec/specs-go/v1" 10 ) 11 12 // ImageData holds the inspect information of an image. 13 type ImageData struct { 14 ID string `json:"Id"` 15 Digest digest.Digest `json:"Digest"` 16 RepoTags []string `json:"RepoTags"` 17 RepoDigests []string `json:"RepoDigests"` 18 Parent string `json:"Parent"` 19 Comment string `json:"Comment"` 20 Created *time.Time `json:"Created"` 21 Config *v1.ImageConfig `json:"Config"` 22 Version string `json:"Version"` 23 Author string `json:"Author"` 24 Architecture string `json:"Architecture"` 25 Os string `json:"Os"` 26 Size int64 `json:"Size"` 27 VirtualSize int64 `json:"VirtualSize"` 28 GraphDriver *define.DriverData `json:"GraphDriver"` 29 RootFS *RootFS `json:"RootFS"` 30 Labels map[string]string `json:"Labels"` 31 Annotations map[string]string `json:"Annotations"` 32 ManifestType string `json:"ManifestType"` 33 User string `json:"User"` 34 History []v1.History `json:"History"` 35 NamesHistory []string `json:"NamesHistory"` 36 HealthCheck *manifest.Schema2HealthConfig `json:"Healthcheck,omitempty"` 37 } 38 39 // RootFS holds the root fs information of an image. 40 type RootFS struct { 41 Type string `json:"Type"` 42 Layers []digest.Digest `json:"Layers"` 43 }