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