Documentation
¶
Index ¶
- Variables
- func DagHandler(c *gin.Context)
- func GetAgentLastMaintenanceDag(c *gin.Context)
- func GetAgentMainDags(c *gin.Context)
- func GetAgentUnfinishDags(c *gin.Context)
- func GetAllAgentDags(c *gin.Context)
- func GetAllAgentLastMaintenanceDag(c *gin.Context)
- func GetAllClusterDags(c *gin.Context)
- func GetClusterUnfinishDags(c *gin.Context)
- func GetDagDetail(c *gin.Context)
- func GetFullSubTaskLogs(c *gin.Context)
- func GetNodeDetail(c *gin.Context)
- func GetObLastMaintenanceDag(c *gin.Context)
- func GetSubTaskDetail(c *gin.Context)
- func GetUnfinishedDags(c *gin.Context)
- func NodeHandler(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
var ( // for local scale out dag PARAM_COORDINATE_DAG_ID = "coordinateDagId" PARAM_COORDINATE_AGENT = "coordinateAgent" )
Functions ¶
func DagHandler ¶
dag handler
@ID dagHandler @Summary operate dag @Description operate dag @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Param id path string true "dag id" @Param body body task.DagOperator true "dag operator, supported values are (rollback/retry/cancel/pass)" @Success 200 object http.OcsAgentResponse @Failure 400 object http.OcsAgentResponse @Failure 404 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dag/{id} [post]
func GetAgentLastMaintenanceDag ¶
@ID GetAgentLastMaintenanceDag @Summary get agent last maintenance dag @Description get agent last maintenance dag @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Success 200 object http.OcsAgentResponse{data=task.DagDetailDTO} @Failure 404 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dag/maintain/agent [get]
func GetAgentMainDags ¶
@ID GetAgentMainDags @Summary get agent main dags @Description get agent main dags @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Success 200 object http.OcsAgentResponse{data=[]task.DagDetailDTO} @Failure 400 object http.OcsAgentResponse @Failure 404 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dag/agent/main_dags [get]
func GetAgentUnfinishDags ¶
@ID GetAgentUnfinishDags @Summary get agent unfinished dags @Description get agent unfinished dags @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Param showDetails query param.TaskQueryParams true "show details" @Success 200 object http.OcsAgentResponse{data=[]task.DagDetailDTO} @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dag/agent/unfinish [get]
func GetAllAgentDags ¶
get all dags in agent
@ID getAllAgentDags @Summary get all dags in the agent @Description get all dags in the agent @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Param show_details query param.TaskQueryParams true "show details" @Success 200 object http.OcsAgentResponse{data=[]task.DagDetailDTO} @Failure 400 object http.OcsAgentResponse @Failure 404 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dags/agent [get]
func GetAllAgentLastMaintenanceDag ¶
@ID GetAllAgentsLastMaintenanceDag @Summary get agent last maintenance dag @Description get agent last maintenance dag @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Success 200 object http.OcsAgentResponse{data=[]task.DagDetailDTO} @Failure 404 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dag/maintain/agents [get]
func GetAllClusterDags ¶
get all dags in cluster
@ID getAllClusterDags @Summary get all dags in cluster @Description get all dags in cluster @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Param show_details query param.TaskQueryParams true "show details" @Success 200 object http.OcsAgentResponse{data=[]task.DagDetailDTO} @Failure 400 object http.OcsAgentResponse @Failure 404 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dags/ob [get]
func GetClusterUnfinishDags ¶
@ID GetClusterUnfinishDags @Summary get cluster unfinished dags @Description get cluster unfinished dags @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Param showDetails query param.TaskQueryParams true "show details" @Success 200 object http.OcsAgentResponse{data=[]task.DagDetailDTO} @Failure 400 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dag/ob/unfinish [get]
func GetDagDetail ¶
get dag detail by id
@ID getDagDetail @Summary get dag detail by id @Description get dag detail by id @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Param id path string true "id" @Param showDetails query param.TaskQueryParams true "show details" @Success 200 object http.OcsAgentResponse{data=task.DagDetailDTO} @Failure 400 object http.OcsAgentResponse @Failure 404 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dag/{id} [get]
func GetFullSubTaskLogs ¶
get full sub_task logs by id
@ID getFullSubTaskLogs
@Summary get full sub_task logs by sub_task_id
@Description get full sub_task logs by sub_task_id
@Tags task
@Accept application/json
@Produce application/json
@Param X-OCS-Header header string true "Authorization"
@Param id path string true "id"
@Success 200 object http.OcsAgentResponse{data=task.TaskDetailDTO}
@Failure 400 object http.OcsAgentResponse
@Failure 404 object http.OcsAgentResponse
@Failure 500 object http.OcsAgentResponse
@Router /api/v1/task/sub_task/{id}/logs [get]
func GetNodeDetail ¶
get node detail by node_id
@ID getNodeDetail
@Summary get node detail by node_id
@Description get node detail by node_id
@Tags task
@Accept application/json
@Produce application/json
@Param X-OCS-Header header string true "Authorization"
@Param id path string true "id"
@Param showDetails query param.TaskQueryParams true "show details"
@Success 200 object http.OcsAgentResponse{data=task.NodeDetailDTO}
@Failure 400 object http.OcsAgentResponse
@Failure 404 object http.OcsAgentResponse
@Failure 500 object http.OcsAgentResponse
@Router /api/v1/task/node/{id} [get]
func GetObLastMaintenanceDag ¶
@ID GetObLastMaintenanceDag @Summary get ob last maintenance dag @Description get ob last maintenance dag @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Success 200 object http.OcsAgentResponse{data=task.DagDetailDTO} @Failure 404 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/dag/maintain/ob [get]
func GetSubTaskDetail ¶
get sub_task detail by id
@ID getSubTaskDetail
@Summary get sub_task detail by sub_task_id
@Description get sub_task detail by sub_task_id
@Tags task
@Accept application/json
@Produce application/json
@Param X-OCS-Header header string true "Authorization"
@Param id path string true "id"
@Param showDetails query param.TaskQueryParams true "show details"
@Success 200 object http.OcsAgentResponse{data=task.TaskDetailDTO}
@Failure 400 object http.OcsAgentResponse
@Failure 404 object http.OcsAgentResponse
@Failure 500 object http.OcsAgentResponse
@Router /api/v1/task/sub_task/{id} [get]
func GetUnfinishedDags ¶
@ID GetUnfinishedDags @Summary get unfinished dags @Description get unfinished dags @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Param showDetails query param.TaskQueryParams true "show details" @Success 200 object http.OcsAgentResponse{data=[]task.DagDetailDTO} @Failure 400 object http.OcsAgentResponse @Router /api/v1/task/dag/unfinish [get]
func NodeHandler ¶
node handler
@ID nodeHandler @Summary operate node @Description operate node @Tags task @Accept application/json @Produce application/json @Param X-OCS-Header header string true "Authorization" @Param id path string true "node id" @Param body body task.NodeOperator true "node operator, supported values is (pass) only" @Success 200 object http.OcsAgentResponse @Failure 400 object http.OcsAgentResponse @Failure 404 object http.OcsAgentResponse @Failure 500 object http.OcsAgentResponse @Router /api/v1/task/node/{id} [post]
Types ¶
This section is empty.