Documentation ¶
Index ¶
- func AddRouteForCLAController(r *gin.RouterGroup, service clavalidator.ClaValidator)
- func AddRouteForSigController(r *gin.RouterGroup, sigService sigvalidator.SigValidator)
- func AddRouteForSoftwarePkgController(r *gin.RouterGroup, pkgService app.SoftwarePkgService)
- type CLAController
- type SigController
- type SoftwarePkgController
- func (ctl SoftwarePkgController) Abandon(ctx *gin.Context)
- func (ctl SoftwarePkgController) ApplyNewPkg(ctx *gin.Context)
- func (ctl SoftwarePkgController) Approve(ctx *gin.Context)
- func (ctl SoftwarePkgController) Get(ctx *gin.Context)
- func (ctl SoftwarePkgController) ListPkgs(ctx *gin.Context)
- func (ctl SoftwarePkgController) NewReviewComment(ctx *gin.Context)
- func (ctl SoftwarePkgController) Reject(ctx *gin.Context)
- func (ctl SoftwarePkgController) RerunCI(ctx *gin.Context)
- func (ctl SoftwarePkgController) TranslateReviewComment(ctx *gin.Context)
- func (ctl SoftwarePkgController) UpdateApplication(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRouteForCLAController ¶
func AddRouteForCLAController(r *gin.RouterGroup, service clavalidator.ClaValidator)
func AddRouteForSigController ¶
func AddRouteForSigController(r *gin.RouterGroup, sigService sigvalidator.SigValidator)
func AddRouteForSoftwarePkgController ¶
func AddRouteForSoftwarePkgController(r *gin.RouterGroup, pkgService app.SoftwarePkgService)
Types ¶
type CLAController ¶
type CLAController struct {
// contains filtered or unexported fields
}
func (CLAController) VerifyCla ¶
func (c CLAController) VerifyCla(ctx *gin.Context)
VerifyCla @Summary verify cla @Description verify cla @Tags CLA @Accept json @Success 200 {object} claSingedResp @Failure 400 {object} ResponseData @Router /v1/cla [get]
type SigController ¶
type SigController struct {
// contains filtered or unexported fields
}
func (SigController) List ¶
func (s SigController) List(ctx *gin.Context)
List @Summary list sigs @Description list sigs @Tags Sig @Accept json @Success 200 {object} sigvalidator.Sig @Router /v1/sig [get]
type SoftwarePkgController ¶
type SoftwarePkgController struct {
// contains filtered or unexported fields
}
func (SoftwarePkgController) Abandon ¶
func (ctl SoftwarePkgController) Abandon(ctx *gin.Context)
Abandon @Summary abandon software package @Description abandon software package @Tags SoftwarePkg @Accept json @Param id path string true "id of software package" @Success 202 {object} ResponseData @Failure 400 {object} ResponseData @Router /v1/softwarepkg/{id}/review/abandon [put]
func (SoftwarePkgController) ApplyNewPkg ¶
func (ctl SoftwarePkgController) ApplyNewPkg(ctx *gin.Context)
ApplyNewPkg @Summary apply a new software package @Description apply a new software package @Tags SoftwarePkg @Accept json @Param param body softwarePkgRequest true "body of applying a new software package" @Success 201 {object} app.NewSoftwarePkgDTO @Failure 400 {object} ResponseData @Router /v1/softwarepkg [post]
func (SoftwarePkgController) Approve ¶
func (ctl SoftwarePkgController) Approve(ctx *gin.Context)
Approve @Summary approve software package @Description approve software package @Tags SoftwarePkg @Accept json @Param id path string true "id of software package" @Success 202 {object} ResponseData @Failure 400 {object} ResponseData @Router /v1/softwarepkg/{id}/review/approve [put]
func (SoftwarePkgController) Get ¶
func (ctl SoftwarePkgController) Get(ctx *gin.Context)
Get @Summary get software package @Description get software package @Tags SoftwarePkg @Accept json @Param id path string true "id of software package" @Success 200 {object} app.SoftwarePkgReviewDTO @Failure 400 {object} ResponseData @Router /v1/softwarepkg/{id} [get]
func (SoftwarePkgController) ListPkgs ¶
func (ctl SoftwarePkgController) ListPkgs(ctx *gin.Context)
ListPkgs @Summary list software packages @Description list software packages @Tags SoftwarePkg @Accept json @Param importer query string false "importer of the softwarePkg" @Param phase query string false "phase of the softwarePkg" @Param count_per_page query int false "count per page" @Param page_num query int false "page num which starts from 1" @Success 200 {object} app.SoftwarePkgsDTO @Failure 400 {object} ResponseData @Router /v1/softwarepkg [get]
func (SoftwarePkgController) NewReviewComment ¶
func (ctl SoftwarePkgController) NewReviewComment(ctx *gin.Context)
NewReviewComment @Summary create a new software package review comment @Description create a new software package review comment @Tags SoftwarePkg @Accept json @Param param body reviewCommentRequest true "body of creating a new software package review comment" @Param id path string true "id of software package" @Success 201 {object} ResponseData @Failure 400 {object} ResponseData @Router /v1/softwarepkg/{id}/review/comment [post]
func (SoftwarePkgController) Reject ¶
func (ctl SoftwarePkgController) Reject(ctx *gin.Context)
Reject @Summary reject software package @Description reject software package @Tags SoftwarePkg @Accept json @Param id path string true "id of software package" @Success 202 {object} ResponseData @Failure 400 {object} ResponseData @Router /v1/softwarepkg/{id}/review/reject [put]
func (SoftwarePkgController) RerunCI ¶
func (ctl SoftwarePkgController) RerunCI(ctx *gin.Context)
ReRunCI @Summary rerun ci of software package @Description rerun ci of software package @Tags SoftwarePkg @Accept json @Param id path string true "id of software package" @Success 202 {object} ResponseData @Failure 400 {object} ResponseData @Router /v1/softwarepkg/{id}/review/rerunci [put]
func (SoftwarePkgController) TranslateReviewComment ¶
func (ctl SoftwarePkgController) TranslateReviewComment(ctx *gin.Context)
TranslateReviewComment @Summary translate review comment @Description translate review comment @Tags SoftwarePkg @Accept json @Param id path string true "id of software package" @Param cid path string true "cid of review comment" @Param param body translationCommentRequest true "body of translate review comment" @Success 201 {object} app.TranslatedReveiwCommentDTO @Failure 400 {object} ResponseData @Router /v1/softwarepkg/{id}/review/comment/{cid}/translate [post]
func (SoftwarePkgController) UpdateApplication ¶
func (ctl SoftwarePkgController) UpdateApplication(ctx *gin.Context)
UpdateApplication @Summary update application of software package @Description update application of software package @Tags SoftwarePkg @Accept json @Param id path string true "id of software package" @Param param body softwarePkgRequest true "body of updating software package application" @Success 202 {object} ResponseData @Failure 400 {object} ResponseData @Router /v1/softwarepkg/:id [put]