Documentation ¶
Index ¶
- type CreateReleaseBundleParams
- type CreateReleaseBundleService
- type DeleteDistributionParams
- type DeleteLocalReleaseBundleService
- type DeleteReleaseBundleService
- type DeleteRemoteDistributionBody
- type DistributeReleaseBundleService
- type DistributionBody
- type DistributionParams
- type DistributionRulesBody
- type DistributionSiteStatus
- type DistributionStatus
- type DistributionStatusParams
- type DistributionStatusResponse
- type DistributionStatusService
- func (ds *DistributionStatusService) BuildUrlForGetStatus(url, name, version, trackerId string) string
- func (ds *DistributionStatusService) GetDistDetails() auth.ServiceDetails
- func (ds *DistributionStatusService) GetStatus(distributionStatusParams DistributionStatusParams) (*[]DistributionStatusResponse, error)
- type DistributionType
- type OnSuccess
- type SetSigningKeyBody
- type SetSigningKeyParams
- type SetSigningKeyService
- type SignBundleBody
- type SignBundleParams
- type SignBundleService
- type TargetArtifactory
- type UpdateReleaseBundleParams
- type UpdateReleaseBundleService
- type VersionService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateReleaseBundleParams ¶
type CreateReleaseBundleParams struct {
distrbutionServiceUtils.ReleaseBundleParams
}
func NewCreateReleaseBundleParams ¶
func NewCreateReleaseBundleParams(name, version string) CreateReleaseBundleParams
type CreateReleaseBundleService ¶
type CreateReleaseBundleService struct {
UpdateReleaseBundleService
}
func NewCreateReleseBundleService ¶
func NewCreateReleseBundleService(client *rthttpclient.ArtifactoryHttpClient) *CreateReleaseBundleService
func (*CreateReleaseBundleService) CreateReleaseBundle ¶
func (cb *CreateReleaseBundleService) CreateReleaseBundle(createBundleParams CreateReleaseBundleParams) error
func (*CreateReleaseBundleService) GetDistDetails ¶
func (cb *CreateReleaseBundleService) GetDistDetails() auth.ServiceDetails
type DeleteDistributionParams ¶
type DeleteDistributionParams struct { DistributionParams DeleteFromDistribution bool }
func NewDeleteReleaseBundleParams ¶
func NewDeleteReleaseBundleParams(name, version string) DeleteDistributionParams
type DeleteLocalReleaseBundleService ¶
type DeleteLocalReleaseBundleService struct {
DeleteReleaseBundleService
}
Delete distributable release bundle from the distribution service.
func NewDeleteLocalDistributionService ¶
func NewDeleteLocalDistributionService(client *rthttpclient.ArtifactoryHttpClient) *DeleteLocalReleaseBundleService
func (*DeleteLocalReleaseBundleService) DeleteDistribution ¶
func (dlr *DeleteLocalReleaseBundleService) DeleteDistribution(deleteDistributionParams DeleteDistributionParams) error
func (*DeleteLocalReleaseBundleService) GetDistDetails ¶
func (dlr *DeleteLocalReleaseBundleService) GetDistDetails() auth.ServiceDetails
type DeleteReleaseBundleService ¶
type DeleteReleaseBundleService struct { DistDetails auth.ServiceDetails DryRun bool // contains filtered or unexported fields }
Delete received release bundles from the edge nodes. On success, keep or delete the release bundle from the distribution service.
func NewDeleteReleaseBundleService ¶
func NewDeleteReleaseBundleService(client *rthttpclient.ArtifactoryHttpClient) *DeleteReleaseBundleService
func (*DeleteReleaseBundleService) DeleteDistribution ¶
func (dr *DeleteReleaseBundleService) DeleteDistribution(deleteDistributionParams DeleteDistributionParams) error
func (*DeleteReleaseBundleService) GetDistDetails ¶
func (dr *DeleteReleaseBundleService) GetDistDetails() auth.ServiceDetails
func (*DeleteReleaseBundleService) IsDryRun ¶
func (dr *DeleteReleaseBundleService) IsDryRun() bool
type DeleteRemoteDistributionBody ¶
type DeleteRemoteDistributionBody struct { DistributionBody OnSuccess OnSuccess `json:"on_success"` }
type DistributeReleaseBundleService ¶
type DistributeReleaseBundleService struct { DistDetails auth.ServiceDetails DryRun bool Sync bool // Max time in minutes to wait for sync distribution to finish. MaxWaitMinutes int // contains filtered or unexported fields }
func NewDistributeReleaseBundleService ¶
func NewDistributeReleaseBundleService(client *rthttpclient.ArtifactoryHttpClient) *DistributeReleaseBundleService
func (*DistributeReleaseBundleService) Distribute ¶
func (dr *DistributeReleaseBundleService) Distribute(distributeParams DistributionParams) error
func (*DistributeReleaseBundleService) GetDistDetails ¶
func (dr *DistributeReleaseBundleService) GetDistDetails() auth.ServiceDetails
type DistributionBody ¶
type DistributionBody struct { DryRun bool `json:"dry_run"` DistributionRules []DistributionRulesBody `json:"distribution_rules"` }
type DistributionParams ¶
type DistributionParams struct { DistributionRules []*distributionUtils.DistributionCommonParams Name string Version string }
func NewDistributeReleaseBundleParams ¶
func NewDistributeReleaseBundleParams(name, version string) DistributionParams
type DistributionRulesBody ¶
type DistributionSiteStatus ¶
type DistributionSiteStatus struct { Status string `json:"status,omitempty"` Error string `json:"general_error,omitempty"` TargetArtifactory TargetArtifactory `json:"target_artifactory,omitempty"` TotalFiles int `json:"total_files,omitempty"` TotalBytes int `json:"total_bytes,omitempty"` DistributedBytes int `json:"distributed_bytes,omitempty"` DistributedFiles int `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" Completed DistributionStatus = "Completed" Failed DistributionStatus = "Failed" )
type DistributionStatusParams ¶
func NewDistributionStatusParams ¶
func NewDistributionStatusParams() DistributionStatusParams
type DistributionStatusResponse ¶
type DistributionStatusResponse struct { Id int `json:"distribution_id"` FriendlyId int `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 DistributionStatusService ¶
type DistributionStatusService struct { DistDetails auth.ServiceDetails // contains filtered or unexported fields }
func NewDistributionStatusService ¶
func NewDistributionStatusService(client *rthttpclient.ArtifactoryHttpClient) *DistributionStatusService
func (*DistributionStatusService) BuildUrlForGetStatus ¶
func (ds *DistributionStatusService) BuildUrlForGetStatus(url, name, version, trackerId string) string
func (*DistributionStatusService) GetDistDetails ¶
func (ds *DistributionStatusService) GetDistDetails() auth.ServiceDetails
func (*DistributionStatusService) GetStatus ¶
func (ds *DistributionStatusService) GetStatus(distributionStatusParams DistributionStatusParams) (*[]DistributionStatusResponse, error)
type DistributionType ¶
type DistributionType string
const ( Distribute DistributionType = "distribute" DeleteReleaseBundleVersion DistributionType = "delete_release_bundle_version" )
type SetSigningKeyBody ¶
type SetSigningKeyParams ¶
func NewSetSigningKeyParams ¶
func NewSetSigningKeyParams(publicKey, privateKey string) SetSigningKeyParams
type SetSigningKeyService ¶
type SetSigningKeyService struct { DistDetails auth.ServiceDetails // contains filtered or unexported fields }
func NewSetSigningKeyService ¶
func NewSetSigningKeyService(client *rthttpclient.ArtifactoryHttpClient) *SetSigningKeyService
func (*SetSigningKeyService) GetDistDetails ¶
func (ssk *SetSigningKeyService) GetDistDetails() auth.ServiceDetails
func (*SetSigningKeyService) SetSigningKey ¶
func (ssk *SetSigningKeyService) SetSigningKey(signBundleParams SetSigningKeyParams) error
type SignBundleBody ¶
type SignBundleBody struct {
StoringRepository string `json:"storing_repository,omitempty"`
}
type SignBundleParams ¶
type SignBundleParams struct { Name string Version string StoringRepository string GpgPassphrase string }
func NewSignBundleParams ¶
func NewSignBundleParams(name, version string) SignBundleParams
type SignBundleService ¶
type SignBundleService struct { DistDetails auth.ServiceDetails // contains filtered or unexported fields }
func NewSignBundleService ¶
func NewSignBundleService(client *rthttpclient.ArtifactoryHttpClient) *SignBundleService
func (*SignBundleService) GetDistDetails ¶
func (sb *SignBundleService) GetDistDetails() auth.ServiceDetails
func (*SignBundleService) SignReleaseBundle ¶
func (sb *SignBundleService) SignReleaseBundle(signBundleParams SignBundleParams) error
type TargetArtifactory ¶
type UpdateReleaseBundleParams ¶
type UpdateReleaseBundleParams struct {
distrbutionServiceUtils.ReleaseBundleParams
}
func NewUpdateReleaseBundleParams ¶
func NewUpdateReleaseBundleParams(name, version string) UpdateReleaseBundleParams
type UpdateReleaseBundleService ¶
type UpdateReleaseBundleService struct { DistDetails auth.ServiceDetails DryRun bool // contains filtered or unexported fields }
func NewUpdateReleaseBundleService ¶
func NewUpdateReleaseBundleService(client *rthttpclient.ArtifactoryHttpClient) *UpdateReleaseBundleService
func (*UpdateReleaseBundleService) GetDistDetails ¶
func (ur *UpdateReleaseBundleService) GetDistDetails() auth.ServiceDetails
func (*UpdateReleaseBundleService) UpdateReleaseBundle ¶
func (ur *UpdateReleaseBundleService) UpdateReleaseBundle(createBundleParams UpdateReleaseBundleParams) error
type VersionService ¶
type VersionService struct { DistDetails auth.ServiceDetails // contains filtered or unexported fields }
func NewVersionService ¶
func NewVersionService(client *rthttpclient.ArtifactoryHttpClient) *VersionService
func (*VersionService) GetDistDetails ¶
func (vs *VersionService) GetDistDetails() auth.ServiceDetails
func (*VersionService) GetDistributionVersion ¶
func (vs *VersionService) GetDistributionVersion() (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.