Versions in this module Expand all Collapse all v0 v0.6.4 Dec 23, 2019 Changes in this version type UploadParams + AddVcsProps bool + func (up *UploadParams) IsAddVcsProps() bool v0.6.0 Dec 3, 2019 Changes in this version + const SCAN_BUILD_API_URL + const XRAY_FATAL_FAIL_STATUS + const XRAY_SCAN_CONNECTION_TIMEOUT + const XRAY_SCAN_RETRY_CONSECUTIVE_RETRIES + const XRAY_SCAN_SLEEP_BETWEEN_RETRIES + const XRAY_SCAN_STABLE_CONNECTION_WINDOW + func SearchBySpecFiles(searchParams SearchParams, flags utils.CommonConf, ...) ([]utils.ResultItem, error) + type AqlService struct + ArtDetails auth.ArtifactoryDetails + func NewAqlService(client *rthttpclient.ArtifactoryHttpClient) *AqlService + func (s *AqlService) ExecAql(aql string) ([]byte, error) + func (s *AqlService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (s *AqlService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (s *AqlService) IsDryRun() bool + func (s *AqlService) SetArtifactoryDetails(rt auth.ArtifactoryDetails) + type BuildDistributionBody struct + Async bool + DryRun bool + GpgPassphrase string + OverrideExistingFiles bool + Publish bool + SourceRepos []string + TargetRepo string + type BuildDistributionParams struct + Async bool + BuildName string + BuildNumber string + GpgPassphrase string + OverrideExistingFiles bool + Publish bool + SourceRepos string + TargetRepo string + func NewBuildDistributionParams() BuildDistributionParams + func (bd *BuildDistributionParams) GetBuildName() string + func (bd *BuildDistributionParams) GetBuildNumber() string + func (bd *BuildDistributionParams) GetGpgPassphrase() string + func (bd *BuildDistributionParams) GetSourceRepos() string + func (bd *BuildDistributionParams) GetTargetRepo() string + func (bd *BuildDistributionParams) IsAsync() bool + func (bd *BuildDistributionParams) IsOverrideExistingFiles() bool + func (bd *BuildDistributionParams) IsPublish() bool + type BuildInfoParams struct + BuildName string + BuildNumber string + func NewBuildInfoParams() BuildInfoParams + type BuildInfoService struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + func NewBuildInfoService(client *rthttpclient.ArtifactoryHttpClient) *BuildInfoService + func (bis *BuildInfoService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (bis *BuildInfoService) GetBuildInfo(params BuildInfoParams) (*buildinfo.BuildInfo, error) + func (bis *BuildInfoService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (bis *BuildInfoService) IsDryRun() bool + func (bis *BuildInfoService) PublishBuildInfo(build *buildinfo.BuildInfo) error + func (bis *BuildInfoService) SetArtifactoryDetails(rt auth.ArtifactoryDetails) + type BuildPromotionBody struct + Comment string + Copy bool + DryRun bool + IncludeDependencies bool + Properties map[string][]string + SourceRepo string + Status string + TargetRepo string + type DeleteConfiguration struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + func (conf *DeleteConfiguration) GetArtifactoryDetails() auth.ArtifactoryDetails + func (conf *DeleteConfiguration) IsDryRun() bool + func (conf *DeleteConfiguration) SetArtifactoryDetails(art auth.ArtifactoryDetails) + type DeleteParams struct + func NewDeleteParams() DeleteParams + func (ds *DeleteParams) GetFile() *utils.ArtifactoryCommonParams + func (ds *DeleteParams) SetIncludeDirs(includeDirs bool) + type DeleteService struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + func NewDeleteService(client *rthttpclient.ArtifactoryHttpClient) *DeleteService + func (ds *DeleteService) DeleteFiles(deleteItems []utils.ResultItem) (int, error) + func (ds *DeleteService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (ds *DeleteService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (ds *DeleteService) GetPathsToDelete(deleteParams DeleteParams) (resultItems []utils.ResultItem, err error) + func (ds *DeleteService) IsDryRun() bool + func (ds *DeleteService) SetArtifactoryDetails(rt auth.ArtifactoryDetails) + type DiscardBuildsBody struct + DeleteArtifacts bool + ExcludeBuilds []string + MaxBuilds string + MinimumBuildDate string + type DiscardBuildsParams struct + Async bool + BuildName string + DeleteArtifacts bool + ExcludeBuilds string + MaxBuilds string + MaxDays string + func NewDiscardBuildsParams() DiscardBuildsParams + func (bd *DiscardBuildsParams) GetBuildName() string + func (bd *DiscardBuildsParams) GetExcludeBuilds() string + func (bd *DiscardBuildsParams) GetMaxBuilds() string + func (bd *DiscardBuildsParams) GetMaxDays() string + func (bd *DiscardBuildsParams) IsAsync() bool + func (bd *DiscardBuildsParams) IsDeleteArtifacts() bool + type DiscardBuildsService struct + ArtDetails auth.ArtifactoryDetails + func NewDiscardBuildsService(client *rthttpclient.ArtifactoryHttpClient) *DiscardBuildsService + func (ds *DiscardBuildsService) DiscardBuilds(params DiscardBuildsParams) error + type DistributeService struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + func NewDistributionService(client *rthttpclient.ArtifactoryHttpClient) *DistributeService + func (ds *DistributeService) BuildDistribute(params BuildDistributionParams) error + type DownloadData struct + Dependency utils.ResultItem + DownloadPath string + Flat bool + Target string + type DownloadParams struct + Explode bool + Flat bool + MinSplitSize int64 + Retries int + SplitCount int + Symlink bool + ValidateSymlink bool + func NewDownloadParams() DownloadParams + func (ds *DownloadParams) GetFile() *utils.ArtifactoryCommonParams + func (ds *DownloadParams) GetRetries() int + func (ds *DownloadParams) IsExplode() bool + func (ds *DownloadParams) IsFlat() bool + func (ds *DownloadParams) IsSymlink() bool + func (ds *DownloadParams) ValidateSymlinks() bool + type DownloadService struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + Progress io.Progress + Threads int + func NewDownloadService(client *rthttpclient.ArtifactoryHttpClient) *DownloadService + func (ds *DownloadService) DownloadFiles(downloadParams ...DownloadParams) ([]utils.FileInfo, int, error) + func (ds *DownloadService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (ds *DownloadService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (ds *DownloadService) GetThreads() int + func (ds *DownloadService) IsDryRun() bool + func (ds *DownloadService) SetArtDetails(artDetails auth.ArtifactoryDetails) + func (ds *DownloadService) SetArtifactoryDetails(rt auth.ArtifactoryDetails) + func (ds *DownloadService) SetDryRun(isDryRun bool) + func (ds *DownloadService) SetThreads(threads int) + type GitLfsCleanParams struct + GitPath string + Refs string + Repo string + func NewGitLfsCleanParams() GitLfsCleanParams + func (glc *GitLfsCleanParams) GetGitPath() string + func (glc *GitLfsCleanParams) GetRef() string + func (glc *GitLfsCleanParams) GetRepo() string + type GitLfsCleanService struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + func NewGitLfsCleanService(client *rthttpclient.ArtifactoryHttpClient) *GitLfsCleanService + func (glc *GitLfsCleanService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (glc *GitLfsCleanService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (glc *GitLfsCleanService) GetUnreferencedGitLfsFiles(gitLfsCleanParams GitLfsCleanParams) ([]utils.ResultItem, error) + func (glc *GitLfsCleanService) IsDryRun() bool + func (glc *GitLfsCleanService) SetArtifactoryDetails(art auth.ArtifactoryDetails) + type MoveCopyParams struct + Flat bool + func NewMoveCopyParams() MoveCopyParams + func (mc *MoveCopyParams) GetFile() *utils.ArtifactoryCommonParams + func (mc *MoveCopyParams) IsFlat() bool + func (mc *MoveCopyParams) SetIncludeDir(isIncludeDir bool) + type MoveCopyService struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + func NewMoveCopyService(client *rthttpclient.ArtifactoryHttpClient, moveType MoveType) *MoveCopyService + func (mc *MoveCopyService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (mc *MoveCopyService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (mc *MoveCopyService) IsDryRun() bool + func (mc *MoveCopyService) MoveCopyServiceMoveFilesWrapper(moveSpec MoveCopyParams) (successCount, failedCount int, err error) + func (mc *MoveCopyService) SetArtifactoryDetails(rt auth.ArtifactoryDetails) + type MoveOptions struct + MovedMsg string + MovingMsg string + type MoveType string + const COPY + const MOVE + type PingService struct + ArtDetails auth.ArtifactoryDetails + func NewPingService(client *rthttpclient.ArtifactoryHttpClient) *PingService + func (ps *PingService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (ps *PingService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (ps *PingService) IsDryRun() bool + func (ps *PingService) Ping() ([]byte, error) + func (ps *PingService) SetArtifactoryDetails(rt auth.ArtifactoryDetails) + type PromoteService struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + func NewPromotionService(client *rthttpclient.ArtifactoryHttpClient) *PromoteService + func (ps *PromoteService) BuildPromote(promotionParams PromotionParams) error + type PromotionParams struct + BuildName string + BuildNumber string + Comment string + Copy bool + IncludeDependencies bool + Properties string + SourceRepo string + Status string + TargetRepo string + func NewPromotionParams() PromotionParams + func (bp *PromotionParams) GetBuildName() string + func (bp *PromotionParams) GetBuildNumber() string + func (bp *PromotionParams) GetComment() string + func (bp *PromotionParams) GetProperties() string + func (bp *PromotionParams) GetSourceRepo() string + func (bp *PromotionParams) GetStatus() string + func (bp *PromotionParams) GetTargetRepo() string + func (bp *PromotionParams) IsCopy() bool + func (bp *PromotionParams) IsIncludeDependencies() bool + type PropsParams struct + Items []utils.ResultItem + Props string + func NewPropsParams() PropsParams + func (sp *PropsParams) GetItems() []utils.ResultItem + func (sp *PropsParams) GetProps() string + type PropsService struct + ArtDetails auth.ArtifactoryDetails + Threads int + func NewPropsService(client *rthttpclient.ArtifactoryHttpClient) *PropsService + func (ps *PropsService) DeleteProps(propsParams PropsParams) (int, error) + func (ps *PropsService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (ps *PropsService) GetThreads() int + func (ps *PropsService) IsDryRun() bool + func (ps *PropsService) SetArtifactoryDetails(rt auth.ArtifactoryDetails) + func (ps *PropsService) SetProps(propsParams PropsParams) (int, error) + type ReadFileService struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + MinSplitSize int64 + SplitCount int + func NewReadFileService(client *rthttpclient.ArtifactoryHttpClient) *ReadFileService + func (ds *ReadFileService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (ds *ReadFileService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (ds *ReadFileService) IsDryRun() bool + func (ds *ReadFileService) ReadRemoteFile(downloadPath string) (io.ReadCloser, error) + func (ds *ReadFileService) SetArtDetails(artDetails auth.ArtifactoryDetails) + func (ds *ReadFileService) SetArtifactoryDetails(rt auth.ArtifactoryDetails) + func (ds *ReadFileService) SetDryRun(isDryRun bool) + type SearchParams struct + func NewSearchParams() SearchParams + func (s *SearchParams) GetFile() *utils.ArtifactoryCommonParams + type SearchService struct + ArtDetails auth.ArtifactoryDetails + func NewSearchService(client *rthttpclient.ArtifactoryHttpClient) *SearchService + func (s *SearchService) GetArtifactoryDetails() auth.ArtifactoryDetails + func (s *SearchService) GetJfrogHttpClient() (*rthttpclient.ArtifactoryHttpClient, error) + func (s *SearchService) IsDryRun() bool + func (s *SearchService) Search(searchParams SearchParams) ([]utils.ResultItem, error) + func (s *SearchService) SetArtifactoryDetails(rt auth.ArtifactoryDetails) + type UploadData struct + Artifact clientutils.Artifact + IsDir bool + Props string + type UploadParams struct + Deb string + ExplodeArchive bool + Flat bool + MinChecksumDeploy int64 + Retries int + Symlink bool + func NewUploadParams() UploadParams + func (up *UploadParams) GetDebian() string + func (up *UploadParams) GetRetries() int + func (up *UploadParams) IsExplodeArchive() bool + func (up *UploadParams) IsFlat() bool + func (up *UploadParams) IsSymlink() bool + type UploadService struct + ArtDetails auth.ArtifactoryDetails + DryRun bool + Progress ioutils.Progress + Threads int + func NewUploadService(client *rthttpclient.ArtifactoryHttpClient) *UploadService + func (us *UploadService) GetJfrogHttpClient() *rthttpclient.ArtifactoryHttpClient + func (us *UploadService) SetArtDetails(artDetails auth.ArtifactoryDetails) + func (us *UploadService) SetDryRun(isDryRun bool) + func (us *UploadService) SetThreads(threads int) + func (us *UploadService) UploadFiles(uploadParams ...UploadParams) (artifactsFileInfo []utils.FileInfo, totalUploaded, totalFailed int, err error) + type XrayScanBody struct + BuildName string + BuildNumber string + Context string + type XrayScanParams struct + BuildName string + BuildNumber string + func NewXrayScanParams() XrayScanParams + func (bp *XrayScanParams) GetBuildName() string + func (bp *XrayScanParams) GetBuildNumber() string + type XrayScanService struct + ArtDetails auth.ArtifactoryDetails + func NewXrayScanService(client *rthttpclient.ArtifactoryHttpClient) *XrayScanService + func (ps *XrayScanService) ScanBuild(scanParams XrayScanParams) ([]byte, error)