2015-08-21 04:24:30 +00:00
|
|
|
package manifest
|
|
|
|
|
2016-07-19 11:54:41 +00:00
|
|
|
// Versioned provides a struct with the manifest schemaVersion and mediaType.
|
|
|
|
// Incoming content with unknown schema version can be decoded against this
|
|
|
|
// struct to check the version.
|
2015-08-21 04:24:30 +00:00
|
|
|
type Versioned struct {
|
|
|
|
// SchemaVersion is the image manifest schema that this image follows
|
|
|
|
SchemaVersion int `json:"schemaVersion"`
|
2016-01-06 22:15:14 +00:00
|
|
|
|
|
|
|
// MediaType is the media type of this schema.
|
|
|
|
MediaType string `json:"mediaType,omitempty"`
|
2015-08-21 04:24:30 +00:00
|
|
|
}
|