Skip to content

Commit 789cc5a

Browse files
author
zhouhao
committed
Update the spec file
Signed-off-by: zhouhao <[email protected]>
1 parent 75d4c25 commit 789cc5a

File tree

2 files changed

+32
-27
lines changed

2 files changed

+32
-27
lines changed

descriptor.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,37 @@ The following fields contain the primary properties that constitute a Descriptor
4444
This OPTIONAL property contains arbitrary metadata for this descriptor.
4545
This OPTIONAL property MUST use the [annotation rules](annotations.md#rules).
4646

47+
- **`platform`** *object*
48+
49+
This OPTIONAL property describes the platform which the image in the manifest runs on.
50+
This SHOULD only be used when referring to a manifest.
51+
52+
- **`architecture`** *string*
53+
54+
This REQUIRED property specifies the CPU architecture.
55+
Image indexes SHOULD use, and implementations SHOULD understand, values [supported by runtime-spec's `platform.arch`][runtime-platform2].
56+
57+
- **`os`** *string*
58+
59+
This REQUIRED property specifies the operating system.
60+
Image indexes SHOULD use, and implementations SHOULD understand, values [supported by runtime-spec's `platform.os`][runtime-platform2].
61+
62+
- **`os.version`** *string*
63+
64+
This OPTIONAL property specifies the operating system version, for example `10.0.10586`.
65+
66+
- **`os.features`** *array of strings*
67+
68+
This OPTIONAL property specifies an array of strings, each specifying a mandatory OS feature (for example on Windows `win32k`).
69+
70+
- **`variant`** *string*
71+
72+
This OPTIONAL property specifies the variant of the CPU, for example `armv6l` to specify a particular CPU variant of the ARM CPU.
73+
74+
- **`features`** *array of strings*
75+
76+
This OPTIONAL property specifies an array of strings, each specifying a mandatory CPU feature (for example `sse4` or `aes`).
77+
4778
### Reserved
4879

4980
The following field keys are reserved and MUST NOT be used by other specifications.

image-index.md

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ For the media type(s) that this document is compatible with, see the [matrix][ma
2525
This REQUIRED property contains a list of [manifests](manifest.md) for specific platforms.
2626
While this property MUST be present, the size of the array MAY be zero.
2727

28-
Each object in `manifests` has the base properties of [descriptor](descriptor.md) with the following additional properties and restrictions:
28+
Each object in `manifests` has the base properties of [descriptor](descriptor.md) with the following requirements and restrictions:
2929

3030
- **`mediaType`** *string*
3131

@@ -43,32 +43,6 @@ For the media type(s) that this document is compatible with, see the [matrix][ma
4343
This OPTIONAL property describes the platform which the image in the manifest runs on.
4444
This property SHOULD be present if its target is platform-specific.
4545

46-
- **`architecture`** *string*
47-
48-
This REQUIRED property specifies the CPU architecture.
49-
Image indexes SHOULD use, and implementations SHOULD understand, values [supported by runtime-spec's `platform.arch`][runtime-platform2].
50-
51-
- **`os`** *string*
52-
53-
This REQUIRED property specifies the operating system.
54-
Image indexes SHOULD use, and implementations SHOULD understand, values [supported by runtime-spec's `platform.os`][runtime-platform2].
55-
56-
- **`os.version`** *string*
57-
58-
This OPTIONAL property specifies the operating system version, for example `10.0.10586`.
59-
60-
- **`os.features`** *array of strings*
61-
62-
This OPTIONAL property specifies an array of strings, each specifying a mandatory OS feature (for example on Windows `win32k`).
63-
64-
- **`variant`** *string*
65-
66-
This OPTIONAL property specifies the variant of the CPU, for example `armv6l` to specify a particular CPU variant of the ARM CPU.
67-
68-
- **`features`** *array of strings*
69-
70-
This OPTIONAL property specifies an array of strings, each specifying a mandatory CPU feature (for example `sse4` or `aes`).
71-
7246
- **`annotations`** *string-string map*
7347

7448
This OPTIONAL property contains arbitrary metadata for the image index.

0 commit comments

Comments
 (0)