utils

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

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 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, noFallback bool) 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