Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DelConfig ¶
DelConfig godoc @Tags config @Description Delete Application Config @OperationId DelConfig @Accept json @Produce json @Param name path string true "name of the config" @Param version path string true "version of the config" @Success 200 {object} ex.Response "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/config/name/{name}/version/{version}" [delete]
func GetConfig ¶
GetConfig godoc @Tags config @Description Get Application Config @OperationId GetConfig @Accept json @Produce json @Param name path string true "name of the config" @Param version path string true "version of the config" @Success 200 {object} config.ConfigType "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/config/name/{name}/version/{version}" [get]
func ModConfig ¶
ModConfig godoc @Tags config @Description Modify Application Config @OperationId ModConfig @Accept json @Produce json @Param config body ConfigType true "data of the config" @Success 200 {object} ex.Response "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/config" [put]
func NewConfig ¶
NewConfig godoc @Tags config @Description Modify Application Config @OperationId NewConfig @Accept json @Produce json @Param config body ConfigType true "data of the config" @Success 200 {object} ex.Response "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/config" [post]
func StartTest ¶
StartTest godoc @Tags application @Description Modify Application Config @OperationId NewConfig @Accept json @Produce json @Param name path string true "name of the config" @Param version path string true "version of the config" @Success 200 {object} ex.Response "ok" @Failure 400 {object} ex.Response "Invalid Name supplied!" @Failure 404 {object} ex.Response "Instance not found" @Failure 405 {object} ex.Response "Invalid input" @Failure 500 {object} ex.Response "Server Error" @Router "/application/build/name/{name}/version/{version}" [post]
Types ¶
type ConfigInfo ¶
type ConfigInfo struct { Config ConfigType `json:"config"` ProjectInfo project.ProjectInfo `json:"project_info"` PipeLineId uint64 `json:"pipeline_id"` Jobid uint64 `json:"job_id"` }