handler

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoCreateWorkflow

func AutoCreateWorkflow(c *gin.Context)

func BuildModuleToSubTasks

func BuildModuleToSubTasks(c *gin.Context)

func CancelTaskV2 added in v1.2.0

func CancelTaskV2(c *gin.Context)

func CancelWorkflowTaskV2

func CancelWorkflowTaskV2(c *gin.Context)

func CancelWorkflowTaskV3 added in v1.8.0

func CancelWorkflowTaskV3(c *gin.Context)

func CopyPipeline added in v1.2.0

func CopyPipeline(c *gin.Context)

CopyPipeline duplicate pipeline

func CopyWorkflow

func CopyWorkflow(c *gin.Context)

func CreateArtifactWorkflowTask

func CreateArtifactWorkflowTask(c *gin.Context)

CreateArtifactWorkflowTask create a artifact workflow task

func CreateFavoritePipeline

func CreateFavoritePipeline(c *gin.Context)

func CreatePipelineTask added in v1.2.0

func CreatePipelineTask(c *gin.Context)

CreatePipelineTask ...

func CreateWorkflow

func CreateWorkflow(c *gin.Context)

func CreateWorkflowTask

func CreateWorkflowTask(c *gin.Context)

CreateWorkflowTask create a workflow task

func CreateWorkflowTaskV3 added in v1.8.0

func CreateWorkflowTaskV3(c *gin.Context)

func CreateWorkflowV3 added in v1.8.0

func CreateWorkflowV3(c *gin.Context)

func DeleteFavoritePipeline

func DeleteFavoritePipeline(c *gin.Context)

func DeletePipeline added in v1.2.0

func DeletePipeline(c *gin.Context)

DeletePipeline delete pipeline

func DeleteWorkflow

func DeleteWorkflow(c *gin.Context)

func DeleteWorkflowV3 added in v1.8.0

func DeleteWorkflowV3(c *gin.Context)

func FindTasks added in v1.2.0

func FindTasks(c *gin.Context)

find task by commitId

func FindWorkflow

func FindWorkflow(c *gin.Context)

FindWorkflow find a workflow

func GetArtifactFile

func GetArtifactFile(c *gin.Context)

func GetPackageFile added in v1.2.0

func GetPackageFile(c *gin.Context)

func GetPipeline added in v1.2.0

func GetPipeline(c *gin.Context)

GetPipeline @Router /workflow/v2/pipelines/{name} [GET] @Summary Get the relevant workflow (also called pipeline) information with the specified workflow name @Param name path string true "Name of the workflow" @Produce json @Success 200 {object} interface{} "response type follows microservice/aslan/core/common/repository/models#Pipeline"

func GetPipelineProductName added in v1.2.0

func GetPipelineProductName(c *gin.Context)

func GetPipelineTask added in v1.2.0

func GetPipelineTask(c *gin.Context)

func GetPipelineTaskSSE

func GetPipelineTaskSSE(c *gin.Context)

func GetProductNameByPipeline added in v1.2.0

func GetProductNameByPipeline(c *gin.Context)

func GetProductNameByPipelineTask added in v1.2.0

func GetProductNameByPipelineTask(c *gin.Context)

func GetProductNameByWorkflow

func GetProductNameByWorkflow(c *gin.Context)

func GetWorkflowArgs

func GetWorkflowArgs(c *gin.Context)

GetWorkflowArgs find workflow args

func GetWorkflowProductName

func GetWorkflowProductName(c *gin.Context)

func GetWorkflowTask

func GetWorkflowTask(c *gin.Context)

func GetWorkflowTaskSSE

func GetWorkflowTaskSSE(c *gin.Context)

func GetWorkflowTaskV3 added in v1.8.0

func GetWorkflowTaskV3(c *gin.Context)

func GetWorkflowTaskV3Callback added in v1.8.0

func GetWorkflowTaskV3Callback(c *gin.Context)

func GetWorkflowTaskV3SSE added in v1.8.0

func GetWorkflowTaskV3SSE(c *gin.Context)

func GetWorkflowV3Args added in v1.8.0

func GetWorkflowV3Args(c *gin.Context)

func GetWorkflowV3Detail added in v1.8.0

func GetWorkflowV3Detail(c *gin.Context)

func ListFavoritePipelines added in v1.2.0

func ListFavoritePipelines(c *gin.Context)

func ListPipelineTasksResult added in v1.2.0

func ListPipelineTasksResult(c *gin.Context)

ListPipelineTasksResult pipelinetask分页信息

func ListPipelineUpdatableProductNames added in v1.2.0

func ListPipelineUpdatableProductNames(c *gin.Context)

ListPipelineUpdatableProductNames 启动任务时检查部署环境

func ListPipelines added in v1.2.0

func ListPipelines(c *gin.Context)

ListPipelines @Router /workflow/v2/pipelines [GET] @Summary Return all workflows (also called pipelines) @Produce json @Success 200 {object} interface{} "response type follows list of microservice/aslan/core/common/repository/models#Pipeline"

func ListPipelinesPreview added in v1.2.0

func ListPipelinesPreview(c *gin.Context)

ListPipelinesPreview return all pipelines task status

func ListServiceWorkflows

func ListServiceWorkflows(c *gin.Context)

func ListTestWorkflows added in v1.7.0

func ListTestWorkflows(c *gin.Context)

func ListWorkflowTasksResult

func ListWorkflowTasksResult(c *gin.Context)

ListWorkflowTasksResult workflowtask分页信息

func ListWorkflowV3TasksResult added in v1.8.0

func ListWorkflowV3TasksResult(c *gin.Context)

ListWorkflowV3TasksResult workflowtask分页信息

func ListWorkflows

func ListWorkflows(c *gin.Context)

func ListWorkflowsV3 added in v1.8.0

func ListWorkflowsV3(c *gin.Context)

func PendingPipelineTasksSSE

func PendingPipelineTasksSSE(c *gin.Context)

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)

@Router /workflow/webhook [POST] @Summary Process webhook @Accept json @Produce json @Success 200 {object} map[string]string "map[string]string - {message: 'success information'}"

func RenamePipeline added in v1.2.0

func RenamePipeline(c *gin.Context)

RenamePipeline rename pipeline

func RestartPipelineTask added in v1.2.0

func RestartPipelineTask(c *gin.Context)

func RestartWorkflowTask

func RestartWorkflowTask(c *gin.Context)

func RestartWorkflowTaskV3 added in v1.8.0

func RestartWorkflowTaskV3(c *gin.Context)

func RunningPipelineTasksSSE

func RunningPipelineTasksSSE(c *gin.Context)

func UpdateWorkflow

func UpdateWorkflow(c *gin.Context)

UpdateWorkflow update a workflow

func UpdateWorkflowV3 added in v1.8.0

func UpdateWorkflowV3(c *gin.Context)

func UpsertPipeline added in v1.2.0

func UpsertPipeline(c *gin.Context)

UpsertPipeline create a new pipeline

Types

type KeyVal added in v1.8.0

type KeyVal struct {
	Key          string `bson:"key"                 json:"key"`
	Value        string `bson:"value"               json:"value"`
	IsCredential bool   `bson:"is_credential"       json:"is_credential"`
}

type Router

type Router struct{}

func (*Router) Inject

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

func (*Router) Policies added in v1.7.0

func (*Router) Policies() []*policy.Policy

type TaskOutput added in v1.8.0

type TaskOutput struct {
	Type  string `json:"type"`
	Value string `json:"value"`
}

type WebhookPayload added in v1.8.0

type WebhookPayload struct {
	EventName   string        `json:"event_name"`
	ProjectName string        `json:"project_name"`
	TaskName    string        `json:"task_name"`
	TaskID      int64         `json:"task_id"`
	TaskOutput  []*TaskOutput `json:"task_output"`
	TaskEnvs    []*KeyVal     `json:"task_envs"`
}

Jump to

Keyboard shortcuts

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