GitLabFile

constructor(repo: GitLabRepo, branchName: String, srcPath: String, fileName: String, connectTimeout: Duration = DEFAULT_CONNECT_TIMEOUT, readTimeout: Duration = DEFAULT_READ_TIMEOUT)

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)


constructor(repo: GitLabRepo, branchName: String, srcPath: String, fileName: String)

Creates a GitLabFile with the default timeouts.