GitLabRepo

class GitLabRepo(ownerType: OwnerType, ownerName: String, repoName: String, scheme: String = "https://", domainName: String = "gitlab.com") : AbstractRepo

A ContentRoot representing a GitLab repository.

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

Link copied to clipboard
constructor(ownerType: OwnerType, ownerName: String, repoName: String, scheme: String = "https://", domainName: String = "gitlab.com")

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override 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.

Link copied to clipboard
open override fun toString(): String