Documentation
¶
Index ¶
- Constants
- Variables
- type AppDescriptor
- type ArtifactProperty
- type BindPackageRequest
- type CommonPromoteAppVersion
- type CreateAppVersionRequest
- type CreateVersionArtifact
- type CreateVersionBuild
- type CreateVersionPackage
- type CreateVersionReference
- type CreateVersionReleaseBundle
- type CreateVersionSources
- type PromoteAppVersionRequest
- type ReleaseAppVersionRequest
- type RollbackAppVersionRequest
- type RollbackAppVersionResponse
- type UpdateAppVersionRequest
Constants ¶
View Source
const ( BusinessCriticalityUnspecified = "unspecified" BusinessCriticalityLow = "low" BusinessCriticalityMedium = "medium" BusinessCriticalityHigh = "high" BusinessCriticalityCritical = "critical" MaturityLevelUnspecified = "unspecified" MaturityLevelExperimental = "experimental" MaturityLevelProduction = "production" MaturityLevelEndOfLife = "end_of_life" )
View Source
const ( PromotionTypeCopy = "copy" PromotionTypeMove = "move" // This value cannot be set via the --promotion-type flag in the CLI. // It is sent to the promotion_type field in the REST API only when the --dry-run flag is used. PromotionTypeDryRun = "dry_run" )
Variables ¶
View Source
var ( BusinessCriticalityValues = []string{ BusinessCriticalityUnspecified, BusinessCriticalityLow, BusinessCriticalityMedium, BusinessCriticalityHigh, BusinessCriticalityCritical, } MaturityLevelValues = []string{ MaturityLevelUnspecified, MaturityLevelExperimental, MaturityLevelProduction, MaturityLevelEndOfLife, } )
View Source
var PromotionTypeValues = []string{ PromotionTypeCopy, PromotionTypeMove, }
Functions ¶
This section is empty.
Types ¶
type AppDescriptor ¶
type AppDescriptor struct {
ApplicationKey string `json:"application_key"`
ApplicationName string `json:"application_name,omitempty"`
ProjectKey string `json:"project_key,omitempty"`
Description *string `json:"description,omitempty"`
MaturityLevel *string `json:"maturity_level,omitempty"`
BusinessCriticality *string `json:"criticality,omitempty"`
Labels *map[string]string `json:"labels,omitempty"`
UserOwners *[]string `json:"user_owners,omitempty"`
GroupOwners *[]string `json:"group_owners,omitempty"`
}
type ArtifactProperty ¶
type BindPackageRequest ¶
type CommonPromoteAppVersion ¶
type CommonPromoteAppVersion struct {
PromotionType string `json:"promotion_type,omitempty"`
IncludedRepositoryKeys []string `json:"included_repository_keys,omitempty"`
ExcludedRepositoryKeys []string `json:"excluded_repository_keys,omitempty"`
ArtifactAdditionalProperties []ArtifactProperty `json:"artifact_additional_properties,omitempty"`
}
type CreateAppVersionRequest ¶
type CreateAppVersionRequest struct {
ApplicationKey string `json:"application_key"`
Version string `json:"version"`
Sources *CreateVersionSources `json:"sources,omitempty"`
Tag string `json:"tag,omitempty"`
}
type CreateVersionArtifact ¶
type CreateVersionBuild ¶
type CreateVersionPackage ¶
type CreateVersionReference ¶
type CreateVersionSources ¶
type CreateVersionSources struct {
Packages []CreateVersionPackage `json:"packages,omitempty"`
Builds []CreateVersionBuild `json:"builds,omitempty"`
ReleaseBundles []CreateVersionReleaseBundle `json:"release_bundles,omitempty"`
Versions []CreateVersionReference `json:"versions,omitempty"`
}
type PromoteAppVersionRequest ¶
type PromoteAppVersionRequest struct {
CommonPromoteAppVersion
Stage string `json:"target_stage"`
}
type ReleaseAppVersionRequest ¶
type ReleaseAppVersionRequest struct {
CommonPromoteAppVersion
}
ReleaseAppVersionRequest represents a request to release an application version to production. This struct reuses CommonPromoteAppVersion for consistency with PromoteAppVersionRequest. A release is functionally promoted with a hardcoded stage ("prod") set by the backend, so the stage is not included here. This separation improves readability and intent in the codebase.
func NewReleaseAppVersionRequest ¶
func NewReleaseAppVersionRequest( promotionType string, includedRepositoryKeys []string, excludedRepositoryKeys []string, artifactProperties []ArtifactProperty, ) *ReleaseAppVersionRequest
type RollbackAppVersionRequest ¶
type RollbackAppVersionRequest struct {
FromStage string `json:"from_stage"`
}
func NewRollbackAppVersionRequest ¶
func NewRollbackAppVersionRequest(fromStage string) *RollbackAppVersionRequest
Click to show internal directories.
Click to hide internal directories.