Skip to content

Commit ca2e500

Browse files
committed
Embed Platform in Image
This embeds the Platform struct in the image struct, so that these fields don't have to be defined multiple times, and to allow projects that have tooling for validating/normalizing/handling Platform data can apply these on an image-config, without first constructing a Platform from these fields. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 50b6194 commit ca2e500

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

specs-go/v1/config.go

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -86,22 +86,8 @@ type Image struct {
8686
// Author defines the name and/or email address of the person or entity which created and is responsible for maintaining the image.
8787
Author string `json:"author,omitempty"`
8888

89-
// Architecture is the CPU architecture which the binaries in this image are built to run on.
90-
Architecture string `json:"architecture"`
91-
92-
// Variant is the variant of the specified CPU architecture which image binaries are intended to run on.
93-
Variant string `json:"variant,omitempty"`
94-
95-
// OS is the name of the operating system which the image is built to run on.
96-
OS string `json:"os"`
97-
98-
// OSVersion is an optional field specifying the operating system
99-
// version, for example on Windows `10.0.14393.1066`.
100-
OSVersion string `json:"os.version,omitempty"`
101-
102-
// OSFeatures is an optional field specifying an array of strings,
103-
// each listing a required OS feature (for example on Windows `win32k`).
104-
OSFeatures []string `json:"os.features,omitempty"`
89+
// Platform describes the platform which the image in the manifest runs on.
90+
Platform
10591

10692
// Config defines the execution parameters which should be used as a base when running a container using the image.
10793
Config ImageConfig `json:"config,omitempty"`

0 commit comments

Comments
 (0)