Versions in this module Expand all Collapse all v1 v1.41.2-prerelease7 Jul 23, 2024 v1.41.2-prerelease6 Jul 23, 2024 v1.41.2-prerelease5 Jul 23, 2024 v1.41.2-prerelease4 Jul 23, 2024 v1.41.2-prerelease3 Jul 18, 2024 v1.41.2-prerelease2p Jul 18, 2024 v1.41.2-prerelease Jul 18, 2024 v1.41.1 Jun 6, 2024 v1.41.0 Jun 6, 2024 Changes in this version + const ArtifactorySymlink + const DefaultUploadChunkSize + const LatestBuildNumberKey + const MaxMultipartUploadFileSize + const SizeGiB + const SizeKib + const SizeMiB + const SizeTiB + const SymlinkSha1 + 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 AddSigningKeyNameHeader(keyName string, headers *map[string]string) + func BuildQueryFromSpecFile(specFile *CommonParams, requiredArtifactProps RequiredArtifactProps) string + func ConvertArtifactsDetailsToBuildInfoArtifacts(artifactsDetailsReader *content.ContentReader) ([]buildinfo.Artifact, error) + func ConvertArtifactsDetailsToBuildInfoDependencies(artifactsDetailsReader *content.ContentReader) ([]buildinfo.Dependency, error) + func ConvertIntToStorageSizeString(num int64) string + func CreateAqlBodyForSpecWithPattern(params *CommonParams) (string, error) + func CreateAqlQueryForBuildInfoJson(project, buildName, buildNumber, timestamp string) string + func CreateAqlQueryForLatestCreated(repo, path string) string + func CreateAqlQueryForPypi(repo, file string) string + func CreateAqlQueryForYarn(npmName, npmVersion string) string + func DisableAccelBuffering(headers *map[string]string) + func DisableTransitiveSearchIfNotAllowed(params *CommonParams, artifactoryVersion *version.Version) + func ExecAql(aqlQuery string, flags CommonConf) (io.ReadCloser, error) + func ExecAqlSaveToFile(aqlQuery string, flags CommonConf) (reader *content.ContentReader, err error) + func FilterBottomChainResults(readerRecord SearchBasedContentItem, reader *content.ContentReader) (resultReader *content.ContentReader, err error) + func FilterCandidateToBeDeleted(deleteCandidates *content.ContentReader, resultWriter *content.ContentWriter, ...) ([]*content.ContentReader, error) + func FilterResultsByBuild(specFile *CommonParams, flags CommonConf, ...) (*content.ContentReader, error) + func FilterTopChainResults(readerRecord SearchBasedContentItem, reader *content.ContentReader) (resultReader *content.ContentReader, err error) + func GetBuildInfo(buildName, buildNumber, projectKey string, flags CommonConf) (pbi *buildinfo.PublishedBuildInfo, found bool, err error) + func GetBuildInfoRepositoryByProject(projectKey string) string + func GetBuildNameAndNumberFromArtifactory(buildName, buildNumber, projectKey string, flags CommonConf) (string, string, error) + func GetBuildNameAndNumberFromBuildIdentifier(buildIdentifier, projectKey string, flags CommonConf) (string, string, error) + func GetLatestBuildNumberFromArtifactory(buildName, projectKey string, flags CommonConf) (buildNumber string, err error) + func GetProjectQueryParam(projectKey string) string + func GetTestResourcesPath() string + func HasPrefix(paths []string, prefix string) bool + func IsSubPath(paths []string, index int, separator string) bool + func IsWildcardPattern(pattern string) bool + func LogSearchResults(numOfArtifacts int) + func ParseNameAndVersion(identifier string, useLatestPolicy bool) (string, string, error) + func ReduceBottomChainDirResult(readerRecord SearchBasedContentItem, searchResults *content.ContentReader) (*content.ContentReader, error) + func ReduceDirResult(readerRecord SearchBasedContentItem, searchResults *content.ContentReader, ...) (reader *content.ContentReader, err error) + func ReduceTopChainDirResult(readerRecord SearchBasedContentItem, searchResults *content.ContentReader) (*content.ContentReader, error) + func SearchBySpecWithAql(specFile *CommonParams, flags CommonConf, ...) (reader *content.ContentReader, err error) + func SearchBySpecWithBuild(specFile *CommonParams, flags CommonConf) (readerContent *content.ContentReader, err error) + func SearchBySpecWithPattern(specFile *CommonParams, flags CommonConf, ...) (*content.ContentReader, error) + func SetContentType(contentType string, headers *map[string]string) + func SumIntArray(arr []int) int + func UploadFile(localPath, url, logMsgPrefix string, artifactoryDetails *auth.ServiceDetails, ...) (*http.Response, []byte, error) + func UploadFileFromReader(reader io.Reader, url 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(SearchBasedContentItem, *content.ContentReader) (*content.ContentReader, error) + type ArtifactDetails struct + ArtifactoryPath string + Checksums buildinfo.Checksum + func (ad *ArtifactDetails) ToBuildInfoArtifact() (buildinfo.Artifact, error) + func (ad *ArtifactDetails) ToBuildInfoDependency() buildinfo.Dependency + type BinariesSummary struct + ArtifactsCount string + ArtifactsSize string + BinariesCount string + BinariesSize string + ItemsCount string + Optimization string + type Build struct + BuildName string + BuildNumber string + type BundleReleaseNotes struct + Content string + Syntax string + type CommonConf interface + GetArtifactoryDetails func() auth.ServiceDetails + GetJfrogHttpClient func() *jfroghttpclient.JfrogHttpClient + func NewCommonConfImpl(artDetails auth.ServiceDetails) (CommonConf, error) + type CommonConfImpl struct + func (flags *CommonConfImpl) GetArtifactoryDetails() auth.ServiceDetails + func (flags *CommonConfImpl) GetJfrogHttpClient() *jfroghttpclient.JfrogHttpClient + type CommonParams struct + Ant bool + Aql Aql + ArchiveEntries string + Build string + Bundle string + ExcludeArtifacts bool + ExcludeProps string + Exclusions []string + Include []string + IncludeDeps bool + IncludeDirs bool + Limit int + Offset int + PathMapping PathMapping + Pattern string + Project string + Props string + Recursive bool + Regexp bool + SortBy []string + SortOrder string + Target string + TargetProps *Properties + Transitive bool + func (params *CommonParams) GetAql() Aql + func (params *CommonParams) GetBuild() string + func (params *CommonParams) GetBundle() string + func (params *CommonParams) GetExcludeProps() string + func (params *CommonParams) GetExclusions() []string + func (params *CommonParams) GetLimit() int + func (params *CommonParams) GetOffset() int + func (params *CommonParams) GetPattern() string + func (params *CommonParams) GetPatternType() clientutils.PatternType + func (params *CommonParams) GetProject() string + func (params *CommonParams) GetProps() string + func (params *CommonParams) GetSortBy() []string + func (params *CommonParams) GetSortOrder() string + func (params *CommonParams) GetTarget() string + func (params *CommonParams) GetTargetProps() *Properties + func (params *CommonParams) IsExplode() bool + func (params *CommonParams) IsRecursive() bool + func (params *CommonParams) SetArchiveEntries(archiveEntries string) + func (params *CommonParams) SetExcludeProps(excludeProps string) + func (params *CommonParams) SetPattern(pattern string) + func (params *CommonParams) SetProps(props string) + func (params *CommonParams) SetTarget(target string) + func (params *CommonParams) SetTargetProps(targetProps *Properties) + func (params CommonParams) GetArchiveEntries() string + func (params CommonParams) GetSpecType() (specType SpecType) + func (params CommonParams) IsIncludeDirs() bool + type FileGetter interface + GetAql func() Aql + GetArchiveEntries func() string + GetBuild func() string + GetBundle func() string + GetExclusions func() []string + GetLimit func() int + GetOffset func() int + GetPattern func() string + GetPatternType func() clientutils.PatternType + GetProject 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 + SetArchiveEntries func(archiveEntries string) + SetPattern func(pattern string) + SetTarget func(target string) + type FileInfo struct + Checksums struct{ ... } + Created string + CreatedBy string + DownloadUri string + LastModified string + LastUpdated string + MimeType string + ModifiedBy string + Path string + RemoteUrl string + Repo string + Size string + Uri string + type FileListFile struct + Folder bool + LastModified string + MetadataTimestamps MetadataTimestamps + Sha1 string + Sha2 string + Size json.Number + Uri string + type FileListParams struct + Deep bool + Depth int + IncludeRootPath bool + ListFolders bool + MetadataTimestamps bool + func NewFileListParams() FileListParams + type FileListResponse struct + Created string + Files []FileListFile + Uri string + type FileStoreSummary struct + FreeSpace string + StorageDirectory string + StorageType string + TotalSpace string + UsedSpace string + type FolderInfo struct + Children []FolderInfoChildren + Created string + CreatedBy string + LastModified string + LastUpdated string + ModifiedBy string + Path string + Repo string + Uri string + type FolderInfoChildren struct + Folder bool + Uri string + type GetReplicationBody struct + ProxyRef string + type ItemProperties struct + Properties map[string][]string + Uri string + type MetadataTimestamps struct + Properties string + type MultipartUpload struct + func NewMultipartUpload(client *jfroghttpclient.JfrogHttpClient, ...) *MultipartUpload + func (mu *MultipartUpload) IsSupported(serviceDetails auth.ServiceDetails) (supported bool, err error) + func (mu *MultipartUpload) UploadFileConcurrently(localPath, targetPath string, fileSize int64, sha1 string, ...) (err error) + type OperationSummary struct + ArtifactsDetailsReader *content.ContentReader + TotalFailed int + TotalSucceeded int + TransferDetailsReader *content.ContentReader + func (cs *OperationSummary) Close() error + type PathMapping struct + Input string + Output string + type Properties struct + func MergeProperties(properties []*Properties) *Properties + func NewProperties() *Properties + func ParseProperties(propStr string) (*Properties, error) + func (props *Properties) AddProperty(key, value string) + func (props *Properties) KeysLen() int + func (props *Properties) ParseAndAddProperties(propStr string) error + func (props *Properties) ToEncodedString(concatValues bool) string + func (props *Properties) ToHeadersMap() map[string]string + func (props *Properties) ToMap() map[string][]string + type Property struct + Key string + Value string + type RbGpgValidator struct + func NewRbGpgValidator() *RbGpgValidator + func (r *RbGpgValidator) ArtifactsMap() map[string]string + func (r *RbGpgValidator) SetAtrifactoryDetails(artDetails *auth.ServiceDetails) *RbGpgValidator + func (r *RbGpgValidator) SetClient(client *jfroghttpclient.JfrogHttpClient) *RbGpgValidator + func (r *RbGpgValidator) SetPublicKey(path string) *RbGpgValidator + func (r *RbGpgValidator) SetRbName(rbName string) *RbGpgValidator + func (r *RbGpgValidator) SetRbVersion(rbVersion string) *RbGpgValidator + func (r *RbGpgValidator) Validate() error + func (r *RbGpgValidator) VerifyArtifact(artifactPath, sha256 string) error + type ReleaseArtifact struct + Checksum string + DownloadToken string + RepoPath string + type ReleaseBundleModel struct + Artifacts []*ReleaseArtifact + Created string + Description string + Id string + Name string + ReleaseNotes *BundleReleaseNotes + Signature string + Type string + Version string + func (rbm *ReleaseBundleModel) GetOrCalculateId() string + func (rbm *ReleaseBundleModel) Valid() error + type ReplicationParams struct + CronExp string + EnableEventReplication bool + Enabled bool + IncludePathPrefixPattern string + Password string + PathPrefix string + Proxy string + RepoKey string + SocketTimeoutMillis int + SyncDeletes bool + SyncProperties bool + SyncStatistics bool + Url string + Username string + func CreateReplicationParams(body GetReplicationBody) *ReplicationParams + type RepoPathFile struct + type RepositorySummary struct + FilesCount json.Number + FoldersCount json.Number + ItemsCount json.Number + PackageType string + Percentage string + ProjectKey string + RepoKey string + RepoType string + UsedSpace string + UsedSpaceInBytes json.Number + 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 + CreatedBy string + Depth int + Modified string + ModifiedBy string + Name string + OriginalMd5 string + Path string + Properties []Property + Repo string + Sha256 string + Size int64 + Stats []Stat + Type string + Updated string + func (item *ResultItem) GetProperty(key string) string + func (item *ResultItem) ToArtifact() buildinfo.Artifact + func (item *ResultItem) ToDependency() buildinfo.Dependency + func (item ResultItem) GetItemRelativeLocation() string + func (item ResultItem) GetItemRelativePath() string + func (item ResultItem) GetName() string + func (item ResultItem) GetSortKey() string + func (item ResultItem) GetType() string + type SearchBasedContentItem interface + GetItemRelativePath func() string + GetName func() string + GetType func() string + type SpecType string + const AQL + const BUILD + const WILDCARD + type Stat struct + Downloaded string + DownloadedBy string + Downloads json.Number + RemoteDownloads json.Number + type StorageInfo struct + RepositoriesSummaryList []RepositorySummary + func (si *StorageInfo) FindRepositoryWithKey(key string) (*RepositorySummary, error) + type UpdateReplicationBody struct + Proxy string + func CreateUpdateReplicationBody(params ReplicationParams) *UpdateReplicationBody