GitLabFile
open class GitLabFile(val repo: GitLabRepo, val branchName: String, val srcPath: String, val fileName: String, connectTimeout: Duration = DEFAULT_CONNECT_TIMEOUT, readTimeout: Duration = DEFAULT_READ_TIMEOUT) : UrlSource
A ContentSource pointing to a specific file in a GitLab repository.
Resolves branchName, srcPath, and fileName against the repository's GitLabRepo.rawSourcePrefix.
Parameters
repo
the GitLab repository
branchName
the branch or tag name
srcPath
the directory path within the repository
fileName
the file name
connectTimeout
the maximum time to wait for a connection (default 10 seconds)
readTimeout
the maximum time to wait for data once connected (default 30 seconds)
Constructors
Link copied to clipboard
constructor(repo: GitLabRepo, branchName: String, srcPath: String, fileName: String, connectTimeout: Duration = DEFAULT_CONNECT_TIMEOUT, readTimeout: Duration = DEFAULT_READ_TIMEOUT)
Creates a GitLabFile with the default timeouts.