Documentation
¶
Index ¶
- func AddTrailingSlashIfNeeded(url string) string
- func Bool2Int(b bool) int
- func CopyMap(src map[string]string) (dst map[string]string)
- func GetLogMsgPrefix(threadId int, dryRun bool) string
- func GetRootPath(path string, useRegExp bool) string
- func GetUserAgent() string
- func GetUserHomeDir() string
- func IndentJson(jsonStr []byte) string
- func MergeMaps(src map[string]string, dst map[string]string)
- func PathToRegExp(localPath string) string
- func PrepareLocalPathForUpload(localPath string, useRegExp bool) string
- func ReformatRegexp(regexpString, sourceString, destString string) (string, error)
- func ReplaceTildeWithUserHome(path string) string
- func SetUserAgent(newUserAgent string)
- func StringToBool(boolVal string, defaultValue bool) (bool, error)
- func TrimPath(path string) string
- type Artifact
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLogMsgPrefix ¶
func GetRootPath ¶
Get the local root path, from which to start collecting artifacts to be used for: 1. Uploaded to Artifactory, 2. Adding to the local build-info, to be later published to Artifactory.
func GetUserAgent ¶
func GetUserAgent() string
func GetUserHomeDir ¶
func GetUserHomeDir() string
func IndentJson ¶
func PathToRegExp ¶
func ReformatRegexp ¶
Replaces matched regular expression from sourceString to corresponding {i} at destString. For example:
regexpString = "1(.*)234" ; sourceString = "1hello234" ; destString = "{1}"
returns "hello"
func SetUserAgent ¶
func SetUserAgent(newUserAgent string)
Types ¶
Click to show internal directories.
Click to hide internal directories.