GitLabFile

open class GitLabFile(val repo: GitLabRepo, val branchName: String, val srcPath: String, val fileName: String) : UrlSource

A ContentSource pointing to a specific file in a GitLab repository.

Constructs the blob URL from the repository, branch, path, and file name.

Parameters

repo

the GitLab repository

branchName

the branch or tag name

srcPath

the directory path within the repository

fileName

the file name

Constructors

Link copied to clipboard
constructor(repo: GitLabRepo, branchName: String, srcPath: String, fileName: String)

Properties

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

The textual content read from this source.

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

Whether this source is remote (URL-based).

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

Functions

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