engine

package
v0.0.0-...-6b6719a Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidBuild     = errors.New("invalid build")
	ErrInvalidPipeline  = errors.New("invalid project")
	ErrInvalidProject   = errors.New("invalid pipeline")
	ErrInvalidSecrets   = errors.New("invalid secrets")
	ErrInvalidVariables = errors.New("invalid variables")

	ErrBuildSave       = errors.New("unable to save build to database")
	ErrBuildInitFailed = errors.New("build init ended with error")
)
View Source
var ErrBuildCancelled = errors.New("build cancelled")

Functions

This section is empty.

Types

type Engine

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

func NewEngine

func NewEngine(logger log.Logger, binder common.IBinder) *Engine

func (*Engine) AddToQueue

func (e *Engine) AddToQueue(ctx model.QueueContext)

func (*Engine) ChangeInWorkers

func (e *Engine) ChangeInWorkers()

func (*Engine) Finished

func (e *Engine) Finished(buildID string)

func (*Engine) Run

func (e *Engine) Run()

func (*Engine) Schedule

func (e *Engine) Schedule(buildID string)

func (*Engine) Shutdown

func (e *Engine) Shutdown() chan any

type EngineEvent

type EngineEvent int
const (
	EventSchedule EngineEvent = iota
	EventFinished
	EventAddToQueue
	EventChangeInWorkers
	EventShutdown
)

func (EngineEvent) String

func (e EngineEvent) String() string

type EngineEventStatus

type EngineEventStatus int
const (
	EventReceived EngineEventStatus = iota
	EventProcessed
	EventComplete
	EventFailed
)

func (EngineEventStatus) String

func (s EngineEventStatus) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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