Documentation ¶
Index ¶
- Constants
- type CreateReleaseBundleParams
- type CreateReleaseBundleService
- type DeleteDistributionParams
- type DeleteLocalReleaseBundleService
- type DeleteReleaseBundleService
- type DeleteRemoteDistributionBody
- type DistributeReleaseBundleV1Service
- func (dr *DistributeReleaseBundleV1Service) Distribute() error
- func (dr *DistributeReleaseBundleV1Service) GetDistributeBody() any
- func (dr *DistributeReleaseBundleV1Service) GetDistributionParams() distribution.DistributionParams
- func (dr *DistributeReleaseBundleV1Service) GetHttpClient() *jfroghttpclient.JfrogHttpClient
- func (dr *DistributeReleaseBundleV1Service) GetMaxWaitMinutes() int
- func (dr *DistributeReleaseBundleV1Service) GetProjectKey() string
- func (dr *DistributeReleaseBundleV1Service) GetRestApi(name, version string) string
- func (dr *DistributeReleaseBundleV1Service) IsDryRun() bool
- func (dr *DistributeReleaseBundleV1Service) IsSync() bool
- func (dr *DistributeReleaseBundleV1Service) ServiceDetails() auth.ServiceDetails
- type DistributionStatusParams
- type DistributionStatusService
- func (ds *DistributionStatusService) BuildUrlForGetStatus(url, name, version, trackerId string) string
- func (ds *DistributionStatusService) GetDistDetails() auth.ServiceDetails
- func (ds *DistributionStatusService) GetStatus(distributionStatusParams DistributionStatusParams) (*[]distribution.DistributionStatusResponse, error)
- type OnSuccess
- type SetSigningKeyBody
- type SetSigningKeyParams
- type SetSigningKeyService
- type SignBundleBody
- type SignBundleParams
- type SignBundleService
- type UpdateReleaseBundleParams
- type UpdateReleaseBundleService
- type VersionService
Constants ¶
View Source
const DefaultDistributeSyncSleepIntervalSeconds = 10 // 10 seconds
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateReleaseBundleParams ¶
type CreateReleaseBundleParams struct {
distributionServiceUtils.ReleaseBundleParams
}
func NewCreateReleaseBundleParams ¶
func NewCreateReleaseBundleParams(name, version string) CreateReleaseBundleParams
type CreateReleaseBundleService ¶
type CreateReleaseBundleService struct {
UpdateReleaseBundleService
}
func NewCreateReleaseBundleService ¶ added in v0.22.0
func NewCreateReleaseBundleService(client *jfroghttpclient.JfrogHttpClient) *CreateReleaseBundleService
func (*CreateReleaseBundleService) CreateReleaseBundle ¶
func (cb *CreateReleaseBundleService) CreateReleaseBundle(createBundleParams CreateReleaseBundleParams) (*utils.Sha256Summary, error)
func (*CreateReleaseBundleService) GetDistDetails ¶
func (cb *CreateReleaseBundleService) GetDistDetails() auth.ServiceDetails
type DeleteDistributionParams ¶
type DeleteDistributionParams struct { distribution.DistributionParams DeleteFromDistribution bool Sync bool // Max time in minutes to wait for sync distribution to finish. MaxWaitMinutes int }
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 *jfroghttpclient.JfrogHttpClient) *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 Sync bool // Max time in minutes to wait for sync distribution to finish. MaxWaitMinutes int // 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 *jfroghttpclient.JfrogHttpClient) *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 { distribution.ReleaseBundleDistributeV1Body OnSuccess OnSuccess `json:"on_success"` }
type DistributeReleaseBundleV1Service ¶ added in v1.32.0
type DistributeReleaseBundleV1Service struct { DistDetails auth.ServiceDetails DryRun bool Sync bool AutoCreateRepo bool // Max time in minutes to wait for sync distribution to finish. MaxWaitMinutes int DistributeParams distribution.DistributionParams // contains filtered or unexported fields }
func NewDistributeReleaseBundleV1Service ¶ added in v1.32.0
func NewDistributeReleaseBundleV1Service(client *jfroghttpclient.JfrogHttpClient) *DistributeReleaseBundleV1Service
func (*DistributeReleaseBundleV1Service) Distribute ¶ added in v1.32.0
func (dr *DistributeReleaseBundleV1Service) Distribute() error
func (*DistributeReleaseBundleV1Service) GetDistributeBody ¶ added in v1.32.0
func (dr *DistributeReleaseBundleV1Service) GetDistributeBody() any
func (*DistributeReleaseBundleV1Service) GetDistributionParams ¶ added in v1.32.0
func (dr *DistributeReleaseBundleV1Service) GetDistributionParams() distribution.DistributionParams
func (*DistributeReleaseBundleV1Service) GetHttpClient ¶ added in v1.32.0
func (dr *DistributeReleaseBundleV1Service) GetHttpClient() *jfroghttpclient.JfrogHttpClient
func (*DistributeReleaseBundleV1Service) GetMaxWaitMinutes ¶ added in v1.32.0
func (dr *DistributeReleaseBundleV1Service) GetMaxWaitMinutes() int
func (*DistributeReleaseBundleV1Service) GetProjectKey ¶ added in v1.38.0
func (dr *DistributeReleaseBundleV1Service) GetProjectKey() string
func (*DistributeReleaseBundleV1Service) GetRestApi ¶ added in v1.32.0
func (dr *DistributeReleaseBundleV1Service) GetRestApi(name, version string) string
func (*DistributeReleaseBundleV1Service) IsDryRun ¶ added in v1.32.0
func (dr *DistributeReleaseBundleV1Service) IsDryRun() bool
func (*DistributeReleaseBundleV1Service) IsSync ¶ added in v1.32.0
func (dr *DistributeReleaseBundleV1Service) IsSync() bool
func (*DistributeReleaseBundleV1Service) ServiceDetails ¶ added in v1.32.0
func (dr *DistributeReleaseBundleV1Service) ServiceDetails() auth.ServiceDetails
type DistributionStatusParams ¶ added in v0.12.0
func NewDistributionStatusParams ¶ added in v0.12.0
func NewDistributionStatusParams() DistributionStatusParams
type DistributionStatusService ¶ added in v0.12.0
type DistributionStatusService struct { DistDetails auth.ServiceDetails // contains filtered or unexported fields }
func NewDistributionStatusService ¶ added in v0.12.0
func NewDistributionStatusService(client *jfroghttpclient.JfrogHttpClient) *DistributionStatusService
func (*DistributionStatusService) BuildUrlForGetStatus ¶ added in v0.12.0
func (ds *DistributionStatusService) BuildUrlForGetStatus(url, name, version, trackerId string) string
func (*DistributionStatusService) GetDistDetails ¶ added in v0.12.0
func (ds *DistributionStatusService) GetDistDetails() auth.ServiceDetails
func (*DistributionStatusService) GetStatus ¶ added in v0.12.0
func (ds *DistributionStatusService) GetStatus(distributionStatusParams DistributionStatusParams) (*[]distribution.DistributionStatusResponse, error)
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 *jfroghttpclient.JfrogHttpClient) *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 *jfroghttpclient.JfrogHttpClient) *SignBundleService
func (*SignBundleService) GetDistDetails ¶
func (sb *SignBundleService) GetDistDetails() auth.ServiceDetails
func (*SignBundleService) SignReleaseBundle ¶
func (sb *SignBundleService) SignReleaseBundle(signBundleParams SignBundleParams) (*utils.Sha256Summary, error)
type UpdateReleaseBundleParams ¶
type UpdateReleaseBundleParams struct {
distributionServiceUtils.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 *jfroghttpclient.JfrogHttpClient) *UpdateReleaseBundleService
func (*UpdateReleaseBundleService) GetDistDetails ¶
func (ur *UpdateReleaseBundleService) GetDistDetails() auth.ServiceDetails
func (*UpdateReleaseBundleService) UpdateReleaseBundle ¶
func (ur *UpdateReleaseBundleService) UpdateReleaseBundle(createBundleParams UpdateReleaseBundleParams) (*utils.Sha256Summary, error)
type VersionService ¶ added in v0.10.0
type VersionService struct { DistDetails auth.ServiceDetails // contains filtered or unexported fields }
func NewVersionService ¶ added in v0.10.0
func NewVersionService(client *jfroghttpclient.JfrogHttpClient) *VersionService
func (*VersionService) GetDistDetails ¶ added in v0.10.0
func (vs *VersionService) GetDistDetails() auth.ServiceDetails
func (*VersionService) GetDistributionVersion ¶ added in v0.10.0
func (vs *VersionService) GetDistributionVersion() (string, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.