2015-08-21 06:24:30 +02:00
|
|
|
package manifest
|
|
|
|
|
2016-01-06 23:15:14 +01:00
|
|
|
// Versioned provides a struct with the manifest schemaVersion and . Incoming
|
2015-08-21 06:24:30 +02:00
|
|
|
// content with unknown schema version can be decoded against this struct to
|
|
|
|
// check the version.
|
|
|
|
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
|
|
|
}
|