pipeline

package
v0.3.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipelines

type Pipelines struct {
	Piper []Piper
	Ctx   context.Context
}

func NewPipelines

func NewPipelines(ctx context.Context) *Pipelines

func (*Pipelines) Execute

func (p *Pipelines) Execute() (context.Context, error)

func (*Pipelines) Register

func (p *Pipelines) Register(pipe ...Piper)

Register all build-related pipe implementations in order. nolint:gochecknoglobals

type Piper

type Piper interface {
	fmt.Stringer
	// Run the pipe
	Run(ctx context.Context) error
}

Piper defines a pipe, which can be part of a pipeline (a series of pipes).

Jump to

Keyboard shortcuts

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