AbstractRepo

abstract class AbstractRepo(val scheme: String, val domainName: String, val ownerType: OwnerType, val ownerName: String, val repoName: String) : ContentRoot

Base class for Git repository content roots, providing URL construction for hosted repos.

Parameters

scheme

the URL scheme (e.g., "https://")

domainName

the host domain (e.g., "github.com")

ownerType

whether the owner is a user or organization

ownerName

the repository owner's name

repoName

the repository name

Inheritors

Constructors

Link copied to clipboard
constructor(scheme: String, domainName: String, ownerType: OwnerType, ownerName: String, repoName: String)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val rawSourcePrefix: String

The URL prefix used to access raw file content from this repository.

Link copied to clipboard
open override val remote: Boolean = true

Whether this root points to a remote location.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val sourcePrefix: String

The prefix path or URL used to resolve files within this root.

Functions

Link copied to clipboard
open override fun file(path: String): UrlSource

Creates a ContentSource for the given relative path within this root.