pipeline

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2017 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context map[string]interface{}

func (Context) ResolveConfig added in v1.0.0

func (c Context) ResolveConfig(cfg map[string]interface{}) (map[string]interface{}, error)

func (Context) ResolveTemplate added in v1.0.0

func (c Context) ResolveTemplate(name string, content string) (string, error)

type Pipeline

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

func Create

func Create() *Pipeline

func (*Pipeline) Add

func (p *Pipeline) Add(step Step)

func (*Pipeline) Execute

func (p *Pipeline) Execute() error

type Step

type Step interface {
	Execute(p Context) error
}

Jump to

Keyboard shortcuts

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