Documentation ¶
Index ¶
- type MasterRunnerRouterDefault
- func (route *MasterRunnerRouterDefault) ChangeJobStatus(writer http.ResponseWriter, request *http.Request)
- func (route *MasterRunnerRouterDefault) ChangeTaskStatus(writer http.ResponseWriter, request *http.Request)
- func (route *MasterRunnerRouterDefault) ConfigureRouter()
- func (route *MasterRunnerRouterDefault) CreateLogTask(writer http.ResponseWriter, request *http.Request)
- func (route *MasterRunnerRouterDefault) CreateNewTask(writer http.ResponseWriter, request *http.Request)
- func (route *MasterRunnerRouterDefault) CreateReportsPerTask(writer http.ResponseWriter, request *http.Request)
- func (route *MasterRunnerRouterDefault) GetLogTask(writer http.ResponseWriter, request *http.Request)
- func (route *MasterRunnerRouterDefault) GetReportsPerTask(writer http.ResponseWriter, request *http.Request)
- func (route *MasterRunnerRouterDefault) GetRouter() *mux.Router
- func (route *MasterRunnerRouterDefault) GetStatusWorkers(writer http.ResponseWriter, request *http.Request)
- func (route *MasterRunnerRouterDefault) GetTaskStatus(writer http.ResponseWriter, request *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MasterRunnerRouterDefault ¶
type MasterRunnerRouterDefault struct { Router *mux.Router // contains filtered or unexported fields }
MasterRunnerRouterDefault - default main router for master runner
func InitializeMasterRunnerRouter ¶
func InitializeMasterRunnerRouter(masterService *services.MasterRunnerService) *MasterRunnerRouterDefault
InitializeMasterRunnerRouter - инициализация роутера мастер ноды
func (*MasterRunnerRouterDefault) ChangeJobStatus ¶
func (route *MasterRunnerRouterDefault) ChangeJobStatus(writer http.ResponseWriter, request *http.Request)
ChangeJobStatus - изменить текущий статус конкретной джобы
func (*MasterRunnerRouterDefault) ChangeTaskStatus ¶
func (route *MasterRunnerRouterDefault) ChangeTaskStatus(writer http.ResponseWriter, request *http.Request)
ChangeTaskStatus - изменить текущий статус работы (остановить, запустить) post {taskID, status: [STARTED, STOPING, FINISHING, FAILED]}
func (*MasterRunnerRouterDefault) ConfigureRouter ¶
func (route *MasterRunnerRouterDefault) ConfigureRouter()
ConfigureRouter - конфигурирование маршрутов
func (*MasterRunnerRouterDefault) CreateLogTask ¶
func (route *MasterRunnerRouterDefault) CreateLogTask(writer http.ResponseWriter, request *http.Request)
CreateLogTask - создание логов с выполненной работы post {taskID, stage, logcontent}
func (*MasterRunnerRouterDefault) CreateNewTask ¶
func (route *MasterRunnerRouterDefault) CreateNewTask(writer http.ResponseWriter, request *http.Request)
CreateNewTask - создание новой задачи на обработку репозитория кандидата post {workID, work by spec}
func (*MasterRunnerRouterDefault) CreateReportsPerTask ¶
func (route *MasterRunnerRouterDefault) CreateReportsPerTask(writer http.ResponseWriter, request *http.Request)
CreateReportsPerTask - создание метрик на задачу из слейва
func (*MasterRunnerRouterDefault) GetLogTask ¶
func (route *MasterRunnerRouterDefault) GetLogTask(writer http.ResponseWriter, request *http.Request)
GetLogTask - получение логов с работы get ?taskID=:taskID&stage?=:nameStage
func (*MasterRunnerRouterDefault) GetReportsPerTask ¶
func (route *MasterRunnerRouterDefault) GetReportsPerTask(writer http.ResponseWriter, request *http.Request)
GetReportsPerTask - получение отчётов по задаче
func (*MasterRunnerRouterDefault) GetRouter ¶
func (route *MasterRunnerRouterDefault) GetRouter() *mux.Router
GetRouter - получить сконфигурированный роутер
func (*MasterRunnerRouterDefault) GetStatusWorkers ¶
func (route *MasterRunnerRouterDefault) GetStatusWorkers(writer http.ResponseWriter, request *http.Request)
GetStatusWorkers - получение текущего статуса всех slave нод
func (*MasterRunnerRouterDefault) GetTaskStatus ¶
func (route *MasterRunnerRouterDefault) GetTaskStatus(writer http.ResponseWriter, request *http.Request)
GetTaskStatus - получение статуса задачи GET /taskID=:taskID