emo / me.eater.emo / RepositoryCache

RepositoryCache

data class RepositoryCache

Repository cache

Types

Status

sealed class Status

Constructors

<init>

RepositoryCache(definition: RepositoryDefinition, name: String, description: String = "", : String? = null, links: Links = Links(), status: RepositoryCache.Status = Status.Ok)

Repository cache

Properties

definition

val definition: RepositoryDefinition

Definition of this repository

description

val description: String

Description of this repository

links

val links: Links

Links about this repository

logo

val logo: String?

Logo of this repostiory

name

val name: String

Name of this repository

status

val status: RepositoryCache.Status

Status of repository, filled after update

Companion Object Functions

fromRepository

fun fromRepository(definition: RepositoryDefinition, repository: Repository): RepositoryCache

Create a cache object from the RepositoryDefinition and Repository