Documentation ¶
Index ¶
Constants ¶
View Source
const ( // VersionMajor is for an API incompatible changes VersionMajor = 0 // VersionMinor is for functionality in a backwards-compatible manner VersionMinor = 3 // VersionPatch is for backwards-compatible bug fixes VersionPatch = 0 // VersionDev indicates development branch. Releases will be empty string. VersionDev = "-dev" )
Variables ¶
View Source
var Version = fmt.Sprintf("%d.%d.%d%s", VersionMajor, VersionMinor, VersionPatch, VersionDev)
Version is the specification version that the package types support.
Functions ¶
This section is empty.
Types ¶
type Descriptor ¶
type Descriptor struct { // MediaType contains the MIME type of the referenced object. MediaType string `json:"mediaType"` // Digests is the digest of the targeted content. Digest string `json:"digest"` // Size specifies the size in bytes of the blob Size int64 `json:"size"` }
Descriptor describes the disposition of targeted content.
type Versioned ¶
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"` }
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.
Click to show internal directories.
Click to hide internal directories.