ReleaseAsset

com.worxbend.codeberg4s.repositories.ReleaseAsset
final case class ReleaseAsset

A file attached to a Release — a built binary, a checksum, a signature.

Distinct from the source archives Forgejo generates from the tag: those are Release.zipballUrl and Release.tarballUrl, and their counters are Release.archiveDownloads.

Every asset in golden/repository/releases-list.json reports "type": "attachment", the only value Forgejo emits here, so the field is dropped on the way into this model rather than modelled as a constant.

Value parameters

browserDownloadUrl

where the asset can be fetched. Downloading it is outside this library: the body is arbitrarily large and belongs in a stream, not in a String

createdAt

when it was uploaded

downloadCount

how often this asset has been downloaded

id

the instance-local identifier of the attachment

name

the file name, for example forgejo-16.0.2-linux-amd64

size

the size in bytes

uuid

the storage identifier; stable, and what the download URL is built from

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product