Documentation ¶
Index ¶
- Constants
- func GetArtifactoryApiUrl(repoName string, details auth.ServiceDetails) (string, error)
- func GetPackageVersion(repoName, packageName string, details auth.ServiceDetails) (string, error)
- func LogDebug(err error, usedProxy bool)
- func LogError(err error)
- func LogFinishedMsg(cache *cache.DependenciesCache)
- func SetGoProxyWithApi(repoName string, details auth.ServiceDetails) error
- type PackageVersionResponseContent
- type RegExp
Constants ¶
View Source
const GOPROXY = "GOPROXY"
Variables ¶
This section is empty.
Functions ¶
func GetArtifactoryApiUrl ¶ added in v0.1.17
func GetArtifactoryApiUrl(repoName string, details auth.ServiceDetails) (string, error)
func GetPackageVersion ¶ added in v0.1.17
func GetPackageVersion(repoName, packageName string, details auth.ServiceDetails) (string, error)
GetPackageVersion returns the matching version for the packageName string using the Artifactory details that are provided. PackageName string should be in the following format: <Package Path>/@V/<Requested Branch Name>.info OR latest.info For example the jfrog/jfrog-cli/@v/master.info packageName will return the corresponding canonical version (vX.Y.Z) string for the jfrog-cli master branch.
func LogFinishedMsg ¶
func LogFinishedMsg(cache *cache.DependenciesCache)
func SetGoProxyWithApi ¶
func SetGoProxyWithApi(repoName string, details auth.ServiceDetails) error
Types ¶
type PackageVersionResponseContent ¶ added in v0.1.17
type PackageVersionResponseContent struct {
Version string `json:"Version,omitempty"`
}
type RegExp ¶
type RegExp struct {
// contains filtered or unexported fields
}
func (*RegExp) GetIndirectRegex ¶
func (*RegExp) GetNotEmptyModRegex ¶
Click to show internal directories.
Click to hide internal directories.