Documentation ¶
Index ¶
- func InputsFromFiles(files []string) func() (PipelineEntryInfo, io.ReadCloser, error)
- func ListPipelineSteps() []func() Step
- func RegisterPipelineStep(op string, step func() Step)
- func Run(ctx *PipelineContext) error
- type DefaultPipelineEntryInfo
- type ForkStep
- type Pipeline
- type PipelineContext
- type PipelineEntryInfo
- type PipelineError
- type ReadGraphStep
- type Step
- type StepFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InputsFromFiles ¶
func InputsFromFiles(files []string) func() (PipelineEntryInfo, io.ReadCloser, error)
InputsFromFiles returns a function that will read input files sequentially for pipeline Run inputs func
func ListPipelineSteps ¶
func ListPipelineSteps() []func() Step
func RegisterPipelineStep ¶
Types ¶
type DefaultPipelineEntryInfo ¶
type DefaultPipelineEntryInfo struct {
Name string
}
func (DefaultPipelineEntryInfo) GetName ¶
func (pinfo DefaultPipelineEntryInfo) GetName() string
type Pipeline ¶
type Pipeline []Step
func (*Pipeline) UnmarshalJSON ¶
func (*Pipeline) UnmarshalYAML ¶
type PipelineContext ¶
type PipelineContext struct { *ls.Context Graph *lpg.Graph Roots []*lpg.Node NextInput func() (PipelineEntryInfo, io.ReadCloser, error) CurrentStep int Steps []Step Properties map[string]interface{} GraphOwner *PipelineContext ErrorLogger func(*PipelineContext, error) EntryLogger func(*PipelineContext, map[string]interface{}) }
func NewContext ¶
func NewContext(lsctx *ls.Context, pipeline Pipeline, initialGraph *lpg.Graph, inputs func() (PipelineEntryInfo, io.ReadCloser, error)) *PipelineContext
create new pipeline context with an optional initial graph and inputs func
func (*PipelineContext) Next ¶
func (ctx *PipelineContext) Next() error
func (*PipelineContext) SetGraph ¶
func (ctx *PipelineContext) SetGraph(g *lpg.Graph) *PipelineContext
type PipelineEntryInfo ¶
type PipelineEntryInfo interface {
GetName() string
}
type PipelineError ¶
func (PipelineError) Error ¶
func (e PipelineError) Error() string
func (PipelineError) Unwrap ¶
func (e PipelineError) Unwrap() error
type ReadGraphStep ¶
type ReadGraphStep struct {
Format string `json:"format" yaml:"format"`
}
func (ReadGraphStep) Help ¶
func (ReadGraphStep) Help()
func (ReadGraphStep) Run ¶
func (rd ReadGraphStep) Run(pipeline *PipelineContext) error
type Step ¶
type Step interface {
Run(*PipelineContext) error
}
func ReadPipeline ¶
func UnmarshalPipeline ¶
type StepFunc ¶
type StepFunc func(*PipelineContext) error
func (StepFunc) Run ¶
func (f StepFunc) Run(ctx *PipelineContext) error
Click to show internal directories.
Click to hide internal directories.