Documentation ¶
Index ¶
- type AppDetail
- type AppLabel
- type AppMetadata
- type AppWorkflow
- type AppWorkflowCloneDto
- type BuildScript
- type CdPipelineDetails
- type CdStage
- type CdStageConfigMapSecretNames
- type CiPipelineDetails
- type CiPipelineMaterialConfig
- type ConfigMap
- type ConfigMapSecretDataVolumeUsageConfig
- type DeploymentStrategy
- type DeploymentTemplate
- type DockerBuildConfig
- type DockerConfig
- type EnvironmentOverride
- type ExternalSecret
- type GitMaterial
- type Secret
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppDetail ¶
type AppDetail struct { Metadata *AppMetadata `json:"metadata,notnull" validate:"required"` GitMaterials []*GitMaterial `json:"gitMaterials,notnull"` DockerConfig *DockerConfig `json:"dockerConfig"` GlobalDeploymentTemplate *DeploymentTemplate `json:"globalDeploymentTemplate,notnull"` AppWorkflows []*AppWorkflow `json:"workflows"` GlobalConfigMaps []*ConfigMap `json:"globalConfigMaps"` GlobalSecrets []*Secret `json:"globalSecrets"` EnvironmentOverrides map[string]*EnvironmentOverride `json:"environmentOverride"` }
type AppMetadata ¶
type AppWorkflow ¶
type AppWorkflow struct { Name string `json:"name"` CiPipeline *CiPipelineDetails `json:"ciPipeline"` CdPipelines []*CdPipelineDetails `json:"cdPipelines"` }
type AppWorkflowCloneDto ¶ added in v0.6.6
type AppWorkflowCloneDto struct { AppId int `json:"appId"` AppName string `json:"appName"` AppWorkflows []*AppWorkflow `json:"workflows"` EnvironmentOverrides map[string]*EnvironmentOverride `json:"environmentOverride"` }
type BuildScript ¶
type CdPipelineDetails ¶
type CdPipelineDetails struct { Name string `json:"name"` //pipelineName EnvironmentName string `json:"environmentName" ` TriggerType pipelineConfig.TriggerType `json:"triggerType" validate:"required"` DeploymentType pipelineConfig.DeploymentTemplate `json:"deploymentType,omitempty" validate:"oneof=BLUE-GREEN ROLLING CANARY RECREATE"` // DeploymentStrategies []*DeploymentStrategy `json:"deploymentStrategies"` PreStage *CdStage `json:"preStage"` PostStage *CdStage `json:"postStage"` PreStageConfigMapSecretNames *CdStageConfigMapSecretNames `json:"preStageConfigMapSecretNames"` PostStageConfigMapSecretNames *CdStageConfigMapSecretNames `json:"postStageConfigMapSecretNames"` RunPreStageInEnv bool `json:"runPreStageInEnv"` RunPostStageInEnv bool `json:"runPostStageInEnv"` IsClusterCdActive bool `json:"isClusterCdActive"` }
type CdStage ¶
type CdStage struct { Name string `json:"name,omitempty"` TriggerType pipelineConfig.TriggerType `json:"triggerType,omitempty"` Config string `json:"config,omitempty"` }
type CiPipelineDetails ¶
type CiPipelineDetails struct { Name string `json:"name" validate:"required"` //name suffix of corresponding pipeline IsManual bool `json:"isManual" validate:"required"` CiPipelineMaterialsConfig []*CiPipelineMaterialConfig `json:"ciPipelineMaterialsConfig"` DockerBuildArgs map[string]string `json:"dockerBuildArgs"` BeforeDockerBuildScripts []*BuildScript `json:"beforeDockerBuildScripts"` AfterDockerBuildScripts []*BuildScript `json:"afterDockerBuildScripts"` VulnerabilityScanEnabled bool `json:"vulnerabilitiesScanEnabled"` PreBuildStage *bean.PipelineStageDto `json:"preBuildStage,omitempty"` PostBuildStage *bean.PipelineStageDto `json:"postBuildStage,omitempty"` IsExternal bool `json:"isExternal"` // true for linked and external }
type CiPipelineMaterialConfig ¶
type CiPipelineMaterialConfig struct { Type pipelineConfig.SourceType `json:"type,omitempty" validate:"oneof=SOURCE_TYPE_BRANCH_FIXED WEBHOOK"` Value string `json:"value,omitempty" ` CheckoutPath string `json:"checkoutPath"` }
type ConfigMap ¶
type ConfigMap struct { Name string `json:"name,notnull" validate:"required"` IsExternal bool `json:"isExternal"` UsageType string `json:"usageType,omitempty" validate:"oneof=environment volume"` Data map[string]interface{} `json:"data"` DataVolumeUsageConfig *ConfigMapSecretDataVolumeUsageConfig `json:"dataVolumeUsageConfig"` }
type DeploymentStrategy ¶
type DeploymentStrategy struct { DeploymentType pipelineConfig.DeploymentTemplate `json:"deploymentType,omitempty" validate:"oneof=BLUE-GREEN ROLLING CANARY RECREATE"` // Config map[string]interface{} `json:"config,omitempty" validate:"string"` IsDefault bool `json:"isDefault" validate:"required"` }
type DeploymentTemplate ¶
type DeploymentTemplate struct { ChartRefId int `json:"chartRefId,notnull" validate:"required"` Template map[string]interface{} `json:"template,notnull" validate:"required"` ShowAppMetrics bool `json:"showAppMetrics"` IsOverride bool `json:"isOverride"` IsBasicViewLocked bool `json:"isBasicViewLocked"` CurrentViewEditor models.ChartsViewEditorType `json:"currentViewEditor"` //default "UNDEFINED" in db }
type DockerBuildConfig ¶
type DockerBuildConfig struct { GitCheckoutPath string `json:"gitCheckoutPath,omitempty" validate:"required"` DockerfileRelativePath string `json:"dockerfileRelativePath,omitempty" validate:"required"` Args map[string]string `json:"args,omitempty"` TargetPlatform string `json:"targetPlatform"` DockerBuildOptions map[string]string `json:"dockerBuildOptions,omitempty"` }
type DockerConfig ¶
type DockerConfig struct { DockerRegistry string `json:"dockerRegistry" validate:"required"` DockerRepository string `json:"dockerRepository" validate:"required"` CiBuildConfig *bean.CiBuildConfigBean `json:"ciBuildConfig"` DockerBuildConfig *DockerBuildConfig `json:"dockerBuildConfig,omitempty"` // Deprecated, should use CiBuildConfig for development CheckoutPath string `json:"checkoutPath"` }
type EnvironmentOverride ¶
type EnvironmentOverride struct { DeploymentTemplate *DeploymentTemplate `json:"deploymentTemplate"` ConfigMaps []*ConfigMap `json:"configMaps"` Secrets []*Secret `json:"secrets"` }
type ExternalSecret ¶
type GitMaterial ¶
type Secret ¶
type Secret struct { Name string `json:"name,notnull" validate:"required"` IsExternal bool `json:"isExternal"` ExternalType string `json:"externalType,omitempty"` UsageType string `json:"usageType,omitempty" validate:"oneof=environment volume"` Data map[string]interface{} `json:"data"` DataVolumeUsageConfig *ConfigMapSecretDataVolumeUsageConfig `json:"dataVolumeUsageConfig"` RoleArn string `json:"roleArn"` ExternalSecretData []*ExternalSecret `json:"externalSecretData"` }
Click to show internal directories.
Click to hide internal directories.