Documentation
¶
Index ¶
- Variables
- func BindValidPipe(c *gin.Context) (pipe *model.Pipeline, err error)
- func BindValidPlugin(c *gin.Context) (plugin *model.Plugin, err error)
- func E(c *gin.Context, e *httpError)
- func HttpError(code int, errCode, errMessage string) *httpError
- func R(c *gin.Context, body interface{})
- type Service
- func (s *Service) DeletePipe(c *gin.Context)
- func (s *Service) DeletePlugin(c *gin.Context)
- func (s *Service) GetBuild(c *gin.Context)
- func (s *Service) GetBuildInQueue(c *gin.Context)
- func (s *Service) GetHook(c *gin.Context)
- func (s *Service) GetLog(c *gin.Context)
- func (s *Service) GetMessage(c *gin.Context)
- func (s *Service) GetPing(c *gin.Context)
- func (s *Service) GetPipe(c *gin.Context)
- func (s *Service) GetPlugin(c *gin.Context)
- func (s *Service) PatchBuild(c *gin.Context)
- func (s *Service) PatchPipe(c *gin.Context)
- func (s *Service) PatchPlugin(c *gin.Context)
- func (s *Service) PostBuild(c *gin.Context)
- func (s *Service) PostPipe(c *gin.Context)
- func (s *Service) PostPlugin(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidParam = HttpError(http.StatusBadRequest, "InvalidParameter", "Invalid parameter.") ErrNotFound = HttpError(http.StatusNotFound, "NotFound", "Request resource not found.") ErrDB = HttpError(http.StatusInternalServerError, "DBError", "DB error.") ErrInnerServErr = HttpError(http.StatusInternalServerError, "InternalServerError", "Internal server error, please try again later.") )
Functions ¶
func BindValidPipe ¶
----------------------------------------------------------------- BindPipe
func BindValidPlugin ¶
----------------------------------------------------------------- BindPipe
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) GetBuildInQueue ¶
func (*Service) GetHook ¶
----------------------------------------------------------------- hook hook for git repo
func (*Service) GetLog ¶
----------------------------------------------------------------- log get whole build / single step log
func (*Service) GetMessage ¶
----------------------------------------------------------------- message allow build step send message to master
func (*Service) PostBuild ¶
----------------------------------------------------------------- build trigger build
func (*Service) PostPipe ¶
----------------------------------------------------------------- pipe create pipe
func (*Service) PostPlugin ¶
----------------------------------------------------------------- plugin create build