2015-08-20 21:24:30 -07:00
|
|
|
package manifest
|
|
|
|
|
2016-07-19 13:54:41 +02: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-20 21:24:30 -07:00
|
|
|
type Versioned struct {
|
|
|
|
// SchemaVersion is the image manifest schema that this image follows
|
|
|
|
SchemaVersion int `json:"schemaVersion"`
|
2016-01-06 14:15:14 -08:00
|
|
|
|
|
|
|
// MediaType is the media type of this schema.
|
|
|
|
MediaType string `json:"mediaType,omitempty"`
|
2015-08-20 21:24:30 -07:00
|
|
|
}
|