Documentation ¶
Index ¶
- Constants
- func NewBuildInfoPublishService(client *httpclient.HttpClient) *buildInfoPublishService
- type AqlService
- type BuildDistributionBody
- type BuildDistributionParams
- type BuildDistributionParamsImpl
- func (bd *BuildDistributionParamsImpl) GetBuildName() string
- func (bd *BuildDistributionParamsImpl) GetBuildNumber() string
- func (bd *BuildDistributionParamsImpl) GetGpgPassphrase() string
- func (bd *BuildDistributionParamsImpl) GetSourceRepos() string
- func (bd *BuildDistributionParamsImpl) GetTargetRepo() string
- func (bd *BuildDistributionParamsImpl) IsAsync() bool
- func (bd *BuildDistributionParamsImpl) IsOverrideExistingFiles() bool
- func (bd *BuildDistributionParamsImpl) IsPublish() bool
- type BuildPromotionBody
- type DeleteConfiguration
- type DeleteItem
- type DeleteParams
- type DeleteParamsImpl
- type DeleteService
- func (ds *DeleteService) DeleteFiles(deleteItems []DeleteItem, conf utils.CommonConf) (int, error)
- func (ds *DeleteService) GetArtifactoryDetails() auth.ArtifactoryDetails
- func (ds *DeleteService) GetJfrogHttpClient() *httpclient.HttpClient
- 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
- type DiscardBuildsParams
- type DiscardBuildsParamsImpl
- func (bd *DiscardBuildsParamsImpl) GetBuildName() string
- func (bd *DiscardBuildsParamsImpl) GetExcludeBuilds() string
- func (bd *DiscardBuildsParamsImpl) GetMaxBuilds() string
- func (bd *DiscardBuildsParamsImpl) GetMaxDays() string
- func (bd *DiscardBuildsParamsImpl) IsAsync() bool
- func (bd *DiscardBuildsParamsImpl) IsDeleteArtifacts() bool
- type DiscardBuildsService
- type DistributeService
- type DownloadData
- type DownloadParams
- type DownloadParamsImpl
- func (ds *DownloadParamsImpl) GetFile() *utils.ArtifactoryCommonParams
- func (ds *DownloadParamsImpl) GetRetries() int
- func (ds *DownloadParamsImpl) IsExplode() bool
- func (ds *DownloadParamsImpl) IsFlat() bool
- func (ds *DownloadParamsImpl) IsSymlink() bool
- func (ds *DownloadParamsImpl) ValidateSymlinks() bool
- type DownloadService
- func (ds *DownloadService) DownloadFiles(downloadParams DownloadParams) ([]utils.FileInfo, int, error)
- func (ds *DownloadService) GetArtifactoryDetails() auth.ArtifactoryDetails
- func (ds *DownloadService) GetJfrogHttpClient() *httpclient.HttpClient
- 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
- type GitLfsCleanParamsImpl
- type GitLfsCleanService
- func (glc *GitLfsCleanService) GetArtifactoryDetails() auth.ArtifactoryDetails
- func (glc *GitLfsCleanService) GetJfrogHttpClient() *httpclient.HttpClient
- func (glc *GitLfsCleanService) GetUnreferencedGitLfsFiles(gitLfsCleanParams GitLfsCleanParams) ([]utils.ResultItem, error)
- func (glc *GitLfsCleanService) IsDryRun() bool
- func (glc *GitLfsCleanService) SetArtifactoryDetails(art auth.ArtifactoryDetails)
- type MoveCopyParams
- type MoveCopyParamsImpl
- type MoveCopyService
- func (mc *MoveCopyService) GetArtifactoryDetails() auth.ArtifactoryDetails
- func (mc *MoveCopyService) GetJfrogHttpClient() *httpclient.HttpClient
- 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
- type MoveType
- type PingService
- type PromoteService
- type PromotionParams
- type PromotionParamsImpl
- func (bp *PromotionParamsImpl) GetBuildName() string
- func (bp *PromotionParamsImpl) GetBuildNumber() string
- func (bp *PromotionParamsImpl) GetComment() string
- func (bp *PromotionParamsImpl) GetSourceRepo() string
- func (bp *PromotionParamsImpl) GetStatus() string
- func (bp *PromotionParamsImpl) GetTargetRepo() string
- func (bp *PromotionParamsImpl) IsCopy() bool
- func (bp *PromotionParamsImpl) IsIncludeDependencies() bool
- type PropsParams
- type PropsParamsImpl
- type 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
- func (ds *ReadFileService) GetArtifactoryDetails() auth.ArtifactoryDetails
- func (ds *ReadFileService) GetJfrogHttpClient() *httpclient.HttpClient
- 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 SearchService
- func (s *SearchService) GetArtifactoryDetails() auth.ArtifactoryDetails
- func (s *SearchService) GetJfrogHttpClient() *httpclient.HttpClient
- func (s *SearchService) IsDryRun() bool
- func (s *SearchService) Search(searchParams utils.SearchParams) ([]utils.ResultItem, error)
- func (s *SearchService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)
- type UploadData
- type UploadParams
- type UploadParamsImp
- type UploadService
- func (us *UploadService) GetJfrogHttpClient() *httpclient.HttpClient
- func (us *UploadService) SetArtDetails(artDetails auth.ArtifactoryDetails)
- func (us *UploadService) SetDryRun(isDryRun bool)
- func (us *UploadService) SetThread(threads int)
- func (us *UploadService) UploadFiles(uploadParams UploadParams) (artifactsFileInfo []utils.FileInfo, totalUploaded, totalFailed int, err error)
- type XrayScanBody
- type XrayScanParams
- type XrayScanParamsImpl
- type XrayScanService
Constants ¶
View Source
const SCAN_BUILD_API_URL = "api/xray/scanBuild"
View Source
const XRAY_FATAL_FAIL_STATUS = -1
View Source
const XRAY_SCAN_CONNECTION_TIMEOUT = 90 * time.Second // Expecting \r\n every 30 seconds
View Source
const XRAY_SCAN_RETRY_CONSECUTIVE_RETRIES = 10 // Retrying to resume the scan 10 times after a stable connection
View Source
const XRAY_SCAN_SLEEP_BETWEEN_RETRIES = 15 * time.Second // 15 seconds sleep between retry
View Source
const XRAY_SCAN_STABLE_CONNECTION_WINDOW = 100 * time.Second
Variables ¶
This section is empty.
Functions ¶
func NewBuildInfoPublishService ¶
func NewBuildInfoPublishService(client *httpclient.HttpClient) *buildInfoPublishService
Types ¶
type AqlService ¶
type AqlService struct { ArtDetails auth.ArtifactoryDetails // contains filtered or unexported fields }
func NewAqlService ¶
func NewAqlService(client *httpclient.HttpClient) *AqlService
func (*AqlService) GetArtifactoryDetails ¶
func (s *AqlService) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*AqlService) GetJfrogHttpClient ¶
func (s *AqlService) GetJfrogHttpClient() *httpclient.HttpClient
func (*AqlService) IsDryRun ¶
func (s *AqlService) IsDryRun() bool
func (*AqlService) SetArtifactoryDetails ¶
func (s *AqlService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)
type BuildDistributionBody ¶
type BuildDistributionBody struct { SourceRepos []string `json:"sourceRepos,omitempty"` TargetRepo string `json:"targetRepo,omitempty"` GpgPassphrase string `json:"gpgPassphrase,omitempty"` Publish bool `json:"publish"` OverrideExistingFiles bool `json:"overrideExistingFiles,omitempty"` Async bool `json:"async,omitempty"` DryRun bool `json:"dryRun,omitempty"` }
type BuildDistributionParams ¶
type BuildDistributionParamsImpl ¶
type BuildDistributionParamsImpl struct { SourceRepos string TargetRepo string GpgPassphrase string Publish bool OverrideExistingFiles bool Async bool BuildName string BuildNumber string }
func (*BuildDistributionParamsImpl) GetBuildName ¶
func (bd *BuildDistributionParamsImpl) GetBuildName() string
func (*BuildDistributionParamsImpl) GetBuildNumber ¶
func (bd *BuildDistributionParamsImpl) GetBuildNumber() string
func (*BuildDistributionParamsImpl) GetGpgPassphrase ¶
func (bd *BuildDistributionParamsImpl) GetGpgPassphrase() string
func (*BuildDistributionParamsImpl) GetSourceRepos ¶
func (bd *BuildDistributionParamsImpl) GetSourceRepos() string
func (*BuildDistributionParamsImpl) GetTargetRepo ¶
func (bd *BuildDistributionParamsImpl) GetTargetRepo() string
func (*BuildDistributionParamsImpl) IsAsync ¶
func (bd *BuildDistributionParamsImpl) IsAsync() bool
func (*BuildDistributionParamsImpl) IsOverrideExistingFiles ¶
func (bd *BuildDistributionParamsImpl) IsOverrideExistingFiles() bool
func (*BuildDistributionParamsImpl) IsPublish ¶
func (bd *BuildDistributionParamsImpl) IsPublish() bool
type BuildPromotionBody ¶
type BuildPromotionBody struct { Comment string `json:"comment,omitempty"` SourceRepo string `json:"sourceRepo,omitempty"` TargetRepo string `json:"targetRepo,omitempty"` Status string `json:"status,omitempty"` IncludeDependencies bool `json:"dependencies,omitempty"` Copy bool `json:"copy,omitempty"` DryRun bool `json:"dryRun,omitempty"` }
type DeleteConfiguration ¶
type DeleteConfiguration struct { ArtDetails auth.ArtifactoryDetails DryRun bool }
func (*DeleteConfiguration) GetArtifactoryDetails ¶
func (conf *DeleteConfiguration) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*DeleteConfiguration) IsDryRun ¶
func (conf *DeleteConfiguration) IsDryRun() bool
func (*DeleteConfiguration) SetArtifactoryDetails ¶
func (conf *DeleteConfiguration) SetArtifactoryDetails(art auth.ArtifactoryDetails)
type DeleteItem ¶
type DeleteItem interface {
GetItemRelativePath() string
}
type DeleteParams ¶
type DeleteParams interface { utils.FileGetter GetFile() *utils.ArtifactoryCommonParams SetIncludeDirs(includeDirs bool) }
type DeleteParamsImpl ¶
type DeleteParamsImpl struct {
*utils.ArtifactoryCommonParams
}
func (*DeleteParamsImpl) GetFile ¶
func (ds *DeleteParamsImpl) GetFile() *utils.ArtifactoryCommonParams
func (*DeleteParamsImpl) SetIncludeDirs ¶
func (ds *DeleteParamsImpl) SetIncludeDirs(includeDirs bool)
type DeleteService ¶
type DeleteService struct { ArtDetails auth.ArtifactoryDetails DryRun bool // contains filtered or unexported fields }
func NewDeleteService ¶
func NewDeleteService(client *httpclient.HttpClient) *DeleteService
func (*DeleteService) DeleteFiles ¶
func (ds *DeleteService) DeleteFiles(deleteItems []DeleteItem, conf utils.CommonConf) (int, error)
func (*DeleteService) GetArtifactoryDetails ¶
func (ds *DeleteService) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*DeleteService) GetJfrogHttpClient ¶
func (ds *DeleteService) GetJfrogHttpClient() *httpclient.HttpClient
func (*DeleteService) GetPathsToDelete ¶
func (ds *DeleteService) GetPathsToDelete(deleteParams DeleteParams) (resultItems []utils.ResultItem, err error)
func (*DeleteService) IsDryRun ¶
func (ds *DeleteService) IsDryRun() bool
func (*DeleteService) SetArtifactoryDetails ¶
func (ds *DeleteService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)
type DiscardBuildsBody ¶
type DiscardBuildsParams ¶
type DiscardBuildsParamsImpl ¶
type DiscardBuildsParamsImpl struct { DeleteArtifacts bool BuildName string MaxDays string MaxBuilds string ExcludeBuilds string Async bool }
func (*DiscardBuildsParamsImpl) GetBuildName ¶
func (bd *DiscardBuildsParamsImpl) GetBuildName() string
func (*DiscardBuildsParamsImpl) GetExcludeBuilds ¶
func (bd *DiscardBuildsParamsImpl) GetExcludeBuilds() string
func (*DiscardBuildsParamsImpl) GetMaxBuilds ¶
func (bd *DiscardBuildsParamsImpl) GetMaxBuilds() string
func (*DiscardBuildsParamsImpl) GetMaxDays ¶
func (bd *DiscardBuildsParamsImpl) GetMaxDays() string
func (*DiscardBuildsParamsImpl) IsAsync ¶
func (bd *DiscardBuildsParamsImpl) IsAsync() bool
func (*DiscardBuildsParamsImpl) IsDeleteArtifacts ¶
func (bd *DiscardBuildsParamsImpl) IsDeleteArtifacts() bool
type DiscardBuildsService ¶
type DiscardBuildsService struct { ArtDetails auth.ArtifactoryDetails // contains filtered or unexported fields }
func NewDiscardBuildsService ¶
func NewDiscardBuildsService(client *httpclient.HttpClient) *DiscardBuildsService
func (*DiscardBuildsService) DiscardBuilds ¶
func (ds *DiscardBuildsService) DiscardBuilds(params DiscardBuildsParams) error
type DistributeService ¶
type DistributeService struct { ArtDetails auth.ArtifactoryDetails DryRun bool // contains filtered or unexported fields }
func NewDistributionService ¶
func NewDistributionService(client *httpclient.HttpClient) *DistributeService
func (*DistributeService) BuildDistribute ¶
func (ds *DistributeService) BuildDistribute(params BuildDistributionParams) error
type DownloadData ¶
type DownloadData struct { Dependency utils.ResultItem DownloadPath string Target string Flat bool }
type DownloadParams ¶
type DownloadParams interface { utils.FileGetter IsSymlink() bool ValidateSymlinks() bool GetFile() *utils.ArtifactoryCommonParams IsFlat() bool GetRetries() int }
type DownloadParamsImpl ¶
type DownloadParamsImpl struct { *utils.ArtifactoryCommonParams Symlink bool ValidateSymlink bool Flat bool Explode bool Retries int }
func (*DownloadParamsImpl) GetFile ¶
func (ds *DownloadParamsImpl) GetFile() *utils.ArtifactoryCommonParams
func (*DownloadParamsImpl) GetRetries ¶
func (ds *DownloadParamsImpl) GetRetries() int
func (*DownloadParamsImpl) IsExplode ¶
func (ds *DownloadParamsImpl) IsExplode() bool
func (*DownloadParamsImpl) IsFlat ¶
func (ds *DownloadParamsImpl) IsFlat() bool
func (*DownloadParamsImpl) IsSymlink ¶
func (ds *DownloadParamsImpl) IsSymlink() bool
func (*DownloadParamsImpl) ValidateSymlinks ¶
func (ds *DownloadParamsImpl) ValidateSymlinks() bool
type DownloadService ¶
type DownloadService struct { ArtDetails auth.ArtifactoryDetails DryRun bool Threads int MinSplitSize int64 SplitCount int Retries int // contains filtered or unexported fields }
func NewDownloadService ¶
func NewDownloadService(client *httpclient.HttpClient) *DownloadService
func (*DownloadService) DownloadFiles ¶
func (ds *DownloadService) DownloadFiles(downloadParams DownloadParams) ([]utils.FileInfo, int, error)
func (*DownloadService) GetArtifactoryDetails ¶
func (ds *DownloadService) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*DownloadService) GetJfrogHttpClient ¶
func (ds *DownloadService) GetJfrogHttpClient() *httpclient.HttpClient
func (*DownloadService) GetThreads ¶
func (ds *DownloadService) GetThreads() int
func (*DownloadService) IsDryRun ¶
func (ds *DownloadService) IsDryRun() bool
func (*DownloadService) SetArtDetails ¶
func (ds *DownloadService) SetArtDetails(artDetails auth.ArtifactoryDetails)
func (*DownloadService) SetArtifactoryDetails ¶
func (ds *DownloadService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)
func (*DownloadService) SetDryRun ¶
func (ds *DownloadService) SetDryRun(isDryRun bool)
func (*DownloadService) SetThreads ¶
func (ds *DownloadService) SetThreads(threads int)
type GitLfsCleanParams ¶
type GitLfsCleanParamsImpl ¶
func (*GitLfsCleanParamsImpl) GetGitPath ¶
func (glc *GitLfsCleanParamsImpl) GetGitPath() string
func (*GitLfsCleanParamsImpl) GetRef ¶
func (glc *GitLfsCleanParamsImpl) GetRef() string
func (*GitLfsCleanParamsImpl) GetRepo ¶
func (glc *GitLfsCleanParamsImpl) GetRepo() string
type GitLfsCleanService ¶
type GitLfsCleanService struct { ArtDetails auth.ArtifactoryDetails DryRun bool // contains filtered or unexported fields }
func NewGitLfsCleanService ¶
func NewGitLfsCleanService(client *httpclient.HttpClient) *GitLfsCleanService
func (*GitLfsCleanService) GetArtifactoryDetails ¶
func (glc *GitLfsCleanService) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*GitLfsCleanService) GetJfrogHttpClient ¶
func (glc *GitLfsCleanService) GetJfrogHttpClient() *httpclient.HttpClient
func (*GitLfsCleanService) GetUnreferencedGitLfsFiles ¶
func (glc *GitLfsCleanService) GetUnreferencedGitLfsFiles(gitLfsCleanParams GitLfsCleanParams) ([]utils.ResultItem, error)
func (*GitLfsCleanService) IsDryRun ¶
func (glc *GitLfsCleanService) IsDryRun() bool
func (*GitLfsCleanService) SetArtifactoryDetails ¶
func (glc *GitLfsCleanService) SetArtifactoryDetails(art auth.ArtifactoryDetails)
type MoveCopyParams ¶
type MoveCopyParams interface { utils.FileGetter GetFile() *utils.ArtifactoryCommonParams SetIncludeDir(bool) IsFlat() bool }
type MoveCopyParamsImpl ¶
type MoveCopyParamsImpl struct { *utils.ArtifactoryCommonParams Flat bool }
func (*MoveCopyParamsImpl) GetFile ¶
func (mc *MoveCopyParamsImpl) GetFile() *utils.ArtifactoryCommonParams
func (*MoveCopyParamsImpl) IsFlat ¶
func (mc *MoveCopyParamsImpl) IsFlat() bool
func (*MoveCopyParamsImpl) SetIncludeDir ¶
func (mc *MoveCopyParamsImpl) SetIncludeDir(isIncludeDir bool)
type MoveCopyService ¶
type MoveCopyService struct { DryRun bool ArtDetails auth.ArtifactoryDetails // contains filtered or unexported fields }
func NewMoveCopyService ¶
func NewMoveCopyService(client *httpclient.HttpClient, moveType MoveType) *MoveCopyService
func (*MoveCopyService) GetArtifactoryDetails ¶
func (mc *MoveCopyService) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*MoveCopyService) GetJfrogHttpClient ¶
func (mc *MoveCopyService) GetJfrogHttpClient() *httpclient.HttpClient
func (*MoveCopyService) IsDryRun ¶
func (mc *MoveCopyService) IsDryRun() bool
func (*MoveCopyService) MoveCopyServiceMoveFilesWrapper ¶
func (mc *MoveCopyService) MoveCopyServiceMoveFilesWrapper(moveSpec MoveCopyParams) (successCount, failedCount int, err error)
func (*MoveCopyService) SetArtifactoryDetails ¶
func (mc *MoveCopyService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)
type MoveOptions ¶
type PingService ¶
type PingService struct { ArtDetails auth.ArtifactoryDetails // contains filtered or unexported fields }
func NewPingService ¶
func NewPingService(client *httpclient.HttpClient) *PingService
func (*PingService) GetArtifactoryDetails ¶
func (ps *PingService) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*PingService) GetJfrogHttpClient ¶
func (ps *PingService) GetJfrogHttpClient() *httpclient.HttpClient
func (*PingService) IsDryRun ¶
func (ps *PingService) IsDryRun() bool
func (*PingService) Ping ¶
func (ps *PingService) Ping() ([]byte, error)
func (*PingService) SetArtifactoryDetails ¶
func (ps *PingService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)
type PromoteService ¶
type PromoteService struct { ArtDetails auth.ArtifactoryDetails DryRun bool // contains filtered or unexported fields }
func NewPromotionService ¶
func NewPromotionService(client *httpclient.HttpClient) *PromoteService
func (*PromoteService) BuildPromote ¶
func (ps *PromoteService) BuildPromote(promotionParams PromotionParams) error
type PromotionParams ¶
type PromotionParamsImpl ¶
type PromotionParamsImpl struct { BuildName string BuildNumber string TargetRepo string Status string Comment string Copy bool IncludeDependencies bool SourceRepo string }
func (*PromotionParamsImpl) GetBuildName ¶
func (bp *PromotionParamsImpl) GetBuildName() string
func (*PromotionParamsImpl) GetBuildNumber ¶
func (bp *PromotionParamsImpl) GetBuildNumber() string
func (*PromotionParamsImpl) GetComment ¶
func (bp *PromotionParamsImpl) GetComment() string
func (*PromotionParamsImpl) GetSourceRepo ¶
func (bp *PromotionParamsImpl) GetSourceRepo() string
func (*PromotionParamsImpl) GetStatus ¶
func (bp *PromotionParamsImpl) GetStatus() string
func (*PromotionParamsImpl) GetTargetRepo ¶
func (bp *PromotionParamsImpl) GetTargetRepo() string
func (*PromotionParamsImpl) IsCopy ¶
func (bp *PromotionParamsImpl) IsCopy() bool
func (*PromotionParamsImpl) IsIncludeDependencies ¶
func (bp *PromotionParamsImpl) IsIncludeDependencies() bool
type PropsParams ¶
type PropsParams interface { GetItems() []utils.ResultItem GetProps() string }
type PropsParamsImpl ¶
type PropsParamsImpl struct { Items []utils.ResultItem Props string }
func (*PropsParamsImpl) GetItems ¶
func (sp *PropsParamsImpl) GetItems() []utils.ResultItem
func (*PropsParamsImpl) GetProps ¶
func (sp *PropsParamsImpl) GetProps() string
type PropsService ¶
type PropsService struct { ArtDetails auth.ArtifactoryDetails Threads int // contains filtered or unexported fields }
func NewPropsService ¶
func NewPropsService(client *httpclient.HttpClient) *PropsService
func (*PropsService) DeleteProps ¶
func (ps *PropsService) DeleteProps(propsParams PropsParams) (int, error)
func (*PropsService) GetArtifactoryDetails ¶
func (ps *PropsService) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*PropsService) GetThreads ¶
func (ps *PropsService) GetThreads() int
func (*PropsService) IsDryRun ¶
func (ps *PropsService) IsDryRun() bool
func (*PropsService) SetArtifactoryDetails ¶
func (ps *PropsService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)
func (*PropsService) SetProps ¶
func (ps *PropsService) SetProps(propsParams PropsParams) (int, error)
type ReadFileService ¶
type ReadFileService struct { ArtDetails auth.ArtifactoryDetails DryRun bool MinSplitSize int64 SplitCount int Retries int // contains filtered or unexported fields }
func NewReadFileService ¶
func NewReadFileService(client *httpclient.HttpClient) *ReadFileService
func (*ReadFileService) GetArtifactoryDetails ¶
func (ds *ReadFileService) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*ReadFileService) GetJfrogHttpClient ¶
func (ds *ReadFileService) GetJfrogHttpClient() *httpclient.HttpClient
func (*ReadFileService) IsDryRun ¶
func (ds *ReadFileService) IsDryRun() bool
func (*ReadFileService) ReadRemoteFile ¶
func (ds *ReadFileService) ReadRemoteFile(downloadPath string) (io.ReadCloser, error)
func (*ReadFileService) SetArtDetails ¶
func (ds *ReadFileService) SetArtDetails(artDetails auth.ArtifactoryDetails)
func (*ReadFileService) SetArtifactoryDetails ¶
func (ds *ReadFileService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)
func (*ReadFileService) SetDryRun ¶
func (ds *ReadFileService) SetDryRun(isDryRun bool)
type SearchService ¶
type SearchService struct { ArtDetails auth.ArtifactoryDetails // contains filtered or unexported fields }
func NewSearchService ¶
func NewSearchService(client *httpclient.HttpClient) *SearchService
func (*SearchService) GetArtifactoryDetails ¶
func (s *SearchService) GetArtifactoryDetails() auth.ArtifactoryDetails
func (*SearchService) GetJfrogHttpClient ¶
func (s *SearchService) GetJfrogHttpClient() *httpclient.HttpClient
func (*SearchService) IsDryRun ¶
func (s *SearchService) IsDryRun() bool
func (*SearchService) Search ¶
func (s *SearchService) Search(searchParams utils.SearchParams) ([]utils.ResultItem, error)
func (*SearchService) SetArtifactoryDetails ¶
func (s *SearchService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)
type UploadData ¶
type UploadData struct { Artifact clientutils.Artifact Props string IsDir bool }
type UploadParams ¶
type UploadParamsImp ¶
type UploadParamsImp struct { *utils.ArtifactoryCommonParams Deb string Symlink bool ExplodeArchive bool Flat bool Retries int }
func (*UploadParamsImp) GetDebian ¶
func (up *UploadParamsImp) GetDebian() string
func (*UploadParamsImp) GetRetries ¶
func (up *UploadParamsImp) GetRetries() int
func (*UploadParamsImp) IsExplodeArchive ¶
func (up *UploadParamsImp) IsExplodeArchive() bool
func (*UploadParamsImp) IsFlat ¶
func (up *UploadParamsImp) IsFlat() bool
func (*UploadParamsImp) IsSymlink ¶
func (up *UploadParamsImp) IsSymlink() bool
type UploadService ¶
type UploadService struct { ArtDetails auth.ArtifactoryDetails DryRun bool Threads int MinChecksumDeploy int64 Retries int // contains filtered or unexported fields }
func NewUploadService ¶
func NewUploadService(client *httpclient.HttpClient) *UploadService
func (*UploadService) GetJfrogHttpClient ¶
func (us *UploadService) GetJfrogHttpClient() *httpclient.HttpClient
func (*UploadService) SetArtDetails ¶
func (us *UploadService) SetArtDetails(artDetails auth.ArtifactoryDetails)
func (*UploadService) SetDryRun ¶
func (us *UploadService) SetDryRun(isDryRun bool)
func (*UploadService) SetThread ¶
func (us *UploadService) SetThread(threads int)
func (*UploadService) UploadFiles ¶
func (us *UploadService) UploadFiles(uploadParams UploadParams) (artifactsFileInfo []utils.FileInfo, totalUploaded, totalFailed int, err error)
type XrayScanBody ¶
type XrayScanParams ¶
type XrayScanParamsImpl ¶
func (*XrayScanParamsImpl) GetBuildName ¶
func (bp *XrayScanParamsImpl) GetBuildName() string
func (*XrayScanParamsImpl) GetBuildNumber ¶
func (bp *XrayScanParamsImpl) GetBuildNumber() string
type XrayScanService ¶
type XrayScanService struct { ArtDetails auth.ArtifactoryDetails // contains filtered or unexported fields }
func NewXrayScanService ¶
func NewXrayScanService(client *httpclient.HttpClient) *XrayScanService
func (*XrayScanService) ScanBuild ¶
func (ps *XrayScanService) ScanBuild(scanParams XrayScanParams) ([]byte, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.