Versions in this module Expand all Collapse all v1 v1.34.0 Jul 5, 2021 v1.33.0 Jul 5, 2021 Changes in this version + const Agent + const CredentialsInUrlRegexp + const Development + const MAX_ENTRIES + const Version + var MaxBufferSize = 50000 + func AddProps(oldProps, additionalProps string) string + func AddTrailingSlashIfNeeded(url string) string + func Bool2Int(b bool) int + func BuildTargetPath(pattern, path, target string, ignoreRepo bool) (string, bool, error) + func CheckErrorWithMessage(err error, message string) error + func ConvertLocalPatternToRegexp(localPath string, patternType PatternType) string + func ConvertSliceToMap(slice []string) map[string]bool + func CopyMap(src map[string]string) (dst map[string]string) + func ExtractArchive(localPath, localFileName, originFileName, logMsgPrefix string) error + func ExtractSha256FromResponseBody(body []byte) (string, error) + func GetBoolEnvValue(flagName string, defValue bool) (bool, error) + func GetLogMsgPrefix(threadId int, dryRun bool) string + func GetRegExp(regex string) (*regexp.Regexp, error) + func GetRootPath(path string, patternType PatternType, parentheses ParenthesesSlice) string + func GetUserAgent() string + func GetUserHomeDir() string + func IndentJson(jsonStr []byte) string + func IndentJsonArray(jsonStr []byte) string + func IsSlashPrecedeAsterisk(asteriskIndex, slashIndex int) bool + func IsWindows() bool + func MergeMaps(src map[string]string, dst map[string]string) + func NewGitManager(path string) *manager + func PlaceholdersUserd(pattern, target string) bool + func RemoveCredentials(line, credentialsPart string) string + func RemovePlaceholderParentheses(pattern, target string) string + func ReplacePlaceHolders(groups []string, toReplace string) (string, bool) + func ReplaceTildeWithUserHome(path string) string + func SaveFileTransferDetailsInFile(filePath string, details *[]FileTransferDetails) error + func SaveFileTransferDetailsInTempFile(filesDetails *[]FileTransferDetails) (string, error) + func SetUserAgent(newUserAgent string) + func SplitWithEscape(str string, separator rune) []string + func StringToBool(boolVal string, defaultValue bool) (bool, error) + func TrimPath(path string) string + func WildcardPathToRegExp(localPath string) string + type Artifact struct + LocalPath string + Symlink string + TargetPath string + type ChecksumDetails struct + Md5 string + Sha1 string + Sha256 string + type DeployableArtifactDetails struct + ArtifactDest string + DeploySucceeded bool + Sha256 string + SourcePath string + func (detailes *DeployableArtifactDetails) CreateFileTransferDetails() FileTransferDetails + type ErrorsQueue struct + func NewErrorsQueue(size int) *ErrorsQueue + func (errQueue *ErrorsQueue) AddError(err error) + func (errQueue *ErrorsQueue) GetError() error + type ExecutionHandlerFunc func() (bool, error) + type FileTransferDetails struct + Sha256 string + SourcePath string + TargetPath string + type Parentheses struct + CloseIndex int + OpenIndex int + type ParenthesesSlice struct + Parentheses []Parentheses + func NewParenthesesSlice(pattern, target string) ParenthesesSlice + func (p *ParenthesesSlice) IsPresent(index int) bool + type PatternType string + const AntPattern + const RegExp + const WildCardPattern + func GetPatternType(patternTypes PatternTypes) PatternType + type PatternTypes struct + Ant bool + RegExp bool + type RetryExecutor struct + ErrorMessage string + ExecutionHandler ExecutionHandlerFunc + LogMsgPrefix string + MaxRetries int + RetriesInterval int + func (runner *RetryExecutor) Execute() error + type Sha256Summary struct + func NewSha256Summary() *Sha256Summary + func (bps *Sha256Summary) GetSha256() string + func (bps *Sha256Summary) IsSucceeded() bool + func (bps *Sha256Summary) SetSha256(sha256 string) *Sha256Summary + func (bps *Sha256Summary) SetSucceeded(succeeded bool) *Sha256Summary + type UploadResponseBody struct + Checksums ChecksumDetails + type VcsCache struct + func NewVcsDetals() *VcsCache + func (this *VcsCache) GetVcsDetails(path string) (revision, refUrl, branch string, err error)