Versions in this module Expand all Collapse all v0 v0.14.5 Oct 27, 2020 v0.14.4 Oct 23, 2020 Changes in this version + const ARTIFACTORY_SYMLINK + const LastRelease + const Latest + const SYMLINK_SHA1 + func AddAuthHeaders(headers map[string]string, artifactoryDetails auth.ServiceDetails) + func AddChecksumHeaders(headers map[string]string, fileDetails *fileutils.FileDetails) + func AddHeader(headerName, headerValue string, headers *map[string]string) + func BuildArtifactoryUrl(baseUrl, path string, params map[string]string) (string, error) + func BuildQueryFromSpecFile(specFile *ArtifactoryCommonParams, requiredArtifactProps RequiredArtifactProps) string + func CreateAqlBodyForSpecWithPattern(params *ArtifactoryCommonParams) (string, error) + func CreateAqlQueryForNpm(npmName, npmVersion string) string + func CreateAqlQueryForPypi(repo, file string) string + func DisableAccelBuffering(headers *map[string]string) + func ExecAql(aqlQuery string, flags CommonConf) (io.ReadCloser, error) + func ExecAqlSaveToFile(aqlQuery string, flags CommonConf) (*content.ContentReader, error) + func FilterBottomChainResults(reader *content.ContentReader) (*content.ContentReader, error) + func FilterCandidateToBeDeleted(deleteCandidates *content.ContentReader, resultWriter *content.ContentWriter) ([]*content.ContentReader, error) + func FilterResultsByBuild(specFile *ArtifactoryCommonParams, flags CommonConf, ...) (*content.ContentReader, error) + func FilterTopChainResults(reader *content.ContentReader) (*content.ContentReader, error) + func GetBuildNameAndNumberFromArtifactory(buildName, buildNumber string, flags CommonConf) (string, string, error) + func IsSubPath(paths []string, index int, separator string) bool + func IsWildcardPattern(pattern string) bool + func LogSearchResults(numOfArtifacts int) + func MergeSortedFiles(sortedFiles []*content.ContentReader, ascendingOrder bool) (*content.ContentReader, error) + func ReduceBottomChainDirResult(searchResults *content.ContentReader) (*content.ContentReader, error) + func ReduceDirResult(searchResults *content.ContentReader, ascendingOrder bool, ...) (*content.ContentReader, error) + func ReduceTopChainDirResult(searchResults *content.ContentReader) (*content.ContentReader, error) + func SearchBySpecWithAql(specFile *ArtifactoryCommonParams, flags CommonConf, ...) (*content.ContentReader, error) + func SearchBySpecWithBuild(specFile *ArtifactoryCommonParams, flags CommonConf) (*content.ContentReader, error) + func SearchBySpecWithPattern(specFile *ArtifactoryCommonParams, flags CommonConf, ...) (*content.ContentReader, error) + func SetContentType(contentType string, headers *map[string]string) + func SortAndSaveBufferToFile(paths map[string]ResultItem, pathsKeys []string, increasingOrder bool) (*content.ContentReader, error) + func SumIntArray(arr []int) int + func UploadFile(localPath, url, logMsgPrefix string, artifactoryDetails *auth.ServiceDetails, ...) (*http.Response, []byte, error) + func WildcardToDirsPath(deletePattern, searchResult string) (string, error) + func WriteCandidateDirsToBeDeleted(candidateDirsReaders []*content.ContentReader, ...) (err error) + type Aql struct + ItemsFind string + func (aql *Aql) UnmarshalJSON(value []byte) error + type AqlSearchResult struct + Results []ResultItem + type AqlSearchResultItemFilter func(*content.ContentReader) (*content.ContentReader, error) + type ArtifactoryCommonParams struct + Aql Aql + ArchiveEntries string + Build string + Bundle string + ExcludePatterns []string + ExcludeProps string + Exclusions []string + IncludeDirs bool + Limit int + Offset int + Pattern string + Props string + Recursive bool + Regexp bool + SortBy []string + SortOrder string + Target string + func (params *ArtifactoryCommonParams) GetAql() Aql + func (params *ArtifactoryCommonParams) GetBuild() string + func (params *ArtifactoryCommonParams) GetBundle() string + func (params *ArtifactoryCommonParams) GetExcludePatterns() []string + func (params *ArtifactoryCommonParams) GetExcludeProps() string + func (params *ArtifactoryCommonParams) GetExclusions() []string + func (params *ArtifactoryCommonParams) GetLimit() int + func (params *ArtifactoryCommonParams) GetOffset() int + func (params *ArtifactoryCommonParams) GetPattern() string + func (params *ArtifactoryCommonParams) GetProps() string + func (params *ArtifactoryCommonParams) GetSortBy() []string + func (params *ArtifactoryCommonParams) GetSortOrder() string + func (params *ArtifactoryCommonParams) GetTarget() string + func (params *ArtifactoryCommonParams) IsExplode() bool + func (params *ArtifactoryCommonParams) IsRecursive() bool + func (params *ArtifactoryCommonParams) IsRegexp() bool + func (params *ArtifactoryCommonParams) SetArchiveEntries(archiveEntries string) + func (params *ArtifactoryCommonParams) SetExcludeProps(excludeProps string) + func (params *ArtifactoryCommonParams) SetPattern(pattern string) + func (params *ArtifactoryCommonParams) SetProps(props string) + func (params *ArtifactoryCommonParams) SetTarget(target string) + func (params ArtifactoryCommonParams) GetArchiveEntries() string + func (params ArtifactoryCommonParams) GetSpecType() (specType SpecType) + func (params ArtifactoryCommonParams) IsIncludeDirs() bool + type CommonConf interface + GetArtifactoryDetails func() auth.ServiceDetails + GetJfrogHttpClient func() (*rthttpclient.ArtifactoryHttpClient, error) + IsDryRun func() bool + SetArtifactoryDetails func(rt auth.ServiceDetails) + type CommonConfImpl struct + DryRun bool + func (flags *CommonConfImpl) GetArtifactoryDetails() auth.ServiceDetails + func (flags *CommonConfImpl) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (flags *CommonConfImpl) IsDryRun() bool + func (flags *CommonConfImpl) SetArtifactoryDetails(rt auth.ServiceDetails) + type FileGetter interface + GetAql func() Aql + GetArchiveEntries func() string + GetBuild func() string + GetBundle func() string + GetExcludePatterns func() []string + GetExclusions func() []string + GetLimit func() int + GetOffset func() int + GetPattern func() string + GetProps func() string + GetSortBy func() []string + GetSortOrder func() string + GetSpecType func() (specType SpecType) + GetTarget func() string + IsExplode func() bool + IsIncludeDirs func() bool + IsRecursive func() bool + IsRegexp func() bool + SetArchiveEntries func(archiveEntries string) + SetPattern func(pattern string) + SetTarget func(target string) + type FileHashes struct + Md5 string + Sha1 string + Sha256 string + type FileInfo struct + ArtifactoryPath string + InternalArtifactoryPath string + LocalPath string + func FlattenFileInfoArray(dependenciesBuildInfo [][]FileInfo) []FileInfo + func (fileInfo *FileInfo) ToBuildArtifacts() buildinfo.Artifact + type Properties struct + Properties []Property + func ParseProperties(propStr string, option PropertyParseOptions) (*Properties, error) + func (props *Properties) ToBuildPromoteMap() map[string][]string + func (props *Properties) ToEncodedString() string + func (props *Properties) ToHeadersMap() map[string]string + type Property struct + Key string + Value string + type PropertyParseOptions int + const JoinCommas + const SplitCommas + type ReplicationBody struct + CronExp string + EnableEventReplication bool + Enabled bool + Password string + PathPrefix string + RepoKey string + SocketTimeoutMillis int + SyncDeletes bool + SyncProperties bool + SyncStatistics bool + URL string + Username string + func CreateReplicationBody(params ReplicationParams) *ReplicationBody + type ReplicationParams struct + CronExp string + EnableEventReplication bool + Enabled bool + Password string + PathPrefix string + RepoKey string + SocketTimeoutMillis int + SyncDeletes bool + SyncProperties bool + SyncStatistics bool + Url string + Username string + type RepoPathFile struct + type RequiredArtifactProps int + const ALL + const NONE + const SYMLINK + type Result struct + SuccessCount []int + TotalCount []int + func NewResult(threads int) *Result + type ResultItem struct + Actual_Md5 string + Actual_Sha1 string + Created string + Modified string + Name string + Path string + Properties []Property + Repo string + Size int64 + Type string + func (item *ResultItem) ToArtifact() buildinfo.Artifact + func (item *ResultItem) ToDependency() buildinfo.Dependency + func (item ResultItem) GetItemRelativeLocation() string + func (item ResultItem) GetItemRelativePath() string + type SpecType string + const AQL + const BUILD + const WILDCARD + type UploadResult struct + FileInfo [][]FileInfo + func NewUploadResult(threads int) *UploadResult