Documentation
¶
Index ¶
- Constants
- Variables
- func GetReleaseBundleCreationStatusRestApi(rbDetails ReleaseBundleDetails) string
- type BuildSource
- type CreateFromBuildsSource
- type CreateFromReleaseBundlesSource
- type CreateOrPromoteReleaseBundleParams
- type DistributeReleaseBundleService
- func (dr *DistributeReleaseBundleService) Distribute() error
- func (dr *DistributeReleaseBundleService) GetDistributeBody() any
- func (dr *DistributeReleaseBundleService) GetDistributionParams() distribution.DistributionParams
- func (dr *DistributeReleaseBundleService) GetHttpClient() *jfroghttpclient.JfrogHttpClient
- func (dr *DistributeReleaseBundleService) GetRestApi(name, version string) string
- func (dr *DistributeReleaseBundleService) IsAutoCreateRepo() bool
- func (dr *DistributeReleaseBundleService) IsDryRun() bool
- func (dr *DistributeReleaseBundleService) ServiceDetails() auth.ServiceDetails
- type Message
- type Modifications
- type PathMapping
- type RbCreationBody
- type RbPromotionBody
- type RbPromotionResp
- type RbStatus
- type ReleaseBundleDetails
- type ReleaseBundleDistributeBody
- type ReleaseBundleOperation
- type ReleaseBundleQueryParams
- type ReleaseBundleSource
- type ReleaseBundleStatusResponse
- type ReleaseBundlesService
- func (rbs *ReleaseBundlesService) CreateFromBuilds(rbDetails ReleaseBundleDetails, params CreateOrPromoteReleaseBundleParams, ...) error
- func (rbs *ReleaseBundlesService) CreateFromBundles(rbDetails ReleaseBundleDetails, params CreateOrPromoteReleaseBundleParams, ...) error
- func (rbs *ReleaseBundlesService) DeleteReleaseBundle(rbDetails ReleaseBundleDetails, params ReleaseBundleQueryParams) error
- func (rbs *ReleaseBundlesService) GetLifecycleDetails() auth.ServiceDetails
- func (rbs *ReleaseBundlesService) GetReleaseBundleCreationStatus(rbDetails ReleaseBundleDetails, projectKey string, sync bool) (ReleaseBundleStatusResponse, error)
- func (rbs *ReleaseBundlesService) GetReleaseBundlePromotionStatus(rbDetails ReleaseBundleDetails, projectKey, createdMillis string, sync bool) (ReleaseBundleStatusResponse, error)
- func (rbs *ReleaseBundlesService) Promote(rbDetails ReleaseBundleDetails, params CreateOrPromoteReleaseBundleParams, ...) (RbPromotionResp, error)
- type SourceBuildDetails
Constants ¶
View Source
const (
DefaultSyncSleepInterval = 10 * time.Second
)
Variables ¶
View Source
var SyncSleepInterval = DefaultSyncSleepInterval
Functions ¶
func GetReleaseBundleCreationStatusRestApi ¶
func GetReleaseBundleCreationStatusRestApi(rbDetails ReleaseBundleDetails) string
Types ¶
type BuildSource ¶
type CreateFromBuildsSource ¶
type CreateFromBuildsSource struct {
Builds []BuildSource `json:"builds,omitempty"`
}
type CreateFromReleaseBundlesSource ¶
type CreateFromReleaseBundlesSource struct {
ReleaseBundles []ReleaseBundleSource `json:"release_bundles,omitempty"`
}
type CreateOrPromoteReleaseBundleParams ¶
type CreateOrPromoteReleaseBundleParams struct {
ReleaseBundleQueryParams
// Header:
SigningKeyName string
}
type DistributeReleaseBundleService ¶ added in v1.32.0
type DistributeReleaseBundleService struct {
LcDetails auth.ServiceDetails
DryRun bool
AutoCreateRepo bool
DistributeParams distribution.DistributionParams
PathMapping
// contains filtered or unexported fields
}
func NewDistributeReleaseBundleService ¶ added in v1.32.0
func NewDistributeReleaseBundleService(client *jfroghttpclient.JfrogHttpClient) *DistributeReleaseBundleService
func (*DistributeReleaseBundleService) Distribute ¶ added in v1.32.0
func (dr *DistributeReleaseBundleService) Distribute() error
func (*DistributeReleaseBundleService) GetDistributeBody ¶ added in v1.32.0
func (dr *DistributeReleaseBundleService) GetDistributeBody() any
func (*DistributeReleaseBundleService) GetDistributionParams ¶ added in v1.32.0
func (dr *DistributeReleaseBundleService) GetDistributionParams() distribution.DistributionParams
func (*DistributeReleaseBundleService) GetHttpClient ¶ added in v1.32.0
func (dr *DistributeReleaseBundleService) GetHttpClient() *jfroghttpclient.JfrogHttpClient
func (*DistributeReleaseBundleService) GetRestApi ¶ added in v1.32.0
func (dr *DistributeReleaseBundleService) GetRestApi(name, version string) string
func (*DistributeReleaseBundleService) IsAutoCreateRepo ¶ added in v1.32.0
func (dr *DistributeReleaseBundleService) IsAutoCreateRepo() bool
func (*DistributeReleaseBundleService) IsDryRun ¶ added in v1.32.0
func (dr *DistributeReleaseBundleService) IsDryRun() bool
func (*DistributeReleaseBundleService) ServiceDetails ¶ added in v1.32.0
func (dr *DistributeReleaseBundleService) ServiceDetails() auth.ServiceDetails
type Modifications ¶ added in v1.32.0
type Modifications struct {
PathMappings []distribution.PathMapping `json:"mappings"`
}
type PathMapping ¶ added in v1.32.0
type RbCreationBody ¶
type RbCreationBody struct {
ReleaseBundleDetails
SourceType sourceType `json:"source_type,omitempty"`
Source interface{} `json:"source,omitempty"`
}
type RbPromotionBody ¶
type RbPromotionResp ¶
type RbPromotionResp struct {
RepositoryKey string `json:"repository_key,omitempty"`
ReleaseBundleDetails
RbPromotionBody
Created string `json:"created,omitempty"`
CreatedMillis json.Number `json:"created_millis,omitempty"`
}
type ReleaseBundleDetails ¶
type ReleaseBundleDistributeBody ¶ added in v1.32.0
type ReleaseBundleDistributeBody struct {
distribution.ReleaseBundleDistributeV1Body
Modifications `json:"modifications"`
}
type ReleaseBundleOperation ¶
type ReleaseBundleOperation interface {
// contains filtered or unexported methods
}
type ReleaseBundleSource ¶
type ReleaseBundlesService ¶
type ReleaseBundlesService struct {
// contains filtered or unexported fields
}
func NewReleaseBundlesService ¶
func NewReleaseBundlesService(lcDetails auth.ServiceDetails, client *jfroghttpclient.JfrogHttpClient) *ReleaseBundlesService
func (*ReleaseBundlesService) CreateFromBuilds ¶
func (rbs *ReleaseBundlesService) CreateFromBuilds(rbDetails ReleaseBundleDetails, params CreateOrPromoteReleaseBundleParams, sourceBuilds CreateFromBuildsSource) error
func (*ReleaseBundlesService) CreateFromBundles ¶
func (rbs *ReleaseBundlesService) CreateFromBundles(rbDetails ReleaseBundleDetails, params CreateOrPromoteReleaseBundleParams, sourceReleaseBundles CreateFromReleaseBundlesSource) error
func (*ReleaseBundlesService) DeleteReleaseBundle ¶
func (rbs *ReleaseBundlesService) DeleteReleaseBundle(rbDetails ReleaseBundleDetails, params ReleaseBundleQueryParams) error
func (*ReleaseBundlesService) GetLifecycleDetails ¶
func (rbs *ReleaseBundlesService) GetLifecycleDetails() auth.ServiceDetails
func (*ReleaseBundlesService) GetReleaseBundleCreationStatus ¶
func (rbs *ReleaseBundlesService) GetReleaseBundleCreationStatus(rbDetails ReleaseBundleDetails, projectKey string, sync bool) (ReleaseBundleStatusResponse, error)
func (*ReleaseBundlesService) GetReleaseBundlePromotionStatus ¶
func (rbs *ReleaseBundlesService) GetReleaseBundlePromotionStatus(rbDetails ReleaseBundleDetails, projectKey, createdMillis string, sync bool) (ReleaseBundleStatusResponse, error)
func (*ReleaseBundlesService) Promote ¶
func (rbs *ReleaseBundlesService) Promote(rbDetails ReleaseBundleDetails, params CreateOrPromoteReleaseBundleParams, environment string, overwrite bool) (RbPromotionResp, error)
type SourceBuildDetails ¶
Click to show internal directories.
Click to hide internal directories.