utils

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2021 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

View Source
const GOPROXY = "GOPROXY"

Variables

This section is empty.

Functions

func DependencyNotFoundInArtifactory

func DependencyNotFoundInArtifactory(err error, noRegistry bool) bool

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

func GetCachePath() (string, error)

GetCachePath returns the location of downloads dir insied the GOMODCACHE

func GetGoModCachePath added in v0.1.17

func GetGoModCachePath() (string, error)

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 LogDebug

func LogDebug(err error, usedProxy bool)

func LogError

func LogError(err error)

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 GetRegex

func GetRegex() (regExp *RegExp, err error)

func (*RegExp) GetIndirectRegex

func (reg *RegExp) GetIndirectRegex() *regexp.Regexp

func (*RegExp) GetNotEmptyModRegex

func (reg *RegExp) GetNotEmptyModRegex() *regexp.Regexp

Jump to

Keyboard shortcuts

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