dependencies

package
v2.53.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ChecksumFileName = "checksum.sha2"
)

Variables

This section is empty.

Functions

func CreateChecksumFile added in v2.47.11

func CreateChecksumFile(targetPath, checksum string) (err error)

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

func DownloadExtractor(targetPath, downloadPath string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL