Documentation ¶
Overview ¶
package pipe initializes, configures and runs a pipeline
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Steps []StepConfig `json:"steps"`
}
Config is the Configuration Object to setup all steps
type Pipeline ¶
type Pipeline struct {
Steps []Step
}
Pipeline holds all steps and executes them on after each other
func (*Pipeline) FromConfig ¶
FromConfig takes a StepConfig in JSON format and creates an executable Pipeline from it
type Step ¶
Step is a pipeline step which takes an io.Reader as well as an io.Writer as arguments The previous (or first) pipeline step will pipe its result to the reader of the next (or final) pipeline step. The step is expected to write its result to the writer so that the next (or final) step can proceed doing its work.
type StepConfig ¶
type StepConfig struct { Kind string `json:"kind"` Config json.RawMessage `json:"config"` }
StepConfig is the object to hold the kind and config of each step