harbor/vendor/github.com/docker/distribution/manifest/versioned.go

13 lines
430 B
Go
Raw Normal View History

2016-08-11 15:30:02 +02:00
package manifest
// Versioned provides a struct with the manifest schemaVersion and . Incoming
// 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"`
// MediaType is the media type of this schema.
MediaType string `json:"mediaType,omitempty"`
}