Versioned

data class Versioned(val id: TemplateId, val versionId: TemplateId, val type: String?, val size: Long?, val createdAt: Instant?, val deployedAt: Instant?) : UploadedTemplate

Versioning on: stable template id plus the content-hash versionId.

Constructors

Link copied to clipboard
constructor(id: TemplateId, versionId: TemplateId, type: String?, size: Long?, createdAt: Instant?, deployedAt: Instant?)

Properties

Link copied to clipboard

Upload timestamp, when reported by Carbone.

Link copied to clipboard

Deployment timestamp used to pick the active version, when reported by Carbone.

Link copied to clipboard
open override val id: TemplateId

Template id to use for subsequent renders and lookups.

Link copied to clipboard
val size: Long?

Content size in bytes, when reported by Carbone.

Link copied to clipboard
val type: String?

File type/extension reported by Carbone, when available.

Link copied to clipboard

Content hash of this upload; not the plain SHA-256 of the file in versioned mode.