Documentation ¶
Index ¶
- Variables
- type Flag
- type Itinerary
- func (r *Itinerary) First() (step Step, err error)
- func (r *Itinerary) Get(name string) (step Step, err error)
- func (r *Itinerary) List() (pipeline Pipeline, err error)
- func (r *Itinerary) Next(name string) (next Step, done bool, err error)
- func (r *Itinerary) Progress(step string) (report Progress, err error)
- type Pipeline
- type Predicate
- type Progress
- type Step
Constants ¶
This section is empty.
Variables ¶
View Source
var (
StepNotFound = errors.New("step not found")
)
Errors.
Functions ¶
This section is empty.
Types ¶
type Itinerary ¶
type Itinerary struct { // Pipeline (list) of steps. Pipeline // Predicate. Predicate // Name. Name string }
An itinerary. List of conditional steps.
type Predicate ¶
type Predicate interface { // Evaluate the condition. // Returns (true) when the step should be included. Evaluate(Flag) (bool, error) }
Predicate. Flags delegated to the predicate.
Click to show internal directories.
Click to hide internal directories.