github.com/containers/podman/v2@v2.2.2-0.20210501105131-c1e07d070c4c/pkg/inspect/inspect.go (about) 1 package inspect 2 3 import ( 4 "time" 5 6 "github.com/containers/image/v5/manifest" 7 "github.com/containers/podman/v2/libpod/driver" 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 *driver.Data `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 } 44 45 // ImageResult is used for podman images for collection and output 46 type ImageResult struct { 47 Tag string 48 Repository string 49 RepoDigests []string 50 RepoTags []string 51 ID string 52 Digest digest.Digest 53 ConfigDigest digest.Digest 54 Created time.Time 55 Size *uint64 56 Labels map[string]string 57 Dangling bool 58 }