mirror of https://github.com/containers/image.git
Expose image variant
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
f74c41f2ca
commit
044cdf90aa
|
|
@ -120,6 +120,8 @@ type Schema2V1Image struct {
|
|||
Config *Schema2Config `json:"config,omitempty"`
|
||||
// Architecture is the hardware that the image is build and runs on
|
||||
Architecture string `json:"architecture,omitempty"`
|
||||
// Variant is a variant of the CPU that the image is build and runs on
|
||||
Variant string `json:"variant,omitempty"`
|
||||
// OS is the operating system used to build and run the image
|
||||
OS string `json:"os,omitempty"`
|
||||
// Size is the total size of the image including all layers it is composed of
|
||||
|
|
@ -330,6 +332,7 @@ func (m *Schema2) Inspect(configGetter func(types.BlobInfo) ([]byte, error)) (*t
|
|||
Created: &s2.Created,
|
||||
DockerVersion: s2.DockerVersion,
|
||||
Architecture: s2.Architecture,
|
||||
Variant: s2.Variant,
|
||||
Os: s2.OS,
|
||||
Layers: layerInfosToStrings(m.LayerInfos()),
|
||||
}
|
||||
|
|
|
|||
|
|
@ -444,6 +444,7 @@ type ImageInspectInfo struct {
|
|||
DockerVersion string
|
||||
Labels map[string]string
|
||||
Architecture string
|
||||
Variant string
|
||||
Os string
|
||||
Layers []string
|
||||
Env []string
|
||||
|
|
|
|||
Loading…
Reference in New Issue