1e89cf780c
Update the Manifest types to use the oci implementation of the Versioned struct. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
14 lines
521 B
Go
14 lines
521 B
Go
package manifest
|
|
|
|
// Versioned provides a struct with the manifest schemaVersion and mediaType.
|
|
// Incoming content with unknown schema version can be decoded against this
|
|
// struct to check the version.
|
|
//
|
|
// Deprecated: use [specs.Versioned] and set MediaType on the Manifest itself.
|
|
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"`
|
|
}
|