Documentation ¶
Index ¶
- Constants
- func CreateChecksumFile(targetPath, checksum string) (err error)
- func CreateHttpClient(artDetails *config.ServerDetails) (rtHttpClient *jfroghttpclient.JfrogHttpClient, ...)
- func DownloadDependency(artDetails *config.ServerDetails, downloadPath, targetPath string, ...) (err error)
- func DownloadExtractor(targetPath, downloadPath string) error
- func GetExtractorsRemoteDetails(downloadPath string) (server *config.ServerDetails, remoteRepo string, err error)
- func GetRemoteDetails(remoteEnv string) (server *config.ServerDetails, repoName string, err error)
Constants ¶
const (
ChecksumFileName = "checksum.sha2"
)
Variables ¶
This section is empty.
Functions ¶
func CreateChecksumFile ¶ added in v2.47.11
func CreateHttpClient ¶ added in v2.47.11
func CreateHttpClient(artDetails *config.ServerDetails) (rtHttpClient *jfroghttpclient.JfrogHttpClient, httpClientDetails httputils.HttpClientDetails, err error)
func DownloadDependency ¶
func DownloadDependency(artDetails *config.ServerDetails, downloadPath, targetPath string, shouldExplode bool) (err error)
Downloads the requested resource.
artDetails: The artifactory server details to download the resource from. downloadPath: Artifactory download path. targetPath: The local download path (without the file name).
func DownloadExtractor ¶
Download the relevant build-info-extractor jar. By default, the jar is downloaded directly from jfrog releases.
targetPath: The local download path (without the file name). downloadPath: Artifactory download path.
func GetExtractorsRemoteDetails ¶
func GetExtractorsRemoteDetails(downloadPath string) (server *config.ServerDetails, remoteRepo string, err error)
GetExtractorsRemoteDetails retrieves the server details necessary to download the build-info extractors from a remote repository. downloadPath - specifies the path in the remote repository from which the extractors will be downloaded.
func GetRemoteDetails ¶ added in v2.47.11
func GetRemoteDetails(remoteEnv string) (server *config.ServerDetails, repoName string, err error)
GetRemoteDetails function retrieves the server details and downloads path for the build-info extractor file. serverAndRepo - the server id and the remote repository that proxies releases.jfrog.io, in form of '<ServerID>/<RemoteRepo>'. downloadPath - specifies the path in the remote repository from which the extractors will be downloaded. remoteEnv - the relevant environment variable that was used: releasesRemoteEnv/ExtractorsRemoteEnv. The function returns the server that matches the given server ID, the complete path of the build-info extractor concatenated with the specified remote repository, and an error if occurred.
Types ¶
This section is empty.