GitLabRepo
class GitLabRepo(ownerType: OwnerType, ownerName: String, repoName: String, scheme: String = "https://", domainName: String = "gitlab.com") : AbstractRepo
A ContentRoot representing a GitLab repository.
Raw content is fetched from the repository's /-/raw/ path; /-/blob/ is GitLab's HTML viewer page.
Parameters
ownerType
whether the owner is a user or organization
ownerName
the GitLab username or group name
repoName
the repository name
scheme
the URL scheme, defaults to "https://"
domainName
the GitLab domain, defaults to "gitlab.com"
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.