Documentation
¶
Index ¶
- Variables
- func AbortOnError(err error) bool
- func InterfaceToAny(i interface{}) (*anypb.Any, error)
- func PrefixName(name, prefix string) string
- type AllowFailure
- type And
- type Bootstraper
- type Concurrent
- type Env
- type Executable
- type ExpressionParser
- type GarbageCollector
- type If
- type Inherit
- type Matrix
- type Needs
- type Next
- type OtelMetrics
- type OtelTrace
- type OutputCloser
- type OutputFactory
- type Pipe
- type Pipeline
- type PipelineBuilder
- type ProcessorBuilder
- func WithAllowFailure() ProcessorBuilder
- func WithAnd() ProcessorBuilder
- func WithConcurrent() ProcessorBuilder
- func WithEnv(defaultEnv map[string]string) 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 WithOtelMetrics(meter metric.Meter) ProcessorBuilder
- func WithOtelTrace(logger logr.Logger, tracer trace.Tracer) ProcessorBuilder
- func WithPipe() ProcessorBuilder
- func WithReport(store ResultStore, uniqueName string) ProcessorBuilder
- func WithResult() ProcessorBuilder
- func WithRetry() ProcessorBuilder
- func WithRun(tee bool, defaultPullPolicy runtime.PullImagePolicy, driver runtime.Interface, ...) ProcessorBuilder
- func WithSkipBlacklist(blacklist []string) ProcessorBuilder
- func WithSkipDone(skipDone bool) ProcessorBuilder
- func WithStdio() ProcessorBuilder
- func WithTimeout() ProcessorBuilder
- func WithTmpDir() ProcessorBuilder
- type Report
- type Result
- type ResultStore
- type Retry
- type Run
- type SkipBlacklist
- 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
- type TmpDir
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 ErrSkipBlacklist = errors.New("skip blacklisted step")
View Source
var ErrSkipDone = errors.New("skip step marked as successful")
Functions ¶
func AbortOnError ¶
func InterfaceToAny ¶ added in v0.0.7
Convert interface{} to *anypb.Any (packing)
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 Env ¶ added in v0.0.7
type Env struct {
// contains filtered or unexported fields
}
func (*Env) MarshalJSON ¶ added in v0.0.7
func (*Env) UnmarshalJSON ¶ added in v0.0.7
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 OtelMetrics ¶ added in v0.0.7
type OtelMetrics struct {
// contains filtered or unexported fields
}
type OtelTrace ¶ added in v0.0.7
type OtelTrace struct {
// contains filtered or unexported fields
}
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 WithEnv ¶ added in v0.0.7
func WithEnv(defaultEnv map[string]string) 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 WithOtelMetrics ¶ added in v0.0.7
func WithOtelMetrics(meter metric.Meter) ProcessorBuilder
func WithOtelTrace ¶ added in v0.0.7
func WithOtelTrace(logger logr.Logger, tracer trace.Tracer) ProcessorBuilder
func WithPipe ¶
func WithPipe() ProcessorBuilder
func WithReport ¶
func WithReport(store ResultStore, uniqueName string) ProcessorBuilder
func WithResult ¶ added in v0.0.7
func WithResult() 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 WithSkipBlacklist ¶ added in v0.0.7
func WithSkipBlacklist(blacklist []string) ProcessorBuilder
func WithSkipDone ¶
func WithSkipDone(skipDone bool) ProcessorBuilder
func WithStdio ¶
func WithStdio() ProcessorBuilder
func WithTimeout ¶
func WithTimeout() ProcessorBuilder
func WithTmpDir ¶ added in v0.0.9
func WithTmpDir() 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 SkipBlacklist ¶ added in v0.0.7
type SkipBlacklist struct {
// contains filtered or unexported fields
}
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 *ioext.MultiWriter Stderr *ioext.MultiWriter // contains filtered or unexported fields }
func NewContext ¶
func NewContext(dir 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
type StepResult ¶
type StepResult struct { StartedAt time.Time EndedAt time.Time Outputs map[string]string Error error DataDir string }
func (*StepResult) Duration ¶
func (t *StepResult) Duration() time.Duration
Source Files
¶
- allow_failure.go
- and.go
- builder.go
- concurrent.go
- context.go
- env.go
- errors.go
- expression_parser.go
- garbage_collector.go
- if.go
- inherit.go
- matrix.go
- needs.go
- otel_metrics.go
- otel_trace.go
- pipe.go
- processor.go
- report.go
- result.go
- retry.go
- run.go
- skip_blacklist.go
- skip_done.go
- sources.go
- stdio.go
- timeout.go
- tmpdir.go
- utils.go
Click to show internal directories.
Click to hide internal directories.