File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,9 @@ import "github.com/opencontainers/image-spec/specs-go"
2121type Index struct {
2222 specs.Versioned
2323
24+ // MediaType specificies the type of this document data structure e.g. `application/vnd.oci.image.index.v1+json`
25+ MediaType string `json:"mediaType,omitempty"`
26+
2427 // Manifests references platform specific manifests.
2528 Manifests []Descriptor `json:"manifests"`
2629
Original file line number Diff line number Diff line change @@ -20,6 +20,9 @@ import "github.com/opencontainers/image-spec/specs-go"
2020type Manifest struct {
2121 specs.Versioned
2222
23+ // MediaType specificies the type of this document data structure e.g. `application/vnd.oci.image.manifest.v1+json`
24+ MediaType string `json:"mediaType,omitempty"`
25+
2326 // Config references a configuration object for a container, by digest.
2427 // The referenced configuration object is a JSON blob that the runtime uses to set up the container.
2528 Config Descriptor `json:"config"`
You can’t perform that action at this time.
0 commit comments