Documentation ¶
Index ¶
- Constants
- func DependencyNotFoundInArtifactory(err error, noRegistry bool) bool
- func GetArtifactoryApiUrl(repoName string, details auth.ServiceDetails) (string, error)
- func GetCachePath() (string, error)
- func GetGoModCachePath() (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 DependencyNotFoundInArtifactory ¶
Returns true if a dependency was not found Artifactory.
func GetArtifactoryApiUrl ¶ added in v0.1.17
func GetArtifactoryApiUrl(repoName string, details auth.ServiceDetails) (string, error)
func GetCachePath ¶
GetCachePath returns the location of downloads dir insied the GOMODCACHE
func GetGoModCachePath ¶ added in v0.1.17
GetGoModCachePath returns the location of the go module cache
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.