pipeline

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2019 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 DAG

type DAG struct {
	//Nodes represent map of PipelineTask name to Node in Pipeline DAG
	Nodes map[string]*Node
}

DAG represents the Pipeline DAG

func Build

func Build(p *v1alpha1.Pipeline) (*DAG, error)

Build returns a valid pipeline DAG. Returns error if the pipeline is invalid

func (*DAG) GetPreviousTasks

func (g *DAG) GetPreviousTasks(pt string) []v1alpha1.PipelineTask

GetPreviousTasks return all the previous tasks for a PipelineTask in the DAG

type Node

type Node struct {
	// Task represent the PipelineTask in Pipeline
	Task v1alpha1.PipelineTask
	// Prev represent all the Previous task Nodes for the current Task
	Prev []*Node
}

Node represents a Task in a pipeline.

func (Node) String

func (n Node) String() string

Jump to

Keyboard shortcuts

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