pipeline

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListCommandsPipeline = []Piper{
	invalidate.Pipe{},
	initialize.Pipe{},
	verify.Pipe{},
	commands.Pipe{},
}

ListCommandsPipeline contains all pipe implementations to list commands in order

View Source
var ListPlatformsPipeline = []Piper{
	invalidate.Pipe{},
	initialize.Pipe{},
	platforms.Pipe{},
}

ListPlatformsPipeline contains all pipe implementations to list platforms in order

View Source
var RenderPipeline = []Piper{
	invalidate.Pipe{},
	initialize.Pipe{},
	verify.Pipe{},
	random.Pipe{},
	page.Pipe{},
	render.Pipe{},
}

RenderPipeline contains all pipe implementations to render pages in order

Functions

func Execute

func Execute(ctx *context.Context, pipeline []Piper) (*context.Context, error)

Execute runs a given pipeline with logging and error handling

Types

type Piper

type Piper interface {
	fmt.Stringer
	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