OCIDescriptor

@Serializable
data class OCIDescriptor(val mediaType: String? = null, val digest: String? = null, val propertySize: Long? = null, val urls: List<String>? = null, val annotations: Map<String, String>? = null, val data: String? = null, val platform: OCIPlatform? = null, val artifactType: String? = null)

A descriptor struct containing digest, media type, and size, as defined in the OCI Content Descriptors Specification.

Parameters

mediaType

The media type of the object this schema refers to.

digest

The digest of the targeted content.

propertySize

The size in bytes of the blob.

urls

List of URLs from which this object MAY be downloaded.

annotations

Arbitrary metadata relating to the targeted content.

`data`

Data is an embedding of the targeted content. This is encoded as a base64 string when marshalled to JSON (automatically, by encoding/json). If present, Data can be used directly to avoid fetching the targeted content.

platform
artifactType

ArtifactType is the IANA media type of this artifact.

Constructors

Link copied to clipboard
constructor(mediaType: String? = null, digest: String? = null, propertySize: Long? = null, urls: List<String>? = null, annotations: Map<String, String>? = null, data: String? = null, platform: OCIPlatform? = null, artifactType: String? = null)

Properties

Link copied to clipboard
@SerialName(value = "annotations")
val annotations: Map<String, String>?
Link copied to clipboard
@SerialName(value = "artifactType")
val artifactType: String?
Link copied to clipboard
@SerialName(value = "data")
val data: String?
Link copied to clipboard
@SerialName(value = "digest")
val digest: String?
Link copied to clipboard
@SerialName(value = "mediaType")
val mediaType: String?
Link copied to clipboard
@SerialName(value = "platform")
val platform: OCIPlatform?
Link copied to clipboard
@SerialName(value = "size")
val propertySize: Long?
Link copied to clipboard
@SerialName(value = "urls")
val urls: List<String>?