package specs
import "github.com/opencontainers/image-spec/specs-go"
Index ¶
Constants ¶
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 ¶
Version is the specification version that the package types support.
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.
Source Files ¶
descriptor.go version.go versioned.go
Directories ¶
Path | Synopsis |
---|---|
specs-go/v1 |
- Version
- v0.4.0
- Published
- Aug 10, 2016
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 3 hours ago –
Tools for package owners.