Repository

@Serializable
data class Repository(val owner: String, val name: String, val url: String, val rawLinkFormat: String)(source)

Represents a repository. All credits to Cloudstream for the code references.

Parameters

owner

The username or organization name.

name

The repository name.

url

The URL of the repository.

rawLinkFormat

The raw link format used for generating raw links to files in the repository.

Constructors

Link copied to clipboard
constructor(owner: String, name: String, url: String, rawLinkFormat: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val url: String

Functions

Link copied to clipboard
fun getRawLink(filename: String, branch: String): String

Generates a raw link to a file in the repository.