build

package
v0.0.1-alpha1 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(c *gin.Context)

Delete @Summary 删除 @Description 删除指定构建任务 @Tags 构建 @Accept application/json @Produce application/json @Param pipeline path string true "流水线名称" @Param build path string true "构建名称" @Success 200 {object} types.SBase[any] @Failure 500 {object} types.SBase[any] @Router /api/v1/pipeline/{pipeline}/build/{build} [delete]

func Detail

func Detail(c *gin.Context)

Detail @Summary 详情 @Description 获取流水线指定构建任务详情, 支持SSE订阅 @Tags 构建 @Accept application/json @Produce application/json @Param pipeline path string true "流水线名称" @Param build path string true "构建名称" @Success 200 {object} types.SBase[types.SPipelineBuildRes] @Failure 500 {object} types.SBase[any] @Router /api/v1/pipeline/{pipeline}/build/{build} [get]

func List

func List(c *gin.Context)

List @Summary 列表 @Description 获取指定流水线构建任务列表, 支持WS长连接 @Tags 构建 @Accept application/json @Produce application/json @Param pipeline path string true "流水线名称" @Param page query int false "页码" default(1) @Param size query int false "分页大小" default(100) @Success 200 {object} types.SBase[types.SPipelineBuildListRes] @Failure 500 {object} types.SBase[any] @Router /api/v1/pipeline/{pipeline}/build [get]

func Post

func Post(c *gin.Context)

Post @Summary 创建 @Description 创建构建任务 @Tags 构建 @Accept application/json @Produce application/json @Param pipeline path string true "流水线名称" @Param build body types.SPipelineBuildReq true "构建参数" @Success 200 {object} types.SBase[types.STaskCreateRes] @Failure 500 {object} types.SBase[any] @Router /api/v1/pipeline/{pipeline}/build [post]

func ReRun

func ReRun(c *gin.Context)

ReRun @Summary 重新运行 @Description 重新执行指定构建任务 @Tags 构建 @Accept application/json @Produce application/json @Param pipeline path string true "流水线名称" @Param build path string true "构建名称" @Success 200 {object} types.SBase[any] @Failure 500 {object} types.SBase[any] @Router /api/v1/pipeline/{pipeline}/build/{build} [post]

Types

This section is empty.

Jump to

Keyboard shortcuts

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