core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

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

func (Pipeline) Execute

func (p Pipeline) Execute(
	goContext context.Context,
	serviceName string,
	workspaceDescription workspace.Description,
	outChan chan StepExecResult)

Each step can be returned as completed several times, because of possible pipeline rerun Step with seq_no = -1 means some error inside pipeline, not step

func (Pipeline) Size

func (p Pipeline) Size() int

type PipelineBuilder

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

func NewPipelineBuilder

func NewPipelineBuilder() *PipelineBuilder

func (*PipelineBuilder) Build

func (pb *PipelineBuilder) Build() Pipeline

func (*PipelineBuilder) Register

func (pb *PipelineBuilder) Register(step Step) *PipelineBuilder

type Step

type Step interface {
	Name() string
	Execute(*gencontext.GenContext) (StepResult, error)
}

type StepExecResult

type StepExecResult struct {
	SeqNo int
	Step  *Step
	Error error
}

type StepResult

type StepResult int
const (
	Done      StepResult = 0
	RepeatAll StepResult = 1
)

Jump to

Keyboard shortcuts

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