versioned.go 439 B

123456789101112
  1. package manifest
  2. // Versioned provides a struct with the manifest schemaVersion and mediaType.
  3. // Incoming content with unknown schema version can be decoded against this
  4. // struct to check the version.
  5. type Versioned struct {
  6. // SchemaVersion is the image manifest schema that this image follows
  7. SchemaVersion int `json:"schemaVersion"`
  8. // MediaType is the media type of this schema.
  9. MediaType string `json:"mediaType,omitempty"`
  10. }