github.com/npaton/distribution@v2.3.1-rc.0+incompatible/manifest/versioned.go (about) 1 package manifest 2 3 // Versioned provides a struct with the manifest schemaVersion and . Incoming 4 // content with unknown schema version can be decoded against this struct to 5 // check the version. 6 type Versioned struct { 7 // SchemaVersion is the image manifest schema that this image follows 8 SchemaVersion int `json:"schemaVersion"` 9 10 // MediaType is the media type of this schema. 11 MediaType string `json:"mediaType,omitempty"` 12 }