Versions in this module Expand all Collapse all v1 v1.0.0 Mar 31, 2023 Changes in this version + const Agent + const CredentialsInUrlRegexp + const Development + const MaxEntries + const Version + var MaxBufferSize = 50000 + func AddEscapingParentheses(pattern, target, targetPathInArchive string) string + func AddProps(oldProps, additionalProps string) string + func AddTrailingSlashIfNeeded(url string) string + func AntToRegex(antPattern 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 IsPlaceholdersUsed(pattern, target string) bool + func IsSlashPrecedeAsterisk(asteriskIndex, slashIndex int) bool + func MergeMaps(src map[string]string, dst map[string]string) + func RemoveCredentials(line, credentialsPart string) string + func RemovePlaceholderParentheses(pattern, target string) string + func ReplacePlaceHolders(groups []string, toReplace string, isRegexp bool) (string, bool, error) + func ReplaceTildeWithUserHome(path string) string + func SaveFileTransferDetailsInFile(filePath string, details *[]FileTransferDetails) error + func SaveFileTransferDetailsInTempFile(filesDetails *[]FileTransferDetails) (filePath string, err 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 + type Artifact struct + LocalPath string + SymlinkTargetPath string + TargetPath string + TargetPathInArchive string + type DeployableArtifactDetails struct + ArtifactDest string + DeploySucceeded bool + Sha256 string + SourcePath string + TargetRepository string + func (details *DeployableArtifactDetails) CreateFileTransferDetails(rtUrl, targetRepository string) (FileTransferDetails, error) + 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 + RtUrl string + Sha256 string + SourcePath string + TargetPath string + type GitManager struct + func NewGitManager(path string) *GitManager + func (m *GitManager) ExecGit(args ...string) (string, string, error) + func (m *GitManager) GetBranch() string + func (m *GitManager) GetMessage() string + func (m *GitManager) GetRevision() string + func (m *GitManager) GetUrl() string + func (m *GitManager) ReadConfig() error + type Parentheses struct + CloseIndex int + OpenIndex int + type ParenthesesSlice struct + Parentheses []Parentheses + func CreateParenthesesSlice(pattern, target string) ParenthesesSlice + func NewParenthesesSlice(slice []Parentheses) 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 + Context context.Context + ErrorMessage string + ExecutionHandler ExecutionHandlerFunc + LogMsgPrefix string + MaxRetries int + RetriesIntervalMilliSecs int + func (runner *RetryExecutor) Execute() error + func (runner *RetryExecutor) LogRetry(attemptNumber int, err error) + type RetryExecutorTimeoutError struct + func (retryErr RetryExecutorTimeoutError) Error() string + 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 entities.Checksum + type VcsCache struct + func NewVcsDetails() *VcsCache + func (vc *VcsCache) GetVcsDetails(path string) (revision, refUrl, branch string, err error)