const ( AnnotationCreated = "org.opencontainers.image.created" AnnotationAuthors = "org.opencontainers.image.authors" AnnotationURL = "org.opencontainers.image.url" AnnotationDocumentation = "org.opencontainers.image.documentation" AnnotationSource = "org.opencontainers.image.source" AnnotationVersion = "org.opencontainers.image.version" AnnotationRevision = "org.opencontainers.image.revision" AnnotationVendor = "org.opencontainers.image.vendor" AnnotationLicenses = "org.opencontainers.image.licenses" AnnotationRefName = "org.opencontainers.image.ref.name" AnnotationTitle = "org.opencontainers.image.title" AnnotationDescription = "org.opencontainers.image.description" AnnotationBaseImageDigest = "org.opencontainers.image.base.digest" AnnotationBaseImageName = "org.opencontainers.image.base.name" )View Source
const ( ImageLayoutFile = "oci-layout" ImageLayoutVersion = "1.0.0" ImageIndexFile = "index.json" ImageBlobsDir = "blobs" )View Source
const ( MediaTypeDescriptor = "application/vnd.oci.descriptor.v1+json" MediaTypeLayoutHeader = "application/vnd.oci.layout.header.v1+json" MediaTypeImageIndex = "application/vnd.oci.image.index.v1+json" MediaTypeImageManifest = "application/vnd.oci.image.manifest.v1+json" MediaTypeImageConfig = "application/vnd.oci.image.config.v1+json" MediaTypeEmptyJSON = "application/vnd.oci.empty.v1+json" )View Source
const ( MediaTypeImageLayer = "application/vnd.oci.image.layer.v1.tar" MediaTypeImageLayerGzip = "application/vnd.oci.image.layer.v1.tar+gzip" MediaTypeImageLayerZstd = "application/vnd.oci.image.layer.v1.tar+zstd" )View Source
const ( MediaTypeImageLayerNonDistributable = "application/vnd.oci.image.layer.nondistributable.v1.tar" MediaTypeImageLayerNonDistributableGzip = "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip" MediaTypeImageLayerNonDistributableZstd = "application/vnd.oci.image.layer.nondistributable.v1.tar+zstd" )
Non-distributable layer media-types.
Deprecated: Non-distributable layers are deprecated, and not recommended for future use. Implementations SHOULD NOT produce new non-distributable layers. https://github.com/opencontainers/image-spec/pull/965
DescriptorEmptyJSON is the descriptor of a blob with content of `{}`.
This section is empty.
type Descriptor struct { MediaType string `json:"mediaType"` Digest digest.Digest `json:"digest"` Size int64 `json:"size"` URLs []string `json:"urls,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` Data []byte `json:"data,omitempty"` Platform *Platform `json:"platform,omitempty"` ArtifactType string `json:"artifactType,omitempty"` }
Descriptor describes the disposition of targeted content. This structure provides `application/vnd.oci.descriptor.v1+json` mediatype when marshalled to JSON.
type History struct { Created *time.Time `json:"created,omitempty"` CreatedBy string `json:"created_by,omitempty"` Author string `json:"author,omitempty"` Comment string `json:"comment,omitempty"` EmptyLayer bool `json:"empty_layer,omitempty"` }
History describes the history of a layer.
type Image struct { Created *time.Time `json:"created,omitempty"` Author string `json:"author,omitempty"` Platform Config ImageConfig `json:"config,omitempty"` RootFS RootFS `json:"rootfs"` History []History `json:"history,omitempty"` }
Image is the JSON structure which describes some basic information about the image. This provides the `application/vnd.oci.image.config.v1+json` mediatype when marshalled to JSON.
type ImageConfig struct { User string `json:"User,omitempty"` ExposedPorts map[string]struct{} `json:"ExposedPorts,omitempty"` Env []string `json:"Env,omitempty"` Entrypoint []string `json:"Entrypoint,omitempty"` Cmd []string `json:"Cmd,omitempty"` Volumes map[string]struct{} `json:"Volumes,omitempty"` WorkingDir string `json:"WorkingDir,omitempty"` Labels map[string]string `json:"Labels,omitempty"` StopSignal string `json:"StopSignal,omitempty"` ArgsEscaped bool `json:"ArgsEscaped,omitempty"` }
ImageConfig defines the execution parameters which should be used as a base when running a container using an image.
type ImageLayout struct { Version string `json:"imageLayoutVersion"` }
ImageLayout is the structure in the "oci-layout" file, found in the root of an OCI Image-layout directory.
type Index struct { specs.Versioned MediaType string `json:"mediaType,omitempty"` ArtifactType string `json:"artifactType,omitempty"` Manifests []Descriptor `json:"manifests"` Subject *Descriptor `json:"subject,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
Index references manifests for various platforms. This structure provides `application/vnd.oci.image.index.v1+json` mediatype when marshalled to JSON.
type Manifest struct { specs.Versioned MediaType string `json:"mediaType,omitempty"` ArtifactType string `json:"artifactType,omitempty"` Config Descriptor `json:"config"` Layers []Descriptor `json:"layers"` Subject *Descriptor `json:"subject,omitempty"` Annotations map[string]string `json:"annotations,omitempty"` }
Manifest provides `application/vnd.oci.image.manifest.v1+json` mediatype structure when marshalled to JSON.
type Platform struct { Architecture string `json:"architecture"` OS string `json:"os"` OSVersion string `json:"os.version,omitempty"` OSFeatures []string `json:"os.features,omitempty"` Variant string `json:"variant,omitempty"` }
Platform describes the platform which the image in the manifest runs on.
type RootFS struct { Type string `json:"type"` DiffIDs []digest.Digest `json:"diff_ids"` }
RootFS describes a layer content addresses
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4