Documentation
¶
Index ¶
- Variables
- func AbortOnError(err error) bool
- func PrefixName(name, prefix string) string
- type AllowFailure
- type And
- type Bootstraper
- type Concurrent
- type EventEmitter
- type Executable
- type ExpressionParser
- type GarbageCollector
- type If
- type Inherit
- type Matrix
- type Needs
- type Next
- type Otel
- type OutputCloser
- type OutputFactory
- type Pipe
- type Pipeline
- type PipelineBuilder
- type ProcessorBuilder
- func WithAllowFailure() ProcessorBuilder
- func WithAnd() ProcessorBuilder
- func WithConcurrent() ProcessorBuilder
- func WithEventEmitter() ProcessorBuilder
- func WithExpressionParser(celEnv *cel.Env, processors ...Bootstraper) ProcessorBuilder
- func WithGarbageCollector(noGC bool, driver runtime.Interface, teardown chan Teardown) ProcessorBuilder
- func WithIf(celEnv *cel.Env) ProcessorBuilder
- func WithInherit(builder PipelineBuilder, store storage.Interface) ProcessorBuilder
- func WithMatrix() ProcessorBuilder
- func WithNeeds() ProcessorBuilder
- func WithOtel(logger logr.Logger, tracer trace.Tracer, meter metric.Meter) ProcessorBuilder
- func WithPipe() ProcessorBuilder
- func WithReport(store ResultStore, uniqueName string) ProcessorBuilder
- func WithRetry() ProcessorBuilder
- func WithRun(tee bool, defaultPullPolicy runtime.PullImagePolicy, driver runtime.Interface, ...) ProcessorBuilder
- func WithSkipDone(skipDone bool) ProcessorBuilder
- func WithStdio() ProcessorBuilder
- func WithTimeout() ProcessorBuilder
- type Report
- type ResultStore
- type Retry
- type Run
- type SkipDone
- type Stdio
- type Step
- type StepContext
- func (t StepContext) Child() StepContext
- func (c StepContext) DeepCopy() StepContext
- func (t StepContext) FromV1Beta1(vars *v1beta1.RuntimeVars)
- func (t StepContext) Merge(c StepContext) StepContext
- func (t StepContext) RuntimeVars() map[string]interface{}
- func (t StepContext) TmpDir() string
- func (t StepContext) ToV1Beta1() *v1beta1.RuntimeVars
- type StepResult
- type Teardown
- type Timeout
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAllowFailure = errors.New("ignore error returned from step")
View Source
var ErrConditionFalse = errors.New("conditional step skipped")
View Source
var ErrSkipDone = errors.New("skip step marked as successful")
Functions ¶
func AbortOnError ¶
func PrefixName ¶
Types ¶
type AllowFailure ¶
type AllowFailure struct {
}
type Bootstraper ¶
func Builder ¶
func Builder(spec *v1beta1.Step, builders ...ProcessorBuilder) []Bootstraper
type Concurrent ¶
type Concurrent struct {
// contains filtered or unexported fields
}
type EventEmitter ¶
type EventEmitter struct {
// contains filtered or unexported fields
}
type Executable ¶
type Executable func(ctx context.Context) (StepContext, error)
type ExpressionParser ¶
type ExpressionParser struct {
// contains filtered or unexported fields
}
type GarbageCollector ¶
type GarbageCollector struct {
// contains filtered or unexported fields
}
type Inherit ¶
type Inherit struct {
// contains filtered or unexported fields
}
func (*Inherit) MarshalJSON ¶
func (*Inherit) UnmarshalJSON ¶
type Matrix ¶
type Matrix struct {
// contains filtered or unexported fields
}
func (*Matrix) MarshalJSON ¶
func (*Matrix) UnmarshalJSON ¶
type Next ¶
type Next func(ctx context.Context, stepContext StepContext) (StepContext, error)
type OutputCloser ¶
type OutputCloser func(err error)
type OutputFactory ¶
type PipelineBuilder ¶
type ProcessorBuilder ¶
type ProcessorBuilder func(spec *v1beta1.Step) Bootstraper
func WithAllowFailure ¶
func WithAllowFailure() ProcessorBuilder
func WithAnd ¶
func WithAnd() ProcessorBuilder
func WithConcurrent ¶
func WithConcurrent() ProcessorBuilder
func WithEventEmitter ¶
func WithEventEmitter() ProcessorBuilder
func WithExpressionParser ¶
func WithExpressionParser(celEnv *cel.Env, processors ...Bootstraper) ProcessorBuilder
func WithGarbageCollector ¶
func WithGarbageCollector(noGC bool, driver runtime.Interface, teardown chan Teardown) ProcessorBuilder
func WithIf ¶
func WithIf(celEnv *cel.Env) ProcessorBuilder
func WithInherit ¶
func WithInherit(builder PipelineBuilder, store storage.Interface) ProcessorBuilder
func WithMatrix ¶
func WithMatrix() ProcessorBuilder
func WithNeeds ¶
func WithNeeds() ProcessorBuilder
func WithPipe ¶
func WithPipe() ProcessorBuilder
func WithReport ¶
func WithReport(store ResultStore, uniqueName string) ProcessorBuilder
func WithRetry ¶
func WithRetry() ProcessorBuilder
func WithRun ¶
func WithRun(tee bool, defaultPullPolicy runtime.PullImagePolicy, driver runtime.Interface, outputFactory OutputFactory, stdin io.Reader, stdout, stderr io.Writer) ProcessorBuilder
func WithSkipDone ¶
func WithSkipDone(skipDone bool) ProcessorBuilder
func WithStdio ¶
func WithStdio() ProcessorBuilder
func WithTimeout ¶
func WithTimeout() ProcessorBuilder
type ResultStore ¶
type ResultStore interface {
Add(stepName string, result *StepResult)
}
type Run ¶
type Run struct {
// contains filtered or unexported fields
}
func (*Run) MarshalJSON ¶
func (*Run) UnmarshalJSON ¶
type Stdio ¶
type Stdio struct {
// contains filtered or unexported fields
}
func (*Stdio) MarshalJSON ¶
func (*Stdio) UnmarshalJSON ¶
type Step ¶
type Step interface {
Processors() []Bootstraper
Entrypoint() (Next, error)
}
type StepContext ¶
type StepContext struct {
Matrix map[string]interface{}
Steps map[string]*StepResult
Envs map[string]string
Containers map[string]cruntime.ContainerStatus
NamePrefix string
Env string
Parent string
Output string
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext(tmpDir string, inputs map[string]interface{}) StepContext
func (StepContext) Child ¶
func (t StepContext) Child() StepContext
func (StepContext) DeepCopy ¶
func (c StepContext) DeepCopy() StepContext
func (StepContext) FromV1Beta1 ¶
func (t StepContext) FromV1Beta1(vars *v1beta1.RuntimeVars)
func (StepContext) Merge ¶
func (t StepContext) Merge(c StepContext) StepContext
func (StepContext) RuntimeVars ¶
func (t StepContext) RuntimeVars() map[string]interface{}
func (StepContext) TmpDir ¶
func (t StepContext) TmpDir() string
func (StepContext) ToV1Beta1 ¶
func (t StepContext) ToV1Beta1() *v1beta1.RuntimeVars
Click to show internal directories.
Click to hide internal directories.