CodebergUpstream

class CodebergUpstream(val user: String, val repo: String, val baseUrl: String? = "https://codeberg.org/api/v1/", val baseUrlEndpoint: String? = "repos/", val releaseBaseUrl: String? = "https://codeberg.org/", val releaseBaseUrlEndpoint: String? = "/", val upstreamPriority: Priority = 1.priority) : Upstream

The Codeberg upstream.

Constructors

Link copied to clipboard
constructor(user: String, repo: String, baseUrl: String? = "https://codeberg.org/api/v1/", baseUrlEndpoint: String? = "repos/", releaseBaseUrl: String? = "https://codeberg.org/", releaseBaseUrlEndpoint: String? = "/", upstreamPriority: Priority = 1.priority)

Properties

Link copied to clipboard
open override val baseUrl: String?

The url that is used as a base for all api requests

Link copied to clipboard
open override val baseUrlEndpoint: String?

The endpoint from where the data is requested [baseUrl+baseUrlEndpoint]

Link copied to clipboard
open override val releaseBaseUrl: String?

The url that is used as a base for all releases

Link copied to clipboard
open override val releaseBaseUrlEndpoint: String?

The endpoint where the release should lead to [baseUrl+baseUrlEndpoint]

Link copied to clipboard

Name of the repository

Link copied to clipboard
open override val upstreamPriority: Priority

Priority is that used when comparing versions from multiple upstreams.

Link copied to clipboard

User that the repository resides under

Functions

Link copied to clipboard
open operator override fun compareTo(other: Upstream): Int
Link copied to clipboard
open suspend override fun fetch(client: HttpClient, schema: UpdateSchema): DefaultVersion?

Fetches a version object from the upstream.

Link copied to clipboard
open override fun toVersion(version: String, schema: UpdateSchema): DefaultVersion

Converts a version string into a DefaultVersion.

Link copied to clipboard
open override fun update(version: Version): Update

Returns an Update from a DefaultVersion.