Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine interface { CreateJob(name string, yaml string) error SaveJobParams(name string, params map[string]string) error SaveJobUserId(name string, userId string) error DeleteJob(name string) error UpdateJob(name, newName, jobYaml string) error GetJob(name string) (*model.Job, error) GetJobs(keyword string, page, size int) (*model.JobPage, error) GetCodeInfo(name string, historyId int) (string, error) ExecuteJob(name string, id int) (*model.JobDetail, error) ReExecuteJob(name string, id int) error GetJobHistory(name string, id int) (*model.JobDetail, error) GetJobHistorys(name string, page, size int) (*model.JobDetailPage, error) DeleteJobHistory(name string, id int) error CreateJobDetail(name string, id int) (*model.JobDetail, error) ExecuteJobDetail(name string, id int) error RegisterStatusChangeHook(hook func(message model.StatusChangeMessage)) GetJobHistoryLog(name string, id int) (*model.JobLog, error) GetJobHistoryStageLog(name string, id int, stageName string, start int) (*model.JobStageLog, error) GetJobHistoryStepLog(name string, id int, stageName string, stepName string) (*output.Step, error) TerminalJob(name string, id int) error GetCurrentJobStatus(jobName string, jobID int) (model.Status, error) IsValidWorker(w string) bool GetWorkRootPath() string }
func NewMasterEngine ¶ added in v1.0.3
func NewWorkerEngine ¶ added in v1.0.3
Directories ¶
Path | Synopsis |
---|---|
bin
|
|
grpc
|
|
logger 提供封装好的 logrus 日志库 日志等级从底到高分别为:trace, debug, info, warn, error, fatal, panic trace 用于跟踪程序运行过程中的一些细节 debug 用于调试程序 info 用于重要信息 warn 用于警告信息 error 用于错误信息 fatal 用于致命错误,程序将退出 panic 用于致命错误,程序将崩溃退出,并展开堆栈调用信息
|
logger 提供封装好的 logrus 日志库 日志等级从底到高分别为:trace, debug, info, warn, error, fatal, panic trace 用于跟踪程序运行过程中的一些细节 debug 用于调试程序 info 用于重要信息 warn 用于警告信息 error 用于错误信息 fatal 用于致命错误,程序将退出 panic 用于致命错误,程序将崩溃退出,并展开堆栈调用信息 |
Click to show internal directories.
Click to hide internal directories.