Upstream

The Upstream interface defines a remote that stores version information (and possible version files) that allows the fetching of this information through an api.

Inheritors

Properties

Link copied to clipboard

Priority is that used when comparing versions from multiple upstreams.

Functions

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

Fetches a version object from the upstream.

Link copied to clipboard
abstract fun toVersion(version: String, schema: UpdateSchema): Version

Converts a version string into a Version.

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

Returns an Update from a Version.