services

package
v0.0.0-...-acd5dfc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 BuildSource struct {
	BuildName       string `json:"build_name,omitempty"`
	BuildNumber     string `json:"build_number,omitempty"`
	BuildRepository string `json:"build_repository,omitempty"`
}

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 Message

type Message struct {
	Source  string `json:"source,omitempty"`
	Text    string `json:"text,omitempty"`
	Created string `json:"created,omitempty"`
}

type RbCreationBody

type RbCreationBody struct {
	ReleaseBundleDetails
	SourceType sourceType  `json:"source_type,omitempty"`
	Source     interface{} `json:"source,omitempty"`
}

type RbPromotionBody

type RbPromotionBody struct {
	Environment            string   `json:"environment,omitempty"`
	Overwrite              bool     `json:"overwrite_existing_artifacts,omitempty"`
	IncludedRepositoryKeys []string `json:"included_repository_keys,omitempty"`
	ExcludedRepositoryKeys []string `json:"excluded_repository_keys,omitempty"`
}

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 RbStatus

type RbStatus string
const (
	Completed  RbStatus = "COMPLETED"
	Processing RbStatus = "PROCESSING"
	Pending    RbStatus = "PENDING"
	Failed     RbStatus = "FAILED"
	Rejected   RbStatus = "REJECTED"
	Deleting   RbStatus = "DELETING"
)

type ReleaseBundleDetails

type ReleaseBundleDetails struct {
	ReleaseBundleName    string `json:"release_bundle_name,omitempty"`
	ReleaseBundleVersion string `json:"release_bundle_version,omitempty"`
}

type ReleaseBundleOperation

type ReleaseBundleOperation interface {
	// contains filtered or unexported methods
}

type ReleaseBundleQueryParams

type ReleaseBundleQueryParams struct {
	ProjectKey string
	Async      bool
}

type ReleaseBundleSource

type ReleaseBundleSource struct {
	ReleaseBundleName    string `json:"release_bundle_name,omitempty"`
	ReleaseBundleVersion string `json:"release_bundle_version,omitempty"`
	ProjectKey           string `json:"project_key,omitempty"`
}

type ReleaseBundleStatusResponse

type ReleaseBundleStatusResponse struct {
	Status   RbStatus  `json:"status,omitempty"`
	Messages []Message `json:"messages,omitempty"`
}

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

type SourceBuildDetails struct {
	BuildName   string
	BuildNumber string
	ProjectKey  string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL