...

Source file src/github.com/docker/distribution/manifest/versioned.go

Documentation: github.com/docker/distribution/manifest

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

View as plain text