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
Properties
Functions
Link copied to clipboard
Creates a ContentSource for path within this root.
fun file(path: String, connectTimeout: Duration, readTimeout: Duration, fetchTimeout: Duration, maxBytes: Long, followRedirects: Boolean): UrlSource
Creates a UrlSource for path with timeouts given as java.time.Duration and every limit, for Java callers: the overload taking Kotlin durations cannot be called from Java.