versioned.go 430 B

12345678910111213
  1. package manifest
  2. // Versioned provides a struct with the manifest schemaVersion and . Incoming
  3. // content with unknown schema version can be decoded against this struct to
  4. // 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. }