engine

package module
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2023 License: GPL-3.0 Imports: 6 Imported by: 4

README

aline-engine

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

func NewEngine

func NewEngine() *Engine

func (*Engine) CreateJob

func (e *Engine) CreateJob(name string, yaml string) error

func (*Engine) DeleteJob

func (e *Engine) DeleteJob(name string) error

func (*Engine) DeleteJobHistory

func (e *Engine) DeleteJobHistory(name string, historyId int) error

func (*Engine) ExecuteJob

func (e *Engine) ExecuteJob(name string) (*model.JobDetail, error)

func (*Engine) GetCodeInfo

func (e *Engine) GetCodeInfo(name string, historyId int) string

func (*Engine) GetJob

func (e *Engine) GetJob(name string) *model.Job

func (*Engine) GetJobHistory

func (e *Engine) GetJobHistory(name string, historyId int) *model.JobDetail

func (*Engine) GetJobHistoryLog

func (e *Engine) GetJobHistoryLog(name string, historyId int) *model.JobLog

func (*Engine) GetJobHistoryStageLog

func (e *Engine) GetJobHistoryStageLog(name string, historyId int, stageName string, start int) *model.JobStageLog

func (*Engine) GetJobHistorys

func (e *Engine) GetJobHistorys(name string, page, size int) *model.JobDetailPage

func (*Engine) GetJobs

func (e *Engine) GetJobs(keyword string, page int, size int) *model.JobPage

func (*Engine) ReExecuteJob

func (e *Engine) ReExecuteJob(name string, historyId int) error

func (*Engine) RegisterStatusChangeHook

func (e *Engine) RegisterStatusChangeHook(hookResult func(message model.StatusChangeMessage))

func (*Engine) Start

func (e *Engine) Start()

func (*Engine) TerminalJob

func (e *Engine) TerminalJob(name string, historyId int) error

func (*Engine) UpdateJob

func (e *Engine) UpdateJob(name, newName, jobYaml string) error

Directories

Path Synopsis
grpc
api
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 用于致命错误,程序将崩溃退出,并展开堆栈调用信息

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL