handler

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApproveStage added in v1.9.9

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 added in v1.9.9

func CancelWorkflowTaskV4(c *gin.Context)

func CheckShareStorageEnabled added in v1.9.9

func CheckShareStorageEnabled(c *gin.Context)

func CheckWorkflowV4Approval added in v1.9.9

func CheckWorkflowV4Approval(c *gin.Context)

func CloneWorkflowTaskV4 added in v1.9.9

func CloneWorkflowTaskV4(c *gin.Context)

func CompareHelmServiceYamlInEnv added in v1.9.9

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 added in v1.9.9

func CreateCronForWorkflowV4(c *gin.Context)

func CreateCustomWorkflowTask added in v1.9.9

func CreateCustomWorkflowTask(c *gin.Context)

func CreateFavoritePipeline

func CreateFavoritePipeline(c *gin.Context)

func CreateGeneralHookForWorkflowV4 added in v1.9.9

func CreateGeneralHookForWorkflowV4(c *gin.Context)

func CreateJiraHookForWorkflowV4 added in v1.9.9

func CreateJiraHookForWorkflowV4(c *gin.Context)

func CreateMeegoHookForWorkflowV4 added in v1.9.9

func CreateMeegoHookForWorkflowV4(c *gin.Context)

func CreateWebhookForWorkflowV4 added in v1.9.9

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 added in v1.9.9

func CreateWorkflowTaskV4(c *gin.Context)

func CreateWorkflowTaskV4ByBuildInTrigger added in v1.9.9

func CreateWorkflowTaskV4ByBuildInTrigger(c *gin.Context)

TODO: fix the authorization problem for this

func CreateWorkflowV4 added in v1.9.9

func CreateWorkflowV4(c *gin.Context)

func CreateWorkflowView added in v1.9.9

func CreateWorkflowView(c *gin.Context)

func DeleteCronForWorkflowV4 added in v1.9.9

func DeleteCronForWorkflowV4(c *gin.Context)

func DeleteFavoritePipeline

func DeleteFavoritePipeline(c *gin.Context)

func DeleteGeneralHookForWorkflowV4 added in v1.9.9

func DeleteGeneralHookForWorkflowV4(c *gin.Context)

func DeleteJiraHookForWorkflowV4 added in v1.9.9

func DeleteJiraHookForWorkflowV4(c *gin.Context)

func DeleteMeegoHookForWorkflowV4 added in v1.9.9

func DeleteMeegoHookForWorkflowV4(c *gin.Context)

func DeletePluginRepo added in v1.9.9

func DeletePluginRepo(c *gin.Context)

func DeleteWebhookForWorkflowV4 added in v1.9.9

func DeleteWebhookForWorkflowV4(c *gin.Context)

func DeleteWorkflow

func DeleteWorkflow(c *gin.Context)

func DeleteWorkflowV4 added in v1.9.9

func DeleteWorkflowV4(c *gin.Context)

func DeleteWorkflowView added in v1.9.9

func DeleteWorkflowView(c *gin.Context)

func EnableDebugWorkflowTaskV4 added in v1.9.9

func EnableDebugWorkflowTaskV4(c *gin.Context)

func FindWorkflow

func FindWorkflow(c *gin.Context)

FindWorkflow find a workflow

func FindWorkflowV4 added in v1.9.9

func FindWorkflowV4(c *gin.Context)

func GeneralHookEventHandler added in v1.9.9

func GeneralHookEventHandler(c *gin.Context)

func GetBundleResources added in v1.9.9

func GetBundleResources(c *gin.Context)

func GetCronForWorkflowV4Preset added in v1.9.9

func GetCronForWorkflowV4Preset(c *gin.Context)

func GetFilteredEnvServices added in v1.9.9

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 added in v1.9.0

func GetFiltersPipeline(c *gin.Context)

func GetGeneralHookForWorkflowV4Preset added in v1.9.9

func GetGeneralHookForWorkflowV4Preset(c *gin.Context)

func GetJiraHookForWorkflowV4Preset added in v1.9.9

func GetJiraHookForWorkflowV4Preset(c *gin.Context)

func GetMeegoHookForWorkflowV4Preset added in v1.9.9

func GetMeegoHookForWorkflowV4Preset(c *gin.Context)

func GetMseOfflineResources added in v1.9.9

func GetMseOfflineResources(c *gin.Context)

func GetMseTagsInEnv added in v1.9.9

func GetMseTagsInEnv(c *gin.Context)

func GetPatchParams added in v1.9.9

func GetPatchParams(c *gin.Context)

func GetPipelineTaskSSE

func GetPipelineTaskSSE(c *gin.Context)

func GetProductNameByWorkflow

func GetProductNameByWorkflow(c *gin.Context)

func GetWebhookForWorkflowV4Preset added in v1.9.9

func GetWebhookForWorkflowV4Preset(c *gin.Context)

func GetWorkflowArgs

func GetWorkflowArgs(c *gin.Context)

GetWorkflowArgs find workflow args

func GetWorkflowGlobalVars added in v1.9.9

func GetWorkflowGlobalVars(c *gin.Context)

func GetWorkflowProductName

func GetWorkflowProductName(c *gin.Context)

func GetWorkflowRepoIndex added in v1.9.9

func GetWorkflowRepoIndex(c *gin.Context)

func GetWorkflowTask

func GetWorkflowTask(c *gin.Context)

func GetWorkflowTaskCallback added in v1.9.9

func GetWorkflowTaskCallback(c *gin.Context)

func GetWorkflowTaskFilters added in v1.9.9

func GetWorkflowTaskFilters(c *gin.Context)

func GetWorkflowTaskSSE

func GetWorkflowTaskSSE(c *gin.Context)

func GetWorkflowTaskV3SSE added in v1.8.0

func GetWorkflowTaskV3SSE(c *gin.Context)

func GetWorkflowTaskV4 added in v1.9.9

func GetWorkflowTaskV4(c *gin.Context)

func GetWorkflowTasksCustomFields added in v1.9.9

func GetWorkflowTasksCustomFields(c *gin.Context)

func GetWorkflowV4ArtifactFileContent added in v1.9.9

func GetWorkflowV4ArtifactFileContent(c *gin.Context)

func GetWorkflowV4Preset added in v1.9.9

func GetWorkflowV4Preset(c *gin.Context)

func GetWorkflowViewPreset added in v1.9.9

func GetWorkflowViewPreset(c *gin.Context)

func LintWorkflowV4 added in v1.9.9

func LintWorkflowV4(c *gin.Context)

func ListAllAvailableWorkflows added in v1.9.9

func ListAllAvailableWorkflows(c *gin.Context)

func ListCronForWorkflowV4 added in v1.9.9

func ListCronForWorkflowV4(c *gin.Context)

func ListFavoritePipelines added in v1.2.0

func ListFavoritePipelines(c *gin.Context)

func ListGeneralHookForWorkflowV4 added in v1.9.9

func ListGeneralHookForWorkflowV4(c *gin.Context)

func ListJiraHookForWorkflowV4 added in v1.9.9

func ListJiraHookForWorkflowV4(c *gin.Context)

func ListMeegoHookForWorkflowV4 added in v1.9.9

func ListMeegoHookForWorkflowV4(c *gin.Context)

func ListPluginTemplates added in v1.9.9

func ListPluginTemplates(c *gin.Context)

func ListServiceWorkflows

func ListServiceWorkflows(c *gin.Context)

func ListTestWorkflows added in v1.7.0

func ListTestWorkflows(c *gin.Context)

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

func ListUnofficalPluginRepositories added in v1.9.9

func ListUnofficalPluginRepositories(c *gin.Context)

func ListWebhookForWorkflowV4 added in v1.9.9

func ListWebhookForWorkflowV4(c *gin.Context)

func ListWorkflowTaskV4ByFilter added in v1.9.9

func ListWorkflowTaskV4ByFilter(c *gin.Context)

func ListWorkflowTasksResult

func ListWorkflowTasksResult(c *gin.Context)

ListWorkflowTasksResult workflowtask分页信息

func ListWorkflowV4 added in v1.9.9

func ListWorkflowV4(c *gin.Context)

func ListWorkflowV4CanTrigger added in v1.9.9

func ListWorkflowV4CanTrigger(c *gin.Context)

func ListWorkflowViewNames added in v1.9.9

func ListWorkflowViewNames(c *gin.Context)

func ListWorkflows

func ListWorkflows(c *gin.Context)

func OpenAPIApproveStage added in v1.9.9

func OpenAPIApproveStage(c *gin.Context)

func OpenAPICancelWorkflowTaskV4 added in v1.9.9

func OpenAPICancelWorkflowTaskV4(c *gin.Context)

func OpenAPICreateProductWorkflowTask added in v1.9.9

func OpenAPICreateProductWorkflowTask(c *gin.Context)

func OpenAPICreateWorkflowView added in v1.9.9

func OpenAPICreateWorkflowView(c *gin.Context)

func OpenAPIDeleteCustomWorkflowV4 added in v1.9.9

func OpenAPIDeleteCustomWorkflowV4(c *gin.Context)

func OpenAPIDeleteProductWorkflowV4 added in v1.9.9

func OpenAPIDeleteProductWorkflowV4(c *gin.Context)

func OpenAPIDeleteWorkflowView added in v1.9.9

func OpenAPIDeleteWorkflowView(c *gin.Context)

func OpenAPIGetCustomWorkflowTaskV4 added in v1.9.9

func OpenAPIGetCustomWorkflowTaskV4(c *gin.Context)

func OpenAPIGetCustomWorkflowV4 added in v1.9.9

func OpenAPIGetCustomWorkflowV4(c *gin.Context)

func OpenAPIGetProductWorkflowTaskV4 added in v1.9.9

func OpenAPIGetProductWorkflowTaskV4(c *gin.Context)

func OpenAPIGetProductWorkflowTasksV4 added in v1.9.9

func OpenAPIGetProductWorkflowTasksV4(c *gin.Context)

func OpenAPIGetWorkflowTaskV4 added in v1.9.9

func OpenAPIGetWorkflowTaskV4(c *gin.Context)

func OpenAPIGetWorkflowV4List added in v1.9.9

func OpenAPIGetWorkflowV4List(c *gin.Context)

func OpenAPIGetWorkflowViews added in v1.9.9

func OpenAPIGetWorkflowViews(c *gin.Context)

func OpenAPIRetryCustomWorkflowTaskV4 added in v1.9.9

func OpenAPIRetryCustomWorkflowTaskV4(c *gin.Context)

func OpenAPIUpdateWorkflowView added in v1.9.9

func OpenAPIUpdateWorkflowView(c *gin.Context)

func PendingPipelineTasksSSE

func PendingPipelineTasksSSE(c *gin.Context)

func PendingWorkflowTasksSSE added in v1.9.9

func PendingWorkflowTasksSSE(c *gin.Context)

func Placeholder added in v1.9.9

func Placeholder(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 PreSetWorkflow

func PreSetWorkflow(c *gin.Context)

func PresetWorkflowArgs

func PresetWorkflowArgs(c *gin.Context)

PresetWorkflowArgs find a workflow task

func ProcessWebHook added in v1.2.0

func ProcessWebHook(c *gin.Context)

func RenderMseServiceYaml added in v1.9.9

func RenderMseServiceYaml(c *gin.Context)

func RestartWorkflowTask

func RestartWorkflowTask(c *gin.Context)

func RetryWorkflowTaskV4 added in v1.9.9

func RetryWorkflowTaskV4(c *gin.Context)

func RunningPipelineTasksSSE

func RunningPipelineTasksSSE(c *gin.Context)

func RunningWorkflowTasksSSE added in v1.9.9

func RunningWorkflowTasksSSE(c *gin.Context)

func SetWorkflowTaskV4Breakpoint added in v1.9.9

func SetWorkflowTaskV4Breakpoint(c *gin.Context)

func SetWorkflowTasksCustomFields added in v1.9.9

func SetWorkflowTasksCustomFields(c *gin.Context)

func StopDebugWorkflowTaskJobV4 added in v1.9.9

func StopDebugWorkflowTaskJobV4(c *gin.Context)

func UpdateCronForWorkflowV4 added in v1.9.9

func UpdateCronForWorkflowV4(c *gin.Context)

func UpdateGeneralHookForWorkflowV4 added in v1.9.9

func UpdateGeneralHookForWorkflowV4(c *gin.Context)

func UpdateJiraHookForWorkflowV4 added in v1.9.9

func UpdateJiraHookForWorkflowV4(c *gin.Context)

func UpdateMeegoHookForWorkflowV4 added in v1.9.9

func UpdateMeegoHookForWorkflowV4(c *gin.Context)

func UpdateWebhookForWorkflowV4 added in v1.9.9

func UpdateWebhookForWorkflowV4(c *gin.Context)

func UpdateWorkflow

func UpdateWorkflow(c *gin.Context)

UpdateWorkflow update a workflow

func UpdateWorkflowV4 added in v1.9.9

func UpdateWorkflowV4(c *gin.Context)

func UpdateWorkflowView added in v1.9.9

func UpdateWorkflowView(c *gin.Context)

func UpsertEnterprisePluginRepository added in v1.9.9

func UpsertEnterprisePluginRepository(c *gin.Context)

func UpsertUserPluginRepository added in v1.9.9

func UpsertUserPluginRepository(c *gin.Context)

Types

type ApproveRequest added in v1.9.9

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 added in v1.9.9

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

type MseResponse added in v1.18.0

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

type OpenAPIRouter added in v1.9.9

type OpenAPIRouter struct{}

func (*OpenAPIRouter) Inject added in v1.9.9

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

type Router

type Router struct{}

func (*Router) Inject

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

Jump to

Keyboard shortcuts

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