Documentation ¶
Index ¶
- func CreatePathMappings(input, output string) []utils.PathMapping
- func CreatePathMappingsFromPatternAndTarget(pattern, target string) []utils.PathMapping
- func DoDistribute(dr DistributeReleaseBundleExecutor) (trackerId json.Number, err error)
- func GetProjectQueryParam(projectKey string) map[string]string
- type DistributeReleaseBundleExecutor
- type DistributionCommonParams
- func (params *DistributionCommonParams) GetCityName() string
- func (params *DistributionCommonParams) GetCountryCodes() []string
- func (params *DistributionCommonParams) GetSiteName() string
- func (params *DistributionCommonParams) SetCityName(cityName string)
- func (params *DistributionCommonParams) SetCountryCodes(countryCodes []string)
- func (params *DistributionCommonParams) SetSiteName(siteName string)
- type DistributionGetter
- type DistributionParams
- type DistributionResponseBody
- type DistributionRulesBody
- type DistributionSiteStatus
- type DistributionStatus
- type DistributionStatusResponse
- type DistributionType
- type ReleaseBundleDistributeV1Body
- type TargetArtifactory
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePathMappings ¶
func CreatePathMappings(input, output string) []utils.PathMapping
Create the path mapping from the input spec
func CreatePathMappingsFromPatternAndTarget ¶
func CreatePathMappingsFromPatternAndTarget(pattern, target string) []utils.PathMapping
Create the path mapping from the input spec which includes pattern and target
func DoDistribute ¶
func DoDistribute(dr DistributeReleaseBundleExecutor) (trackerId json.Number, err error)
func GetProjectQueryParam ¶
Types ¶
type DistributeReleaseBundleExecutor ¶
type DistributeReleaseBundleExecutor interface { GetHttpClient() *jfroghttpclient.JfrogHttpClient ServiceDetails() auth.ServiceDetails IsDryRun() bool GetRestApi(name, version string) string GetDistributeBody() any GetDistributionParams() DistributionParams GetProjectKey() string }
type DistributionCommonParams ¶
func (*DistributionCommonParams) GetCityName ¶
func (params *DistributionCommonParams) GetCityName() string
func (*DistributionCommonParams) GetCountryCodes ¶
func (params *DistributionCommonParams) GetCountryCodes() []string
func (*DistributionCommonParams) GetSiteName ¶
func (params *DistributionCommonParams) GetSiteName() string
func (*DistributionCommonParams) SetCityName ¶
func (params *DistributionCommonParams) SetCityName(cityName string)
func (*DistributionCommonParams) SetCountryCodes ¶
func (params *DistributionCommonParams) SetCountryCodes(countryCodes []string)
func (*DistributionCommonParams) SetSiteName ¶
func (params *DistributionCommonParams) SetSiteName(siteName string)
type DistributionGetter ¶
type DistributionParams ¶
type DistributionParams struct { DistributionRules []*DistributionCommonParams Name string Version string }
func NewDistributeReleaseBundleParams ¶
func NewDistributeReleaseBundleParams(name, version string) DistributionParams
type DistributionRulesBody ¶
type DistributionSiteStatus ¶
type DistributionSiteStatus struct { Status DistributionStatus `json:"status,omitempty"` Error string `json:"general_error,omitempty"` TargetArtifactory TargetArtifactory `json:"target_artifactory,omitempty"` TotalFiles json.Number `json:"total_files,omitempty"` TotalBytes json.Number `json:"total_bytes,omitempty"` DistributedBytes json.Number `json:"distributed_bytes,omitempty"` DistributedFiles json.Number `json:"distributed_files,omitempty"` FileErrors []string `json:"file_errors,omitempty"` FilesInProgress []string `json:"files_in_progress,omitempty"` }
type DistributionStatus ¶
type DistributionStatus string
const ( NotDistributed DistributionStatus = "Not distributed" InProgress DistributionStatus = "In progress" InQueue DistributionStatus = "In queue" Completed DistributionStatus = "Completed" Failed DistributionStatus = "Failed" )
type DistributionStatusResponse ¶
type DistributionStatusResponse struct { Id json.Number `json:"distribution_id"` FriendlyId json.Number `json:"distribution_friendly_id,omitempty"` Type DistributionType `json:"type,omitempty"` Name string `json:"release_bundle_name,omitempty"` Version string `json:"release_bundle_version,omitempty"` Status DistributionStatus `json:"status,omitempty"` DistributionRules []DistributionRulesBody `json:"distribution_rules,omitempty"` Sites []DistributionSiteStatus `json:"sites,omitempty"` }
type DistributionType ¶
type DistributionType string
const ( Distribute DistributionType = "distribute" DeleteReleaseBundleVersion DistributionType = "delete_release_bundle_version" )
type ReleaseBundleDistributeV1Body ¶
type ReleaseBundleDistributeV1Body struct { DryRun bool `json:"dry_run"` DistributionRules []DistributionRulesBody `json:"distribution_rules"` AutoCreateRepo bool `json:"auto_create_missing_repositories,omitempty"` }
func CreateDistributeV1Body ¶
func CreateDistributeV1Body(distCommonParams []*DistributionCommonParams, dryRun, isAutoCreateRepo bool) ReleaseBundleDistributeV1Body
type TargetArtifactory ¶
Click to show internal directories.
Click to hide internal directories.