Documentation ¶
Index ¶
- Constants
- Variables
- func ClearSelectionField(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
- func FilterServiceVars(serviceName string, deployContents []config.DeployContent, ...) (*commonmodels.DeployServiceInfo, error)
- func GetLink(baseURI, projectKey, workflowName, workflowDisplayName string, taskID int64) string
- func GetRepos(workflow *commonmodels.WorkflowV4) ([]*types.Repository, error)
- func GetWorkflowOutputs(workflow *commonmodels.WorkflowV4, currentJobName string, ...) []string
- func Instantiate(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
- func InstantiateWorkflow(workflow *commonmodels.WorkflowV4) error
- func JobPresetSkiped(job *commonmodels.Job)
- func JobSkiped(job *commonmodels.Job) bool
- func LintJob(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
- func MergeArgs(workflow, workflowArgs *commonmodels.WorkflowV4) error
- func MergeWebhookRepo(workflow *commonmodels.WorkflowV4, repo *types.Repository) error
- func PrepareDefaultWorkflowTaskEnvs(projectKey, workflowName, workflowDisplayName, infrastructure string, ...) []*commonmodels.KeyVal
- func RemoveFixedValueMarks(workflow *commonmodels.WorkflowV4) error
- func RenderGlobalVariables(workflow *commonmodels.WorkflowV4, taskID int64, creator, account string) error
- func RenderKeyVals(input, origin []*commonmodels.KeyVal) []*commonmodels.KeyVal
- func RenderStageVariables(workflow *commonmodels.WorkflowV4, taskID int64, creator string) error
- func SetOptions(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
- func SetPreset(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
- func ToJobs(job *commonmodels.Job, workflow *commonmodels.WorkflowV4, taskID int64) ([]*commonmodels.JobTask, error)
- func UpdateWithLatestSetting(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
- type ApolloJob
- func (j *ApolloJob) ClearSelectionField() error
- func (j *ApolloJob) Instantiate() error
- func (j *ApolloJob) LintJob() error
- func (j *ApolloJob) MergeArgs(args *commonmodels.Job) error
- func (j *ApolloJob) SetOptions() error
- func (j *ApolloJob) SetPreset() error
- func (j *ApolloJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *ApolloJob) UpdateWithLatestSetting() error
- type BlueGreenDeployJob
- func (j *BlueGreenDeployJob) Instantiate() error
- func (j *BlueGreenDeployJob) LintJob() error
- func (j *BlueGreenDeployJob) MergeArgs(args *commonmodels.Job) error
- func (j *BlueGreenDeployJob) SetPreset() error
- func (j *BlueGreenDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *BlueGreenDeployJob) UpdateWithLatestSetting() error
- type BlueGreenDeployV2Job
- func (j *BlueGreenDeployV2Job) ClearSelectionField() error
- func (j *BlueGreenDeployV2Job) Instantiate() error
- func (j *BlueGreenDeployV2Job) LintJob() error
- func (j *BlueGreenDeployV2Job) MergeArgs(args *commonmodels.Job) error
- func (j *BlueGreenDeployV2Job) SetOptions() error
- func (j *BlueGreenDeployV2Job) SetPreset() error
- func (j *BlueGreenDeployV2Job) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *BlueGreenDeployV2Job) UpdateWithLatestSetting() error
- type BlueGreenReleaseJob
- func (j *BlueGreenReleaseJob) Instantiate() error
- func (j *BlueGreenReleaseJob) LintJob() error
- func (j *BlueGreenReleaseJob) MergeArgs(args *commonmodels.Job) error
- func (j *BlueGreenReleaseJob) SetPreset() error
- func (j *BlueGreenReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *BlueGreenReleaseJob) UpdateWithLatestSetting() error
- type BlueGreenReleaseV2Job
- func (j *BlueGreenReleaseV2Job) ClearSelectionField() error
- func (j *BlueGreenReleaseV2Job) Instantiate() error
- func (j *BlueGreenReleaseV2Job) LintJob() error
- func (j *BlueGreenReleaseV2Job) MergeArgs(args *commonmodels.Job) error
- func (j *BlueGreenReleaseV2Job) SetOptions() error
- func (j *BlueGreenReleaseV2Job) SetPreset() error
- func (j *BlueGreenReleaseV2Job) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *BlueGreenReleaseV2Job) UpdateWithLatestSetting() error
- type BuildJob
- func (j *BuildJob) ClearSelectionField() error
- func (j *BuildJob) GetOutPuts(log *zap.SugaredLogger) []string
- func (j *BuildJob) GetRepos() ([]*types.Repository, error)
- func (j *BuildJob) Instantiate() error
- func (j *BuildJob) LintJob() error
- func (j *BuildJob) MergeArgs(args *commonmodels.Job) error
- func (j *BuildJob) MergeWebhookRepo(webhookRepo *types.Repository) error
- func (j *BuildJob) SetOptions() error
- func (j *BuildJob) SetPreset() error
- func (j *BuildJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *BuildJob) UpdateWithLatestSetting() error
- type CanaryDeployJob
- func (j *CanaryDeployJob) ClearSelectionField() error
- func (j *CanaryDeployJob) Instantiate() error
- func (j *CanaryDeployJob) LintJob() error
- func (j *CanaryDeployJob) MergeArgs(args *commonmodels.Job) error
- func (j *CanaryDeployJob) SetOptions() error
- func (j *CanaryDeployJob) SetPreset() error
- func (j *CanaryDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *CanaryDeployJob) UpdateWithLatestSetting() error
- type CanaryReleaseJob
- func (j *CanaryReleaseJob) ClearSelectionField() error
- func (j *CanaryReleaseJob) Instantiate() error
- func (j *CanaryReleaseJob) LintJob() error
- func (j *CanaryReleaseJob) MergeArgs(args *commonmodels.Job) error
- func (j *CanaryReleaseJob) SetOptions() error
- func (j *CanaryReleaseJob) SetPreset() error
- func (j *CanaryReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *CanaryReleaseJob) UpdateWithLatestSetting() error
- type CustomDeployJob
- func (j *CustomDeployJob) ClearSelectionField() error
- func (j *CustomDeployJob) Instantiate() error
- func (j *CustomDeployJob) LintJob() error
- func (j *CustomDeployJob) MergeArgs(args *commonmodels.Job) error
- func (j *CustomDeployJob) SetOptions() error
- func (j *CustomDeployJob) SetPreset() error
- func (j *CustomDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *CustomDeployJob) UpdateWithLatestSetting() error
- type DeployJob
- func (j *DeployJob) ClearSelectionField() error
- func (j *DeployJob) GetOutPuts(log *zap.SugaredLogger) []string
- func (j *DeployJob) Instantiate() error
- func (j *DeployJob) LintJob() error
- func (j *DeployJob) MergeArgs(args *commonmodels.Job) error
- func (j *DeployJob) SetOptions() error
- func (j *DeployJob) SetPreset() error
- func (j *DeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *DeployJob) UpdateWithLatestSetting() error
- type FreeStyleJob
- func (j *FreeStyleJob) ClearSelectionField() error
- func (j *FreeStyleJob) GetOutPuts(log *zap.SugaredLogger) []string
- func (j *FreeStyleJob) GetRepos() ([]*types.Repository, error)
- func (j *FreeStyleJob) Instantiate() error
- func (j *FreeStyleJob) LintJob() error
- func (j *FreeStyleJob) MergeArgs(args *commonmodels.Job) error
- func (j *FreeStyleJob) MergeWebhookRepo(webhookRepo *types.Repository) error
- func (j *FreeStyleJob) SetOptions() error
- func (j *FreeStyleJob) SetPreset() error
- func (j *FreeStyleJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *FreeStyleJob) UpdateWithLatestSetting() error
- type GrafanaJob
- func (j *GrafanaJob) ClearSelectionField() error
- func (j *GrafanaJob) Instantiate() error
- func (j *GrafanaJob) LintJob() error
- func (j *GrafanaJob) MergeArgs(args *commonmodels.Job) error
- func (j *GrafanaJob) SetOptions() error
- func (j *GrafanaJob) SetPreset() error
- func (j *GrafanaJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *GrafanaJob) UpdateWithLatestSetting() error
- type GrayReleaseJob
- func (j *GrayReleaseJob) ClearSelectionField() error
- func (j *GrayReleaseJob) Instantiate() error
- func (j *GrayReleaseJob) LintJob() error
- func (j *GrayReleaseJob) MergeArgs(args *commonmodels.Job) error
- func (j *GrayReleaseJob) SetOptions() error
- func (j *GrayReleaseJob) SetPreset() error
- func (j *GrayReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *GrayReleaseJob) UpdateWithLatestSetting() error
- type GrayRollbackJob
- func (j *GrayRollbackJob) ClearSelectionField() error
- func (j *GrayRollbackJob) Instantiate() error
- func (j *GrayRollbackJob) LintJob() error
- func (j *GrayRollbackJob) MergeArgs(args *commonmodels.Job) error
- func (j *GrayRollbackJob) SetOptions() error
- func (j *GrayRollbackJob) SetPreset() error
- func (j *GrayRollbackJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *GrayRollbackJob) UpdateWithLatestSetting() error
- type GuanceyunCheckJob
- func (j *GuanceyunCheckJob) ClearSelectionField() error
- func (j *GuanceyunCheckJob) Instantiate() error
- func (j *GuanceyunCheckJob) LintJob() error
- func (j *GuanceyunCheckJob) MergeArgs(args *commonmodels.Job) error
- func (j *GuanceyunCheckJob) SetOptions() error
- func (j *GuanceyunCheckJob) SetPreset() error
- func (j *GuanceyunCheckJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *GuanceyunCheckJob) UpdateWithLatestSetting() error
- type HelmChartDeployJob
- func (j *HelmChartDeployJob) ClearSelectionField() error
- func (j *HelmChartDeployJob) Instantiate() error
- func (j *HelmChartDeployJob) LintJob() error
- func (j *HelmChartDeployJob) MergeArgs(args *commonmodels.Job) error
- func (j *HelmChartDeployJob) SetOptions() error
- func (j *HelmChartDeployJob) SetPreset() error
- func (j *HelmChartDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *HelmChartDeployJob) UpdateWithLatestSetting() error
- type ImageDistributeJob
- func (j *ImageDistributeJob) ClearSelectionField() error
- func (j *ImageDistributeJob) GetOutPuts(log *zap.SugaredLogger) []string
- func (j *ImageDistributeJob) Instantiate() error
- func (j *ImageDistributeJob) LintJob() error
- func (j *ImageDistributeJob) MergeArgs(args *commonmodels.Job) error
- func (j *ImageDistributeJob) SetOptions() error
- func (j *ImageDistributeJob) SetPreset() error
- func (j *ImageDistributeJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *ImageDistributeJob) UpdateWithLatestSetting() error
- type IstioReleaseJob
- func (j *IstioReleaseJob) ClearSelectionField() error
- func (j *IstioReleaseJob) Instantiate() error
- func (j *IstioReleaseJob) LintJob() error
- func (j *IstioReleaseJob) MergeArgs(args *commonmodels.Job) error
- func (j *IstioReleaseJob) SetOptions() error
- func (j *IstioReleaseJob) SetPreset() error
- func (j *IstioReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *IstioReleaseJob) UpdateWithLatestSetting() error
- type IstioRollBackJob
- func (j *IstioRollBackJob) ClearSelectionField() error
- func (j *IstioRollBackJob) Instantiate() error
- func (j *IstioRollBackJob) LintJob() error
- func (j *IstioRollBackJob) MergeArgs(args *commonmodels.Job) error
- func (j *IstioRollBackJob) SetOptions() error
- func (j *IstioRollBackJob) SetPreset() error
- func (j *IstioRollBackJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *IstioRollBackJob) UpdateWithLatestSetting() error
- type JenkinsJob
- func (j *JenkinsJob) ClearSelectionField() error
- func (j *JenkinsJob) Instantiate() error
- func (j *JenkinsJob) LintJob() error
- func (j *JenkinsJob) MergeArgs(args *commonmodels.Job) error
- func (j *JenkinsJob) SetOptions() error
- func (j *JenkinsJob) SetPreset() error
- func (j *JenkinsJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *JenkinsJob) UpdateWithLatestSetting() error
- type JiraJob
- func (j *JiraJob) ClearSelectionField() error
- func (j *JiraJob) Instantiate() error
- func (j *JiraJob) LintJob() error
- func (j *JiraJob) MergeArgs(args *commonmodels.Job) error
- func (j *JiraJob) SetOptions() error
- func (j *JiraJob) SetPreset() error
- func (j *JiraJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *JiraJob) UpdateWithLatestSetting() error
- type JobCtl
- type K8sPacthJob
- func (j *K8sPacthJob) ClearSelectionField() error
- func (j *K8sPacthJob) Instantiate() error
- func (j *K8sPacthJob) LintJob() error
- func (j *K8sPacthJob) MergeArgs(args *commonmodels.Job) error
- func (j *K8sPacthJob) SetOptions() error
- func (j *K8sPacthJob) SetPreset() error
- func (j *K8sPacthJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *K8sPacthJob) UpdateWithLatestSetting() error
- type MeegoTransitionJob
- func (j *MeegoTransitionJob) ClearSelectionField() error
- func (j *MeegoTransitionJob) Instantiate() error
- func (j *MeegoTransitionJob) LintJob() error
- func (j *MeegoTransitionJob) MergeArgs(args *commonmodels.Job) error
- func (j *MeegoTransitionJob) SetOptions() error
- func (j *MeegoTransitionJob) SetPreset() error
- func (j *MeegoTransitionJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *MeegoTransitionJob) UpdateWithLatestSetting() error
- type MseGrayOfflineJob
- func (j *MseGrayOfflineJob) ClearSelectionField() error
- func (j *MseGrayOfflineJob) Instantiate() error
- func (j *MseGrayOfflineJob) LintJob() error
- func (j *MseGrayOfflineJob) MergeArgs(args *commonmodels.Job) error
- func (j *MseGrayOfflineJob) SetOptions() error
- func (j *MseGrayOfflineJob) SetPreset() error
- func (j *MseGrayOfflineJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *MseGrayOfflineJob) UpdateWithLatestSetting() error
- type MseGrayReleaseJob
- func (j *MseGrayReleaseJob) ClearSelectionField() error
- func (j *MseGrayReleaseJob) Instantiate() error
- func (j *MseGrayReleaseJob) LintJob() error
- func (j *MseGrayReleaseJob) MergeArgs(args *commonmodels.Job) error
- func (j *MseGrayReleaseJob) SetOptions() error
- func (j *MseGrayReleaseJob) SetPreset() error
- func (j *MseGrayReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *MseGrayReleaseJob) UpdateWithLatestSetting() error
- type NacosJob
- func (j *NacosJob) ClearSelectionField() error
- func (j *NacosJob) Instantiate() error
- func (j *NacosJob) LintJob() error
- func (j *NacosJob) MergeArgs(args *commonmodels.Job) error
- func (j *NacosJob) SetOptions() error
- func (j *NacosJob) SetPreset() error
- func (j *NacosJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *NacosJob) UpdateWithLatestSetting() error
- type OfflineServiceJob
- func (j *OfflineServiceJob) ClearSelectionField() error
- func (j *OfflineServiceJob) Instantiate() error
- func (j *OfflineServiceJob) LintJob() error
- func (j *OfflineServiceJob) MergeArgs(args *commonmodels.Job) error
- func (j *OfflineServiceJob) SetOptions() error
- func (j *OfflineServiceJob) SetPreset() error
- func (j *OfflineServiceJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *OfflineServiceJob) UpdateWithLatestSetting() error
- type PluginJob
- func (j *PluginJob) ClearSelectionField() error
- func (j *PluginJob) GetOutPuts(log *zap.SugaredLogger) []string
- func (j *PluginJob) Instantiate() error
- func (j *PluginJob) LintJob() error
- func (j *PluginJob) MergeArgs(args *commonmodels.Job) error
- func (j *PluginJob) SetOptions() error
- func (j *PluginJob) SetPreset() error
- func (j *PluginJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *PluginJob) UpdateWithLatestSetting() error
- type RepoIndex
- type SQLJob
- func (j *SQLJob) ClearSelectionField() error
- func (j *SQLJob) Instantiate() error
- func (j *SQLJob) LintJob() error
- func (j *SQLJob) MergeArgs(args *commonmodels.Job) error
- func (j *SQLJob) SetOptions() error
- func (j *SQLJob) SetPreset() error
- func (j *SQLJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *SQLJob) UpdateWithLatestSetting() error
- type ScanningJob
- func (j *ScanningJob) ClearSelectionField() error
- func (j *ScanningJob) GetOutPuts(log *zap.SugaredLogger) []string
- func (j *ScanningJob) GetRepos() ([]*types.Repository, error)
- func (j *ScanningJob) Instantiate() error
- func (j *ScanningJob) LintJob() error
- func (j *ScanningJob) MergeArgs(args *commonmodels.Job) error
- func (j *ScanningJob) MergeWebhookRepo(webhookRepo *types.Repository) error
- func (j *ScanningJob) SetOptions() error
- func (j *ScanningJob) SetPreset() error
- func (j *ScanningJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *ScanningJob) UpdateWithLatestSetting() error
- type TestingJob
- func (j *TestingJob) ClearSelectionField() error
- func (j *TestingJob) GetOutPuts(log *zap.SugaredLogger) []string
- func (j *TestingJob) GetRepos() ([]*types.Repository, error)
- func (j *TestingJob) Instantiate() error
- func (j *TestingJob) LintJob() error
- func (j *TestingJob) MergeArgs(args *commonmodels.Job) error
- func (j *TestingJob) MergeWebhookRepo(webhookRepo *types.Repository) error
- func (j *TestingJob) SetOptions() error
- func (j *TestingJob) SetPreset() error
- func (j *TestingJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *TestingJob) UpdateWithLatestSetting() error
- type UpdateEnvIstioConfigJob
- func (j *UpdateEnvIstioConfigJob) ClearSelectionField() error
- func (j *UpdateEnvIstioConfigJob) Instantiate() error
- func (j *UpdateEnvIstioConfigJob) LintJob() error
- func (j *UpdateEnvIstioConfigJob) MergeArgs(args *commonmodels.Job) error
- func (j *UpdateEnvIstioConfigJob) SetOptions() error
- func (j *UpdateEnvIstioConfigJob) SetPreset() error
- func (j *UpdateEnvIstioConfigJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *UpdateEnvIstioConfigJob) UpdateWithLatestSetting() error
- type VMDeployJob
- func (j *VMDeployJob) ClearSelectionField() error
- func (j *VMDeployJob) GetOutPuts(log *zap.SugaredLogger) []string
- func (j *VMDeployJob) GetRepos() ([]*types.Repository, error)
- func (j *VMDeployJob) Instantiate() error
- func (j *VMDeployJob) LintJob() error
- func (j *VMDeployJob) MergeArgs(args *commonmodels.Job) error
- func (j *VMDeployJob) SetOptions() error
- func (j *VMDeployJob) SetPreset() error
- func (j *VMDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *VMDeployJob) UpdateWithLatestSetting() error
- type WorkflowTriggerJob
- func (j *WorkflowTriggerJob) ClearSelectionField() error
- func (j *WorkflowTriggerJob) Instantiate() error
- func (j *WorkflowTriggerJob) LintJob() error
- func (j *WorkflowTriggerJob) MergeArgs(args *commonmodels.Job) error
- func (j *WorkflowTriggerJob) SetOptions() error
- func (j *WorkflowTriggerJob) SetPreset() error
- func (j *WorkflowTriggerJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
- func (j *WorkflowTriggerJob) UpdateWithLatestSetting() error
Constants ¶
View Source
const ( VMOutputNameRegexString = "^[a-zA-Z0-9_]{1,64}$" OutputNameRegexString = "^[a-zA-Z0-9_]{1,64}$" JobNameKey = "job_name" )
View Source
const ( IMAGEKEY = "IMAGE" IMAGETAGKEY = "imageTag" PKGFILEKEY = "PKG_FILE" )
View Source
const ( ENVNAMEKEY = "envName" SERVICESKEY = "services" )
View Source
const ( DistributeTimeout int64 = 10 // WorkflowInputImageTagVariable PreBuildImageTagVariable // These variables are not really workflow variables, will convert to real value or workflow variables // Not return from GetWorkflowGlobalVars function, instead of frontend WorkflowInputImageTagVariable = "{{.workflow.input.imageTag}}" PreBuildImageTagVariable = "{{.job.preBuild.imageTag}}" )
Variables ¶
View Source
var (
OutputNameRegex = regexp.MustCompile(OutputNameRegexString)
)
Functions ¶
func ClearSelectionField ¶ added in v2.3.0
func ClearSelectionField(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
func FilterServiceVars ¶ added in v2.3.0
func FilterServiceVars(serviceName string, deployContents []config.DeployContent, service *commonmodels.DeployServiceInfo, serviceEnv *commonservice.EnvService) (*commonmodels.DeployServiceInfo, error)
func GetRepos ¶
func GetRepos(workflow *commonmodels.WorkflowV4) ([]*types.Repository, error)
func GetWorkflowOutputs ¶
func GetWorkflowOutputs(workflow *commonmodels.WorkflowV4, currentJobName string, log *zap.SugaredLogger) []string
func Instantiate ¶
func Instantiate(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
func InstantiateWorkflow ¶
func InstantiateWorkflow(workflow *commonmodels.WorkflowV4) error
func JobPresetSkiped ¶
func JobPresetSkiped(job *commonmodels.Job)
func JobSkiped ¶
func JobSkiped(job *commonmodels.Job) bool
func LintJob ¶
func LintJob(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
func MergeArgs ¶
func MergeArgs(workflow, workflowArgs *commonmodels.WorkflowV4) error
func MergeWebhookRepo ¶
func MergeWebhookRepo(workflow *commonmodels.WorkflowV4, repo *types.Repository) error
func PrepareDefaultWorkflowTaskEnvs ¶
func PrepareDefaultWorkflowTaskEnvs(projectKey, workflowName, workflowDisplayName, infrastructure string, taskID int64) []*commonmodels.KeyVal
PrepareDefaultWorkflowTaskEnvs System level default environment variables (every workflow type will have it)
func RemoveFixedValueMarks ¶
func RemoveFixedValueMarks(workflow *commonmodels.WorkflowV4) error
before workflowflow task was created, we need to remove the fixed mark from variables.
func RenderGlobalVariables ¶
func RenderGlobalVariables(workflow *commonmodels.WorkflowV4, taskID int64, creator, account string) error
func RenderKeyVals ¶ added in v2.3.0
func RenderKeyVals(input, origin []*commonmodels.KeyVal) []*commonmodels.KeyVal
func RenderStageVariables ¶
func RenderStageVariables(workflow *commonmodels.WorkflowV4, taskID int64, creator string) error
func SetOptions ¶ added in v2.3.0
func SetOptions(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
func SetPreset ¶
func SetPreset(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
func ToJobs ¶
func ToJobs(job *commonmodels.Job, workflow *commonmodels.WorkflowV4, taskID int64) ([]*commonmodels.JobTask, error)
func UpdateWithLatestSetting ¶ added in v2.3.0
func UpdateWithLatestSetting(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) error
Types ¶
type ApolloJob ¶
type ApolloJob struct {
// contains filtered or unexported fields
}
func (*ApolloJob) ClearSelectionField ¶ added in v2.3.0
func (*ApolloJob) Instantiate ¶
func (*ApolloJob) SetOptions ¶ added in v2.3.0
func (*ApolloJob) ToJobs ¶
func (j *ApolloJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*ApolloJob) UpdateWithLatestSetting ¶ added in v2.3.0
type BlueGreenDeployJob ¶
type BlueGreenDeployJob struct {
// contains filtered or unexported fields
}
func (*BlueGreenDeployJob) Instantiate ¶
func (j *BlueGreenDeployJob) Instantiate() error
func (*BlueGreenDeployJob) LintJob ¶
func (j *BlueGreenDeployJob) LintJob() error
func (*BlueGreenDeployJob) MergeArgs ¶
func (j *BlueGreenDeployJob) MergeArgs(args *commonmodels.Job) error
func (*BlueGreenDeployJob) SetPreset ¶
func (j *BlueGreenDeployJob) SetPreset() error
func (*BlueGreenDeployJob) ToJobs ¶
func (j *BlueGreenDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*BlueGreenDeployJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *BlueGreenDeployJob) UpdateWithLatestSetting() error
type BlueGreenDeployV2Job ¶
type BlueGreenDeployV2Job struct {
// contains filtered or unexported fields
}
func (*BlueGreenDeployV2Job) ClearSelectionField ¶ added in v2.3.0
func (j *BlueGreenDeployV2Job) ClearSelectionField() error
func (*BlueGreenDeployV2Job) Instantiate ¶
func (j *BlueGreenDeployV2Job) Instantiate() error
func (*BlueGreenDeployV2Job) LintJob ¶
func (j *BlueGreenDeployV2Job) LintJob() error
func (*BlueGreenDeployV2Job) MergeArgs ¶
func (j *BlueGreenDeployV2Job) MergeArgs(args *commonmodels.Job) error
func (*BlueGreenDeployV2Job) SetOptions ¶ added in v2.3.0
func (j *BlueGreenDeployV2Job) SetOptions() error
func (*BlueGreenDeployV2Job) SetPreset ¶
func (j *BlueGreenDeployV2Job) SetPreset() error
func (*BlueGreenDeployV2Job) ToJobs ¶
func (j *BlueGreenDeployV2Job) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*BlueGreenDeployV2Job) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *BlueGreenDeployV2Job) UpdateWithLatestSetting() error
type BlueGreenReleaseJob ¶
type BlueGreenReleaseJob struct {
// contains filtered or unexported fields
}
func (*BlueGreenReleaseJob) Instantiate ¶
func (j *BlueGreenReleaseJob) Instantiate() error
func (*BlueGreenReleaseJob) LintJob ¶
func (j *BlueGreenReleaseJob) LintJob() error
func (*BlueGreenReleaseJob) MergeArgs ¶
func (j *BlueGreenReleaseJob) MergeArgs(args *commonmodels.Job) error
func (*BlueGreenReleaseJob) SetPreset ¶
func (j *BlueGreenReleaseJob) SetPreset() error
func (*BlueGreenReleaseJob) ToJobs ¶
func (j *BlueGreenReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*BlueGreenReleaseJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *BlueGreenReleaseJob) UpdateWithLatestSetting() error
type BlueGreenReleaseV2Job ¶
type BlueGreenReleaseV2Job struct {
// contains filtered or unexported fields
}
func (*BlueGreenReleaseV2Job) ClearSelectionField ¶ added in v2.3.0
func (j *BlueGreenReleaseV2Job) ClearSelectionField() error
func (*BlueGreenReleaseV2Job) Instantiate ¶
func (j *BlueGreenReleaseV2Job) Instantiate() error
func (*BlueGreenReleaseV2Job) LintJob ¶
func (j *BlueGreenReleaseV2Job) LintJob() error
func (*BlueGreenReleaseV2Job) MergeArgs ¶
func (j *BlueGreenReleaseV2Job) MergeArgs(args *commonmodels.Job) error
func (*BlueGreenReleaseV2Job) SetOptions ¶ added in v2.3.0
func (j *BlueGreenReleaseV2Job) SetOptions() error
func (*BlueGreenReleaseV2Job) SetPreset ¶
func (j *BlueGreenReleaseV2Job) SetPreset() error
func (*BlueGreenReleaseV2Job) ToJobs ¶
func (j *BlueGreenReleaseV2Job) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*BlueGreenReleaseV2Job) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *BlueGreenReleaseV2Job) UpdateWithLatestSetting() error
type BuildJob ¶
type BuildJob struct {
// contains filtered or unexported fields
}
func (*BuildJob) ClearSelectionField ¶ added in v2.3.0
func (*BuildJob) GetOutPuts ¶
func (j *BuildJob) GetOutPuts(log *zap.SugaredLogger) []string
func (*BuildJob) Instantiate ¶
func (*BuildJob) MergeWebhookRepo ¶
func (j *BuildJob) MergeWebhookRepo(webhookRepo *types.Repository) error
func (*BuildJob) SetOptions ¶ added in v2.3.0
func (*BuildJob) UpdateWithLatestSetting ¶ added in v2.3.0
type CanaryDeployJob ¶
type CanaryDeployJob struct {
// contains filtered or unexported fields
}
func (*CanaryDeployJob) ClearSelectionField ¶ added in v2.3.0
func (j *CanaryDeployJob) ClearSelectionField() error
func (*CanaryDeployJob) Instantiate ¶
func (j *CanaryDeployJob) Instantiate() error
func (*CanaryDeployJob) LintJob ¶
func (j *CanaryDeployJob) LintJob() error
func (*CanaryDeployJob) MergeArgs ¶
func (j *CanaryDeployJob) MergeArgs(args *commonmodels.Job) error
func (*CanaryDeployJob) SetOptions ¶ added in v2.3.0
func (j *CanaryDeployJob) SetOptions() error
func (*CanaryDeployJob) SetPreset ¶
func (j *CanaryDeployJob) SetPreset() error
func (*CanaryDeployJob) ToJobs ¶
func (j *CanaryDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*CanaryDeployJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *CanaryDeployJob) UpdateWithLatestSetting() error
type CanaryReleaseJob ¶
type CanaryReleaseJob struct {
// contains filtered or unexported fields
}
func (*CanaryReleaseJob) ClearSelectionField ¶ added in v2.3.0
func (j *CanaryReleaseJob) ClearSelectionField() error
func (*CanaryReleaseJob) Instantiate ¶
func (j *CanaryReleaseJob) Instantiate() error
func (*CanaryReleaseJob) LintJob ¶
func (j *CanaryReleaseJob) LintJob() error
func (*CanaryReleaseJob) MergeArgs ¶
func (j *CanaryReleaseJob) MergeArgs(args *commonmodels.Job) error
func (*CanaryReleaseJob) SetOptions ¶ added in v2.3.0
func (j *CanaryReleaseJob) SetOptions() error
func (*CanaryReleaseJob) SetPreset ¶
func (j *CanaryReleaseJob) SetPreset() error
func (*CanaryReleaseJob) ToJobs ¶
func (j *CanaryReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*CanaryReleaseJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *CanaryReleaseJob) UpdateWithLatestSetting() error
type CustomDeployJob ¶
type CustomDeployJob struct {
// contains filtered or unexported fields
}
func (*CustomDeployJob) ClearSelectionField ¶ added in v2.3.0
func (j *CustomDeployJob) ClearSelectionField() error
func (*CustomDeployJob) Instantiate ¶
func (j *CustomDeployJob) Instantiate() error
func (*CustomDeployJob) LintJob ¶
func (j *CustomDeployJob) LintJob() error
func (*CustomDeployJob) MergeArgs ¶
func (j *CustomDeployJob) MergeArgs(args *commonmodels.Job) error
func (*CustomDeployJob) SetOptions ¶ added in v2.3.0
func (j *CustomDeployJob) SetOptions() error
SetOptions get the options from the original workflow regardless of the currently selected items
func (*CustomDeployJob) SetPreset ¶
func (j *CustomDeployJob) SetPreset() error
func (*CustomDeployJob) ToJobs ¶
func (j *CustomDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*CustomDeployJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *CustomDeployJob) UpdateWithLatestSetting() error
type DeployJob ¶
type DeployJob struct {
// contains filtered or unexported fields
}
func (*DeployJob) ClearSelectionField ¶ added in v2.3.0
func (*DeployJob) GetOutPuts ¶
func (j *DeployJob) GetOutPuts(log *zap.SugaredLogger) []string
func (*DeployJob) Instantiate ¶
func (*DeployJob) SetOptions ¶ added in v2.3.0
SetOptions get the service deployment info from ALL envs and set these information into the EnvOptions Field
func (*DeployJob) ToJobs ¶
func (j *DeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*DeployJob) UpdateWithLatestSetting ¶ added in v2.3.0
type FreeStyleJob ¶
type FreeStyleJob struct {
// contains filtered or unexported fields
}
func (*FreeStyleJob) ClearSelectionField ¶ added in v2.3.0
func (j *FreeStyleJob) ClearSelectionField() error
func (*FreeStyleJob) GetOutPuts ¶
func (j *FreeStyleJob) GetOutPuts(log *zap.SugaredLogger) []string
func (*FreeStyleJob) GetRepos ¶
func (j *FreeStyleJob) GetRepos() ([]*types.Repository, error)
func (*FreeStyleJob) Instantiate ¶
func (j *FreeStyleJob) Instantiate() error
func (*FreeStyleJob) LintJob ¶
func (j *FreeStyleJob) LintJob() error
func (*FreeStyleJob) MergeArgs ¶
func (j *FreeStyleJob) MergeArgs(args *commonmodels.Job) error
func (*FreeStyleJob) MergeWebhookRepo ¶
func (j *FreeStyleJob) MergeWebhookRepo(webhookRepo *types.Repository) error
func (*FreeStyleJob) SetOptions ¶ added in v2.3.0
func (j *FreeStyleJob) SetOptions() error
func (*FreeStyleJob) SetPreset ¶
func (j *FreeStyleJob) SetPreset() error
func (*FreeStyleJob) ToJobs ¶
func (j *FreeStyleJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*FreeStyleJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *FreeStyleJob) UpdateWithLatestSetting() error
type GrafanaJob ¶
type GrafanaJob struct {
// contains filtered or unexported fields
}
func (*GrafanaJob) ClearSelectionField ¶ added in v2.3.0
func (j *GrafanaJob) ClearSelectionField() error
func (*GrafanaJob) Instantiate ¶
func (j *GrafanaJob) Instantiate() error
func (*GrafanaJob) LintJob ¶
func (j *GrafanaJob) LintJob() error
func (*GrafanaJob) MergeArgs ¶
func (j *GrafanaJob) MergeArgs(args *commonmodels.Job) error
func (*GrafanaJob) SetOptions ¶ added in v2.3.0
func (j *GrafanaJob) SetOptions() error
func (*GrafanaJob) SetPreset ¶
func (j *GrafanaJob) SetPreset() error
func (*GrafanaJob) ToJobs ¶
func (j *GrafanaJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*GrafanaJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *GrafanaJob) UpdateWithLatestSetting() error
type GrayReleaseJob ¶
type GrayReleaseJob struct {
// contains filtered or unexported fields
}
func (*GrayReleaseJob) ClearSelectionField ¶ added in v2.3.0
func (j *GrayReleaseJob) ClearSelectionField() error
func (*GrayReleaseJob) Instantiate ¶
func (j *GrayReleaseJob) Instantiate() error
func (*GrayReleaseJob) LintJob ¶
func (j *GrayReleaseJob) LintJob() error
func (*GrayReleaseJob) MergeArgs ¶
func (j *GrayReleaseJob) MergeArgs(args *commonmodels.Job) error
func (*GrayReleaseJob) SetOptions ¶ added in v2.3.0
func (j *GrayReleaseJob) SetOptions() error
func (*GrayReleaseJob) SetPreset ¶
func (j *GrayReleaseJob) SetPreset() error
func (*GrayReleaseJob) ToJobs ¶
func (j *GrayReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*GrayReleaseJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *GrayReleaseJob) UpdateWithLatestSetting() error
type GrayRollbackJob ¶
type GrayRollbackJob struct {
// contains filtered or unexported fields
}
func (*GrayRollbackJob) ClearSelectionField ¶ added in v2.3.0
func (j *GrayRollbackJob) ClearSelectionField() error
func (*GrayRollbackJob) Instantiate ¶
func (j *GrayRollbackJob) Instantiate() error
func (*GrayRollbackJob) LintJob ¶
func (j *GrayRollbackJob) LintJob() error
func (*GrayRollbackJob) MergeArgs ¶
func (j *GrayRollbackJob) MergeArgs(args *commonmodels.Job) error
func (*GrayRollbackJob) SetOptions ¶ added in v2.3.0
func (j *GrayRollbackJob) SetOptions() error
func (*GrayRollbackJob) SetPreset ¶
func (j *GrayRollbackJob) SetPreset() error
func (*GrayRollbackJob) ToJobs ¶
func (j *GrayRollbackJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*GrayRollbackJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *GrayRollbackJob) UpdateWithLatestSetting() error
type GuanceyunCheckJob ¶
type GuanceyunCheckJob struct {
// contains filtered or unexported fields
}
func (*GuanceyunCheckJob) ClearSelectionField ¶ added in v2.3.0
func (j *GuanceyunCheckJob) ClearSelectionField() error
func (*GuanceyunCheckJob) Instantiate ¶
func (j *GuanceyunCheckJob) Instantiate() error
func (*GuanceyunCheckJob) LintJob ¶
func (j *GuanceyunCheckJob) LintJob() error
func (*GuanceyunCheckJob) MergeArgs ¶
func (j *GuanceyunCheckJob) MergeArgs(args *commonmodels.Job) error
func (*GuanceyunCheckJob) SetOptions ¶ added in v2.3.0
func (j *GuanceyunCheckJob) SetOptions() error
func (*GuanceyunCheckJob) SetPreset ¶
func (j *GuanceyunCheckJob) SetPreset() error
func (*GuanceyunCheckJob) ToJobs ¶
func (j *GuanceyunCheckJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*GuanceyunCheckJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *GuanceyunCheckJob) UpdateWithLatestSetting() error
type HelmChartDeployJob ¶
type HelmChartDeployJob struct {
// contains filtered or unexported fields
}
func (*HelmChartDeployJob) ClearSelectionField ¶ added in v2.3.0
func (j *HelmChartDeployJob) ClearSelectionField() error
func (*HelmChartDeployJob) Instantiate ¶
func (j *HelmChartDeployJob) Instantiate() error
func (*HelmChartDeployJob) LintJob ¶
func (j *HelmChartDeployJob) LintJob() error
func (*HelmChartDeployJob) MergeArgs ¶
func (j *HelmChartDeployJob) MergeArgs(args *commonmodels.Job) error
func (*HelmChartDeployJob) SetOptions ¶ added in v2.3.0
func (j *HelmChartDeployJob) SetOptions() error
SetOptions gets all helm chart info in all envs, and set it in EnvOptions field
func (*HelmChartDeployJob) SetPreset ¶
func (j *HelmChartDeployJob) SetPreset() error
func (*HelmChartDeployJob) ToJobs ¶
func (j *HelmChartDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*HelmChartDeployJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *HelmChartDeployJob) UpdateWithLatestSetting() error
type ImageDistributeJob ¶
type ImageDistributeJob struct {
// contains filtered or unexported fields
}
func (*ImageDistributeJob) ClearSelectionField ¶ added in v2.3.0
func (j *ImageDistributeJob) ClearSelectionField() error
func (*ImageDistributeJob) GetOutPuts ¶
func (j *ImageDistributeJob) GetOutPuts(log *zap.SugaredLogger) []string
func (*ImageDistributeJob) Instantiate ¶
func (j *ImageDistributeJob) Instantiate() error
func (*ImageDistributeJob) LintJob ¶
func (j *ImageDistributeJob) LintJob() error
func (*ImageDistributeJob) MergeArgs ¶
func (j *ImageDistributeJob) MergeArgs(args *commonmodels.Job) error
func (*ImageDistributeJob) SetOptions ¶ added in v2.3.0
func (j *ImageDistributeJob) SetOptions() error
func (*ImageDistributeJob) SetPreset ¶
func (j *ImageDistributeJob) SetPreset() error
func (*ImageDistributeJob) ToJobs ¶
func (j *ImageDistributeJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*ImageDistributeJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *ImageDistributeJob) UpdateWithLatestSetting() error
type IstioReleaseJob ¶
type IstioReleaseJob struct {
// contains filtered or unexported fields
}
func (*IstioReleaseJob) ClearSelectionField ¶ added in v2.3.0
func (j *IstioReleaseJob) ClearSelectionField() error
func (*IstioReleaseJob) Instantiate ¶
func (j *IstioReleaseJob) Instantiate() error
func (*IstioReleaseJob) LintJob ¶
func (j *IstioReleaseJob) LintJob() error
func (*IstioReleaseJob) MergeArgs ¶
func (j *IstioReleaseJob) MergeArgs(args *commonmodels.Job) error
func (*IstioReleaseJob) SetOptions ¶ added in v2.3.0
func (j *IstioReleaseJob) SetOptions() error
func (*IstioReleaseJob) SetPreset ¶
func (j *IstioReleaseJob) SetPreset() error
func (*IstioReleaseJob) ToJobs ¶
func (j *IstioReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*IstioReleaseJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *IstioReleaseJob) UpdateWithLatestSetting() error
type IstioRollBackJob ¶
type IstioRollBackJob struct {
// contains filtered or unexported fields
}
func (*IstioRollBackJob) ClearSelectionField ¶ added in v2.3.0
func (j *IstioRollBackJob) ClearSelectionField() error
func (*IstioRollBackJob) Instantiate ¶
func (j *IstioRollBackJob) Instantiate() error
func (*IstioRollBackJob) LintJob ¶
func (j *IstioRollBackJob) LintJob() error
func (*IstioRollBackJob) MergeArgs ¶
func (j *IstioRollBackJob) MergeArgs(args *commonmodels.Job) error
func (*IstioRollBackJob) SetOptions ¶ added in v2.3.0
func (j *IstioRollBackJob) SetOptions() error
func (*IstioRollBackJob) SetPreset ¶
func (j *IstioRollBackJob) SetPreset() error
func (*IstioRollBackJob) ToJobs ¶
func (j *IstioRollBackJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*IstioRollBackJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *IstioRollBackJob) UpdateWithLatestSetting() error
type JenkinsJob ¶
type JenkinsJob struct {
// contains filtered or unexported fields
}
func (*JenkinsJob) ClearSelectionField ¶ added in v2.3.0
func (j *JenkinsJob) ClearSelectionField() error
func (*JenkinsJob) Instantiate ¶
func (j *JenkinsJob) Instantiate() error
func (*JenkinsJob) LintJob ¶
func (j *JenkinsJob) LintJob() error
func (*JenkinsJob) MergeArgs ¶
func (j *JenkinsJob) MergeArgs(args *commonmodels.Job) error
func (*JenkinsJob) SetOptions ¶ added in v2.3.0
func (j *JenkinsJob) SetOptions() error
func (*JenkinsJob) SetPreset ¶
func (j *JenkinsJob) SetPreset() error
func (*JenkinsJob) ToJobs ¶
func (j *JenkinsJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*JenkinsJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *JenkinsJob) UpdateWithLatestSetting() error
type JiraJob ¶
type JiraJob struct {
// contains filtered or unexported fields
}
func (*JiraJob) ClearSelectionField ¶ added in v2.3.0
func (*JiraJob) Instantiate ¶
func (*JiraJob) SetOptions ¶ added in v2.3.0
func (*JiraJob) UpdateWithLatestSetting ¶ added in v2.3.0
type JobCtl ¶
type JobCtl interface { Instantiate() error // SetPreset sets all the default values configured by user SetPreset() error // SetOptions sets all the possible options for the workflow SetOptions() error ClearSelectionField() error ToJobs(taskID int64) ([]*commonmodels.JobTask, error) // MergeArgs merge the current workflow with the user input: args MergeArgs(args *commonmodels.Job) error // UpdateWithLatestSetting update the current workflow arguments with the latest workflow settings. // it will also calculate if the user's args is still valid, returning error if it is invalid. UpdateWithLatestSetting() error LintJob() error }
func InitJobCtl ¶
func InitJobCtl(job *commonmodels.Job, workflow *commonmodels.WorkflowV4) (JobCtl, error)
type K8sPacthJob ¶
type K8sPacthJob struct {
// contains filtered or unexported fields
}
func (*K8sPacthJob) ClearSelectionField ¶ added in v2.3.0
func (j *K8sPacthJob) ClearSelectionField() error
func (*K8sPacthJob) Instantiate ¶
func (j *K8sPacthJob) Instantiate() error
func (*K8sPacthJob) LintJob ¶
func (j *K8sPacthJob) LintJob() error
func (*K8sPacthJob) MergeArgs ¶
func (j *K8sPacthJob) MergeArgs(args *commonmodels.Job) error
func (*K8sPacthJob) SetOptions ¶ added in v2.3.0
func (j *K8sPacthJob) SetOptions() error
func (*K8sPacthJob) SetPreset ¶
func (j *K8sPacthJob) SetPreset() error
func (*K8sPacthJob) ToJobs ¶
func (j *K8sPacthJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*K8sPacthJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *K8sPacthJob) UpdateWithLatestSetting() error
type MeegoTransitionJob ¶
type MeegoTransitionJob struct {
// contains filtered or unexported fields
}
func (*MeegoTransitionJob) ClearSelectionField ¶ added in v2.3.0
func (j *MeegoTransitionJob) ClearSelectionField() error
func (*MeegoTransitionJob) Instantiate ¶
func (j *MeegoTransitionJob) Instantiate() error
func (*MeegoTransitionJob) LintJob ¶
func (j *MeegoTransitionJob) LintJob() error
func (*MeegoTransitionJob) MergeArgs ¶
func (j *MeegoTransitionJob) MergeArgs(args *commonmodels.Job) error
func (*MeegoTransitionJob) SetOptions ¶ added in v2.3.0
func (j *MeegoTransitionJob) SetOptions() error
func (*MeegoTransitionJob) SetPreset ¶
func (j *MeegoTransitionJob) SetPreset() error
func (*MeegoTransitionJob) ToJobs ¶
func (j *MeegoTransitionJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*MeegoTransitionJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *MeegoTransitionJob) UpdateWithLatestSetting() error
type MseGrayOfflineJob ¶
type MseGrayOfflineJob struct {
// contains filtered or unexported fields
}
func (*MseGrayOfflineJob) ClearSelectionField ¶ added in v2.3.0
func (j *MseGrayOfflineJob) ClearSelectionField() error
func (*MseGrayOfflineJob) Instantiate ¶
func (j *MseGrayOfflineJob) Instantiate() error
func (*MseGrayOfflineJob) LintJob ¶
func (j *MseGrayOfflineJob) LintJob() error
func (*MseGrayOfflineJob) MergeArgs ¶
func (j *MseGrayOfflineJob) MergeArgs(args *commonmodels.Job) error
func (*MseGrayOfflineJob) SetOptions ¶ added in v2.3.0
func (j *MseGrayOfflineJob) SetOptions() error
func (*MseGrayOfflineJob) SetPreset ¶
func (j *MseGrayOfflineJob) SetPreset() error
func (*MseGrayOfflineJob) ToJobs ¶
func (j *MseGrayOfflineJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*MseGrayOfflineJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *MseGrayOfflineJob) UpdateWithLatestSetting() error
type MseGrayReleaseJob ¶
type MseGrayReleaseJob struct {
// contains filtered or unexported fields
}
func (*MseGrayReleaseJob) ClearSelectionField ¶ added in v2.3.0
func (j *MseGrayReleaseJob) ClearSelectionField() error
func (*MseGrayReleaseJob) Instantiate ¶
func (j *MseGrayReleaseJob) Instantiate() error
func (*MseGrayReleaseJob) LintJob ¶
func (j *MseGrayReleaseJob) LintJob() error
func (*MseGrayReleaseJob) MergeArgs ¶
func (j *MseGrayReleaseJob) MergeArgs(args *commonmodels.Job) error
func (*MseGrayReleaseJob) SetOptions ¶ added in v2.3.0
func (j *MseGrayReleaseJob) SetOptions() error
func (*MseGrayReleaseJob) SetPreset ¶
func (j *MseGrayReleaseJob) SetPreset() error
func (*MseGrayReleaseJob) ToJobs ¶
func (j *MseGrayReleaseJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*MseGrayReleaseJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *MseGrayReleaseJob) UpdateWithLatestSetting() error
type NacosJob ¶
type NacosJob struct {
// contains filtered or unexported fields
}
func (*NacosJob) ClearSelectionField ¶ added in v2.3.0
func (*NacosJob) Instantiate ¶
func (*NacosJob) SetOptions ¶ added in v2.3.0
func (*NacosJob) UpdateWithLatestSetting ¶ added in v2.3.0
UpdateWithLatestSetting Special thing about this is that everytime it is called, it re-calculate the latest default values.
type OfflineServiceJob ¶
type OfflineServiceJob struct {
// contains filtered or unexported fields
}
func (*OfflineServiceJob) ClearSelectionField ¶ added in v2.3.0
func (j *OfflineServiceJob) ClearSelectionField() error
func (*OfflineServiceJob) Instantiate ¶
func (j *OfflineServiceJob) Instantiate() error
func (*OfflineServiceJob) LintJob ¶
func (j *OfflineServiceJob) LintJob() error
func (*OfflineServiceJob) MergeArgs ¶
func (j *OfflineServiceJob) MergeArgs(args *commonmodels.Job) error
func (*OfflineServiceJob) SetOptions ¶ added in v2.3.0
func (j *OfflineServiceJob) SetOptions() error
func (*OfflineServiceJob) SetPreset ¶
func (j *OfflineServiceJob) SetPreset() error
func (*OfflineServiceJob) ToJobs ¶
func (j *OfflineServiceJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*OfflineServiceJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *OfflineServiceJob) UpdateWithLatestSetting() error
type PluginJob ¶
type PluginJob struct {
// contains filtered or unexported fields
}
func (*PluginJob) ClearSelectionField ¶ added in v2.3.0
func (*PluginJob) GetOutPuts ¶
func (j *PluginJob) GetOutPuts(log *zap.SugaredLogger) []string
func (*PluginJob) Instantiate ¶
func (*PluginJob) SetOptions ¶ added in v2.3.0
func (*PluginJob) ToJobs ¶
func (j *PluginJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*PluginJob) UpdateWithLatestSetting ¶ added in v2.3.0
type RepoIndex ¶
type RepoIndex struct { JobName string `json:"job_name"` ServiceName string `json:"service_name"` ServiceModule string `json:"service_module"` RepoIndex int `json:"repo_index"` }
func GetWorkflowRepoIndex ¶
func GetWorkflowRepoIndex(workflow *commonmodels.WorkflowV4, currentJobName string, log *zap.SugaredLogger) []*RepoIndex
type SQLJob ¶
type SQLJob struct {
// contains filtered or unexported fields
}
func (*SQLJob) ClearSelectionField ¶ added in v2.3.0
func (*SQLJob) Instantiate ¶
func (*SQLJob) SetOptions ¶ added in v2.3.0
func (*SQLJob) UpdateWithLatestSetting ¶ added in v2.3.0
type ScanningJob ¶
type ScanningJob struct {
// contains filtered or unexported fields
}
func (*ScanningJob) ClearSelectionField ¶ added in v2.3.0
func (j *ScanningJob) ClearSelectionField() error
func (*ScanningJob) GetOutPuts ¶
func (j *ScanningJob) GetOutPuts(log *zap.SugaredLogger) []string
func (*ScanningJob) GetRepos ¶
func (j *ScanningJob) GetRepos() ([]*types.Repository, error)
func (*ScanningJob) Instantiate ¶
func (j *ScanningJob) Instantiate() error
func (*ScanningJob) LintJob ¶
func (j *ScanningJob) LintJob() error
func (*ScanningJob) MergeArgs ¶
func (j *ScanningJob) MergeArgs(args *commonmodels.Job) error
func (*ScanningJob) MergeWebhookRepo ¶
func (j *ScanningJob) MergeWebhookRepo(webhookRepo *types.Repository) error
func (*ScanningJob) SetOptions ¶ added in v2.3.0
func (j *ScanningJob) SetOptions() error
func (*ScanningJob) SetPreset ¶
func (j *ScanningJob) SetPreset() error
func (*ScanningJob) ToJobs ¶
func (j *ScanningJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*ScanningJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *ScanningJob) UpdateWithLatestSetting() error
type TestingJob ¶
type TestingJob struct {
// contains filtered or unexported fields
}
func (*TestingJob) ClearSelectionField ¶ added in v2.3.0
func (j *TestingJob) ClearSelectionField() error
func (*TestingJob) GetOutPuts ¶
func (j *TestingJob) GetOutPuts(log *zap.SugaredLogger) []string
func (*TestingJob) GetRepos ¶
func (j *TestingJob) GetRepos() ([]*types.Repository, error)
func (*TestingJob) Instantiate ¶
func (j *TestingJob) Instantiate() error
func (*TestingJob) LintJob ¶
func (j *TestingJob) LintJob() error
func (*TestingJob) MergeArgs ¶
func (j *TestingJob) MergeArgs(args *commonmodels.Job) error
func (*TestingJob) MergeWebhookRepo ¶
func (j *TestingJob) MergeWebhookRepo(webhookRepo *types.Repository) error
func (*TestingJob) SetOptions ¶ added in v2.3.0
func (j *TestingJob) SetOptions() error
func (*TestingJob) SetPreset ¶
func (j *TestingJob) SetPreset() error
func (*TestingJob) ToJobs ¶
func (j *TestingJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*TestingJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *TestingJob) UpdateWithLatestSetting() error
type UpdateEnvIstioConfigJob ¶ added in v2.3.0
type UpdateEnvIstioConfigJob struct {
// contains filtered or unexported fields
}
func (*UpdateEnvIstioConfigJob) ClearSelectionField ¶ added in v2.3.0
func (j *UpdateEnvIstioConfigJob) ClearSelectionField() error
func (*UpdateEnvIstioConfigJob) Instantiate ¶ added in v2.3.0
func (j *UpdateEnvIstioConfigJob) Instantiate() error
func (*UpdateEnvIstioConfigJob) LintJob ¶ added in v2.3.0
func (j *UpdateEnvIstioConfigJob) LintJob() error
func (*UpdateEnvIstioConfigJob) MergeArgs ¶ added in v2.3.0
func (j *UpdateEnvIstioConfigJob) MergeArgs(args *commonmodels.Job) error
func (*UpdateEnvIstioConfigJob) SetOptions ¶ added in v2.3.0
func (j *UpdateEnvIstioConfigJob) SetOptions() error
func (*UpdateEnvIstioConfigJob) SetPreset ¶ added in v2.3.0
func (j *UpdateEnvIstioConfigJob) SetPreset() error
func (*UpdateEnvIstioConfigJob) ToJobs ¶ added in v2.3.0
func (j *UpdateEnvIstioConfigJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*UpdateEnvIstioConfigJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *UpdateEnvIstioConfigJob) UpdateWithLatestSetting() error
type VMDeployJob ¶
type VMDeployJob struct {
// contains filtered or unexported fields
}
func (*VMDeployJob) ClearSelectionField ¶ added in v2.3.0
func (j *VMDeployJob) ClearSelectionField() error
func (*VMDeployJob) GetOutPuts ¶
func (j *VMDeployJob) GetOutPuts(log *zap.SugaredLogger) []string
func (*VMDeployJob) GetRepos ¶
func (j *VMDeployJob) GetRepos() ([]*types.Repository, error)
func (*VMDeployJob) Instantiate ¶
func (j *VMDeployJob) Instantiate() error
func (*VMDeployJob) LintJob ¶
func (j *VMDeployJob) LintJob() error
func (*VMDeployJob) MergeArgs ¶
func (j *VMDeployJob) MergeArgs(args *commonmodels.Job) error
func (*VMDeployJob) SetOptions ¶ added in v2.3.0
func (j *VMDeployJob) SetOptions() error
func (*VMDeployJob) SetPreset ¶
func (j *VMDeployJob) SetPreset() error
func (*VMDeployJob) ToJobs ¶
func (j *VMDeployJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*VMDeployJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *VMDeployJob) UpdateWithLatestSetting() error
type WorkflowTriggerJob ¶
type WorkflowTriggerJob struct {
// contains filtered or unexported fields
}
func (*WorkflowTriggerJob) ClearSelectionField ¶ added in v2.3.0
func (j *WorkflowTriggerJob) ClearSelectionField() error
func (*WorkflowTriggerJob) Instantiate ¶
func (j *WorkflowTriggerJob) Instantiate() error
func (*WorkflowTriggerJob) LintJob ¶
func (j *WorkflowTriggerJob) LintJob() error
func (*WorkflowTriggerJob) MergeArgs ¶
func (j *WorkflowTriggerJob) MergeArgs(args *commonmodels.Job) error
func (*WorkflowTriggerJob) SetOptions ¶ added in v2.3.0
func (j *WorkflowTriggerJob) SetOptions() error
func (*WorkflowTriggerJob) SetPreset ¶
func (j *WorkflowTriggerJob) SetPreset() error
func (*WorkflowTriggerJob) ToJobs ¶
func (j *WorkflowTriggerJob) ToJobs(taskID int64) ([]*commonmodels.JobTask, error)
func (*WorkflowTriggerJob) UpdateWithLatestSetting ¶ added in v2.3.0
func (j *WorkflowTriggerJob) UpdateWithLatestSetting() error
Source Files ¶
- job.go
- job_apollo.go
- job_blue_green_deploy.go
- job_blue_green_deploy_v2.go
- job_blue_green_release.go
- job_blue_green_release_v2.go
- job_build.go
- job_canary_deploy.go
- job_canary_release.go
- job_custom_deploy.go
- job_deploy.go
- job_distribute_image.go
- job_freestyle.go
- job_grafana.go
- job_gray_release.go
- job_gray_rollback.go
- job_guanceyun.go
- job_helm_chart_deploy.go
- job_istio_release.go
- job_istio_rollback.go
- job_jenkins.go
- job_jira.go
- job_k8s_patch.go
- job_meego_transition.go
- job_mse_gray_offline.go
- job_mse_gray_release.go
- job_nacos.go
- job_offline_service.go
- job_plugin.go
- job_scanning.go
- job_sql.go
- job_testing.go
- job_update_env_istio_config.go
- job_vm_deploy.go
- job_workflow_trigger.go
- utils.go
Click to show internal directories.
Click to hide internal directories.