phase

package
v0.0.0-...-d807b53 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListExec

func ListExec(ctx context.Context, status pipeline.Status, id uint32)

func Phases

func Phases() map[pipeline.Status]*BasePhase

func RemainsExec

func RemainsExec(ctx context.Context, status pipeline.Status, id uint32)

Types

type BasePhase

type BasePhase struct {
	IPhaser IPhaser
}

func NewBasePhase

func NewBasePhase(IPhaser IPhaser) *BasePhase

func PhaseList

func PhaseList() []*BasePhase

func Remains

func Remains(status pipeline.Status) []*BasePhase

func (*BasePhase) Exec

func (b *BasePhase) Exec(ctx context.Context, id uint32) error

type BuildQueuingPhase

type BuildQueuingPhase struct {
}

func NewBuildQueuingPhase

func NewBuildQueuingPhase() *BuildQueuingPhase

func (*BuildQueuingPhase) Exec

Exec BuildQueuing 状态的任务会被该方法执行 将任务状态由 BuildQueuing -> WaitForBorrowing

func (*BuildQueuingPhase) Status

func (q *BuildQueuingPhase) Status() pipeline.Status

type IPhaser

type IPhaser interface {
	Exec(ctx context.Context, p *pipeline.Pipeline) error
	Status() pipeline.Status
}

type WaitForBorrowingPhase

type WaitForBorrowingPhase struct {
}

func NewWaitForBorrowingPhase

func NewWaitForBorrowingPhase() *WaitForBorrowingPhase

func (*WaitForBorrowingPhase) Exec

func (*WaitForBorrowingPhase) Status

type WaitForDispatchingPhase

type WaitForDispatchingPhase struct {
}

func NewWaitForDispatchingPhase

func NewWaitForDispatchingPhase() *WaitForDispatchingPhase

func (WaitForDispatchingPhase) Exec

func (WaitForDispatchingPhase) Status

Jump to

Keyboard shortcuts

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