handler

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 36 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproveStage

func ApproveStage(c *gin.Context)

func AutoCreateWorkflow

func AutoCreateWorkflow(c *gin.Context)

func BuildModuleToSubTasks

func BuildModuleToSubTasks(c *gin.Context)

func CancelWorkflowTaskV2

func CancelWorkflowTaskV2(c *gin.Context)

func CancelWorkflowTaskV4

func CancelWorkflowTaskV4(c *gin.Context)

func CheckShareStorageEnabled

func CheckShareStorageEnabled(c *gin.Context)

func CheckWorkflowV4Approval

func CheckWorkflowV4Approval(c *gin.Context)

func CloneWorkflowTaskV4

func CloneWorkflowTaskV4(c *gin.Context)

func CompareHelmServiceYamlInEnv

func CompareHelmServiceYamlInEnv(c *gin.Context)

@Summary Compare Helm Service Yaml In Env @Description Compare Helm Service Yaml In Env @Tags workflow @Accept json @Produce json @Param body body getHelmValuesDifferenceReq true "body" @Success 200 {object} workflow.GetHelmValuesDifferenceResp @Router /api/aslan/workflow/v4/yamlComparison [post]

func CopyWorkflow

func CopyWorkflow(c *gin.Context)

func CreateArtifactWorkflowTask

func CreateArtifactWorkflowTask(c *gin.Context)

CreateArtifactWorkflowTask create a artifact workflow task

func CreateCronForWorkflowV4

func CreateCronForWorkflowV4(c *gin.Context)

func CreateCustomWorkflowTask

func CreateCustomWorkflowTask(c *gin.Context)

func CreateFavoritePipeline

func CreateFavoritePipeline(c *gin.Context)

func CreateGeneralHookForWorkflowV4

func CreateGeneralHookForWorkflowV4(c *gin.Context)

func CreateJiraHookForWorkflowV4

func CreateJiraHookForWorkflowV4(c *gin.Context)

func CreateMeegoHookForWorkflowV4

func CreateMeegoHookForWorkflowV4(c *gin.Context)

func CreateWebhookForWorkflowV4

func CreateWebhookForWorkflowV4(c *gin.Context)

func CreateWorkflow

func CreateWorkflow(c *gin.Context)

func CreateWorkflowTask

func CreateWorkflowTask(c *gin.Context)

CreateWorkflowTask create a workflow task

func CreateWorkflowTaskV4

func CreateWorkflowTaskV4(c *gin.Context)

func CreateWorkflowTaskV4ByBuildInTrigger

func CreateWorkflowTaskV4ByBuildInTrigger(c *gin.Context)

TODO: fix the authorization problem for this

func CreateWorkflowV4

func CreateWorkflowV4(c *gin.Context)

func CreateWorkflowView

func CreateWorkflowView(c *gin.Context)

func DeleteCronForWorkflowV4

func DeleteCronForWorkflowV4(c *gin.Context)

func DeleteFavoritePipeline

func DeleteFavoritePipeline(c *gin.Context)

func DeleteGeneralHookForWorkflowV4

func DeleteGeneralHookForWorkflowV4(c *gin.Context)

func DeleteJiraHookForWorkflowV4

func DeleteJiraHookForWorkflowV4(c *gin.Context)

func DeleteMeegoHookForWorkflowV4

func DeleteMeegoHookForWorkflowV4(c *gin.Context)

func DeletePluginRepo

func DeletePluginRepo(c *gin.Context)

func DeleteWebhookForWorkflowV4

func DeleteWebhookForWorkflowV4(c *gin.Context)

func DeleteWorkflow

func DeleteWorkflow(c *gin.Context)

func DeleteWorkflowV4

func DeleteWorkflowV4(c *gin.Context)

func DeleteWorkflowView

func DeleteWorkflowView(c *gin.Context)

func EnableDebugWorkflowTaskV4

func EnableDebugWorkflowTaskV4(c *gin.Context)

func FindWorkflow

func FindWorkflow(c *gin.Context)

FindWorkflow find a workflow

func FindWorkflowV4

func FindWorkflowV4(c *gin.Context)

func GeneralHookEventHandler

func GeneralHookEventHandler(c *gin.Context)

func GetArtifactFile

func GetArtifactFile(c *gin.Context)

func GetBlueGreenServiceK8sServiceYaml

func GetBlueGreenServiceK8sServiceYaml(c *gin.Context)

func GetBundleResources

func GetBundleResources(c *gin.Context)

func GetCronForWorkflowV4Preset

func GetCronForWorkflowV4Preset(c *gin.Context)

func GetFilteredEnvServices

func GetFilteredEnvServices(c *gin.Context)

@Summary Get filtered env services @Description Get filtered env services @Tags workflow @Accept json @Produce json @Param body body filterDeployServiceVarsQuery true "body" @Success 200 {array} commonmodels.DeployService @Router /api/aslan/workflow/v4/filterEnv [post]

func GetFiltersPipeline

func GetFiltersPipeline(c *gin.Context)

func GetGeneralHookForWorkflowV4Preset

func GetGeneralHookForWorkflowV4Preset(c *gin.Context)

func GetJenkinsJobParams

func GetJenkinsJobParams(c *gin.Context)

func GetJiraHookForWorkflowV4Preset

func GetJiraHookForWorkflowV4Preset(c *gin.Context)

func GetMeegoHookForWorkflowV4Preset

func GetMeegoHookForWorkflowV4Preset(c *gin.Context)

func GetMseOfflineResources

func GetMseOfflineResources(c *gin.Context)

func GetMseTagsInEnv

func GetMseTagsInEnv(c *gin.Context)

func GetPatchParams

func GetPatchParams(c *gin.Context)

func GetPipelineTaskSSE

func GetPipelineTaskSSE(c *gin.Context)

func GetProductNameByWorkflow

func GetProductNameByWorkflow(c *gin.Context)

func GetWebhookForWorkflowV4Preset

func GetWebhookForWorkflowV4Preset(c *gin.Context)

func GetWorkflowArgs

func GetWorkflowArgs(c *gin.Context)

GetWorkflowArgs find workflow args

func GetWorkflowGlobalVars

func GetWorkflowGlobalVars(c *gin.Context)

func GetWorkflowProductName

func GetWorkflowProductName(c *gin.Context)

func GetWorkflowRepoIndex

func GetWorkflowRepoIndex(c *gin.Context)

func GetWorkflowTask

func GetWorkflowTask(c *gin.Context)

func GetWorkflowTaskCallback

func GetWorkflowTaskCallback(c *gin.Context)

func GetWorkflowTaskFilters

func GetWorkflowTaskFilters(c *gin.Context)

func GetWorkflowTaskSSE

func GetWorkflowTaskSSE(c *gin.Context)

func GetWorkflowTaskV3SSE

func GetWorkflowTaskV3SSE(c *gin.Context)

func GetWorkflowTaskV4

func GetWorkflowTaskV4(c *gin.Context)

func GetWorkflowTasksCustomFields

func GetWorkflowTasksCustomFields(c *gin.Context)

func GetWorkflowV4ArtifactFileContent

func GetWorkflowV4ArtifactFileContent(c *gin.Context)

func GetWorkflowV4Preset

func GetWorkflowV4Preset(c *gin.Context)

func GetWorkflowViewPreset

func GetWorkflowViewPreset(c *gin.Context)

func LintWorkflowV4

func LintWorkflowV4(c *gin.Context)

func ListAllAvailableWorkflows

func ListAllAvailableWorkflows(c *gin.Context)

func ListCronForWorkflowV4

func ListCronForWorkflowV4(c *gin.Context)

func ListFavoritePipelines

func ListFavoritePipelines(c *gin.Context)

func ListGeneralHookForWorkflowV4

func ListGeneralHookForWorkflowV4(c *gin.Context)

func ListJiraHookForWorkflowV4

func ListJiraHookForWorkflowV4(c *gin.Context)

func ListMeegoHookForWorkflowV4

func ListMeegoHookForWorkflowV4(c *gin.Context)

func ListPluginTemplates

func ListPluginTemplates(c *gin.Context)

func ListServiceWorkflows

func ListServiceWorkflows(c *gin.Context)

func ListTestWorkflows

func ListTestWorkflows(c *gin.Context)

TODO: this API is used only by picket, should be removed later

func ListUnofficalPluginRepositories

func ListUnofficalPluginRepositories(c *gin.Context)

func ListWebhookForWorkflowV4

func ListWebhookForWorkflowV4(c *gin.Context)

func ListWorkflowTaskV4ByFilter

func ListWorkflowTaskV4ByFilter(c *gin.Context)

func ListWorkflowTasksResult

func ListWorkflowTasksResult(c *gin.Context)

ListWorkflowTasksResult workflowtask分页信息

func ListWorkflowV4

func ListWorkflowV4(c *gin.Context)

func ListWorkflowV4CanTrigger

func ListWorkflowV4CanTrigger(c *gin.Context)

func ListWorkflowViewNames

func ListWorkflowViewNames(c *gin.Context)

func ListWorkflows

func ListWorkflows(c *gin.Context)

func OpenAPIApproveStage

func OpenAPIApproveStage(c *gin.Context)

func OpenAPICancelWorkflowTaskV4

func OpenAPICancelWorkflowTaskV4(c *gin.Context)

func OpenAPICreateProductWorkflowTask

func OpenAPICreateProductWorkflowTask(c *gin.Context)

func OpenAPICreateWorkflowView

func OpenAPICreateWorkflowView(c *gin.Context)

func OpenAPIDeleteCustomWorkflowV4

func OpenAPIDeleteCustomWorkflowV4(c *gin.Context)

func OpenAPIDeleteProductWorkflowV4

func OpenAPIDeleteProductWorkflowV4(c *gin.Context)

func OpenAPIDeleteWorkflowView

func OpenAPIDeleteWorkflowView(c *gin.Context)

func OpenAPIGetCustomWorkflowTaskV4

func OpenAPIGetCustomWorkflowTaskV4(c *gin.Context)

func OpenAPIGetCustomWorkflowV4

func OpenAPIGetCustomWorkflowV4(c *gin.Context)

func OpenAPIGetProductWorkflowTaskV4

func OpenAPIGetProductWorkflowTaskV4(c *gin.Context)

func OpenAPIGetProductWorkflowTasksV4

func OpenAPIGetProductWorkflowTasksV4(c *gin.Context)

func OpenAPIGetWorkflowTaskV4

func OpenAPIGetWorkflowTaskV4(c *gin.Context)

func OpenAPIGetWorkflowV4List

func OpenAPIGetWorkflowV4List(c *gin.Context)

func OpenAPIGetWorkflowViews

func OpenAPIGetWorkflowViews(c *gin.Context)

func OpenAPIRetryCustomWorkflowTaskV4

func OpenAPIRetryCustomWorkflowTaskV4(c *gin.Context)

func OpenAPIUpdateWorkflowView

func OpenAPIUpdateWorkflowView(c *gin.Context)

func PendingPipelineTasksSSE

func PendingPipelineTasksSSE(c *gin.Context)

func PendingWorkflowTasksSSE

func PendingWorkflowTasksSSE(c *gin.Context)

func Placeholder2 added in v2.3.0

func Placeholder2(c *gin.Context)

@Summary [DONT USE] CustomDeployJobSpec @Description [DONT USE] CustomDeployJobSpec @Tags placeholder @Accept json @Produce json @Param deploy_job_spec body commonmodels.CustomDeployJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/custom_deploy_job_spec [post]

func Placeholder3 added in v2.3.0

func Placeholder3(c *gin.Context)

@Summary [DONT USE] ZadigBuildJobSpec @Description [DONT USE] ZadigBuildJobSpec @Tags placeholder @Accept json @Produce json @Param deploy_job_spec body commonmodels.ZadigBuildJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/zadig_build_job_spec [post]

func Placeholder4 added in v2.3.0

func Placeholder4(c *gin.Context)

@Summary [DONT USE] ZadigHelmChartDeployJobSpec @Description [DONT USE] ZadigHelmChartDeployJobSpec @Tags placeholder @Accept json @Produce json @Param deploy_job_spec body commonmodels.ZadigHelmChartDeployJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/zadig_helm_chart_deploy_job_spec [post]

func Placeholder5 added in v2.3.0

func Placeholder5(c *gin.Context)

@Summary [DONT USE] K8sPatchJobSpec @Description [DONT USE] K8sPatchJobSpec @Tags placeholder @Accept json @Produce json @Param deploy_job_spec body commonmodels.K8sPatchJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/k8s_patch_job_spec [post]

func Placeholder6 added in v2.3.0

func Placeholder6(c *gin.Context)

@Summary [DONT USE] BlueGreenDeployV2JobSpec @Description [DONT USE] BlueGreenDeployV2JobSpec @Tags placeholder @Accept json @Produce json @Param blue_green_deploy_v2_jobSpec body commonmodels.BlueGreenDeployV2JobSpec true "body" @Success 200 @Router /api/aslan/placeholder/blue_green_deploy_v2_jobSpec [post]

func Placeholder7 added in v2.3.0

func Placeholder7(c *gin.Context)

@Summary [DONT USE] CanaryDeployJobSpec @Description [DONT USE] CanaryDeployJobSpec @Tags placeholder @Accept json @Produce json @Param canary_deploy_job_spec body commonmodels.CanaryDeployJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/canary_deploy_job_spec [post]

func Placeholder8 added in v2.3.0

func Placeholder8(c *gin.Context)

@Summary [DONT USE] ZadigDistributeImageJobSpec @Description [DONT USE] ZadigDistributeImageJobSpec @Tags placeholder @Accept json @Produce json @Param zadig_distribute_image_job_spec body commonmodels.ZadigDistributeImageJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/zadig_distribute_image_job_spec [post]

func Placeholder9 added in v2.3.0

func Placeholder9(c *gin.Context)

@Summary [DONT USE] GrayReleaseJobSpec @Description [DONT USE] GrayReleaseJobSpec @Tags placeholder @Accept json @Produce json @Param gray_release_job_spec body commonmodels.GrayReleaseJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/gray_release_job_spec [post]

func Placeholder10 added in v2.3.0

func Placeholder10(c *gin.Context)

@Summary [DONT USE] GrayRollbackJobSpec @Description [DONT USE] GrayRollbackJobSpec @Tags placeholder @Accept json @Produce json @Param gray_rollback_job_spec body commonmodels.GrayRollbackJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/gray_rollback_job_spec [post]

func Placeholder11 added in v2.3.0

func Placeholder11(c *gin.Context)

@Summary [DONT USE] ZadigScanningJobSpec @Description [DONT USE] ZadigScanningJobSpec @Tags placeholder @Accept json @Produce json @Param zadig_scanning_job_spec body commonmodels.ZadigScanningJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/zadig_scanning_job_spec [post]

func Placeholder12 added in v2.3.0

func Placeholder12(c *gin.Context)

@Summary [DONT USE] ZadigVMDeployJobSpec @Description [DONT USE] ZadigVMDeployJobSpec @Tags placeholder @Accept json @Produce json @Param zadig_vm_deploy_job_spec body commonmodels.ZadigVMDeployJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/zadig_vm_deploy_job_spec [post]

func Placeholder13 added in v2.3.0

func Placeholder13(c *gin.Context)

@Summary [DONT USE] ApolloJobSpec @Description [DONT USE] ApolloJobSpec @Tags placeholder @Accept json @Produce json @Param apollo_job_spec body commonmodels.ApolloJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/apollo_job_spec [post]

func PlaceholderDeplyJobSpec added in v2.3.0

func PlaceholderDeplyJobSpec(c *gin.Context)

@Summary [DONT USE] ZadigDeployJobSpec @Description [DONT USE] ZadigDeployJobSpec @Tags placeholder @Accept json @Produce json @Param deploy_job_spec body commonmodels.ZadigDeployJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/deploy_job_spec [post]

func PlaceholderUpdateEnvIstioConfigJobSpec added in v2.3.0

func PlaceholderUpdateEnvIstioConfigJobSpec(c *gin.Context)

@Summary [DONT USE] UpdateEnvIstioConfigJobSpec @Description [DONT USE] UpdateEnvIstioConfigJobSpec @Tags placeholder @Accept json @Produce json @Param update_env_istio_config_job_spec body commonmodels.UpdateEnvIstioConfigJobSpec true "body" @Success 200 @Router /api/aslan/placeholder/update_env_istio_config_job_spec [post]

func PreSetWorkflow

func PreSetWorkflow(c *gin.Context)

func PresetWorkflowArgs

func PresetWorkflowArgs(c *gin.Context)

PresetWorkflowArgs find a workflow task

func ProcessWebHook

func ProcessWebHook(c *gin.Context)

func RenderMseServiceYaml

func RenderMseServiceYaml(c *gin.Context)

func RestartWorkflowTask

func RestartWorkflowTask(c *gin.Context)

func RetryWorkflowTaskV4

func RetryWorkflowTaskV4(c *gin.Context)

func RunningPipelineTasksSSE

func RunningPipelineTasksSSE(c *gin.Context)

func RunningWorkflowTasksSSE

func RunningWorkflowTasksSSE(c *gin.Context)

func SetWorkflowTaskV4Breakpoint

func SetWorkflowTaskV4Breakpoint(c *gin.Context)

func SetWorkflowTasksCustomFields

func SetWorkflowTasksCustomFields(c *gin.Context)

func StopDebugWorkflowTaskJobV4

func StopDebugWorkflowTaskJobV4(c *gin.Context)

func UpdateCronForWorkflowV4

func UpdateCronForWorkflowV4(c *gin.Context)

func UpdateGeneralHookForWorkflowV4

func UpdateGeneralHookForWorkflowV4(c *gin.Context)

func UpdateJiraHookForWorkflowV4

func UpdateJiraHookForWorkflowV4(c *gin.Context)

func UpdateMeegoHookForWorkflowV4

func UpdateMeegoHookForWorkflowV4(c *gin.Context)

func UpdateWebhookForWorkflowV4

func UpdateWebhookForWorkflowV4(c *gin.Context)

func UpdateWorkflow

func UpdateWorkflow(c *gin.Context)

UpdateWorkflow update a workflow

func UpdateWorkflowV4

func UpdateWorkflowV4(c *gin.Context)

func UpdateWorkflowView

func UpdateWorkflowView(c *gin.Context)

func UpsertEnterprisePluginRepository

func UpsertEnterprisePluginRepository(c *gin.Context)

func UpsertUserPluginRepository

func UpsertUserPluginRepository(c *gin.Context)

func ValidateSQL

func ValidateSQL(c *gin.Context)

Types

type ApproveRequest

type ApproveRequest struct {
	StageName    string `json:"stage_name"`
	WorkflowName string `json:"workflow_name"`
	TaskID       int64  `json:"task_id"`
	Approve      bool   `json:"approve"`
	Comment      string `json:"comment"`
}

type ModuleAndImage

type ModuleAndImage struct {
	Image string `json:"image"`
	Name  string `json:"name"`
}

type OpenAPIRouter

type OpenAPIRouter struct{}

func (*OpenAPIRouter) Inject

func (*OpenAPIRouter) Inject(router *gin.RouterGroup)

type Router

type Router struct{}

func (*Router) Inject

func (*Router) Inject(router *gin.RouterGroup)

type ValidateSQLReq

type ValidateSQLReq struct {
	Type config.DBInstanceType `json:"type"`
	SQL  string                `json:"sql"`
}

type ValidateSQLResp

type ValidateSQLResp struct {
	Message string `json:"message"`
}

type YamlResponse

type YamlResponse struct {
	Yaml string `json:"yaml"`
}

Jump to

Keyboard shortcuts

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