Documentation
¶
Index ¶
- Variables
- func AbortOnError(err error) bool
- func ContainerSpec(container *runtime.ContainerSpec, template *v1beta1.Template)
- func SuffixName(name, suffix string) string
- type AllowFailure
- type And
- type Bootstraper
- type Concurrent
- type Debug
- type EnvVars
- type Executable
- type GarbageCollector
- type If
- type Inherit
- type InputVars
- type LogBuilder
- type Logger
- type Matrix
- type Monitor
- type Needs
- type Next
- type OtelMetrics
- type OtelTrace
- type Output
- type OutputCloser
- type OutputFactory
- type OutputParam
- type OutputVars
- type Pipe
- type Pipeline
- type PipelineBuilder
- type ProcessorBuilder
- func WithAllowFailure() ProcessorBuilder
- func WithAnd() ProcessorBuilder
- func WithConcurrent(pool pond.Pool) ProcessorBuilder
- func WithEnvVars(osEnv, defaultEnv map[string]string) ProcessorBuilder
- func WithGarbageCollector(noGC bool, driver runtime.Interface, teardown chan Teardown) ProcessorBuilder
- func WithIf(celEnv *cel.Env) ProcessorBuilder
- func WithInherit(builder PipelineBuilder, provider provider.Interface) ProcessorBuilder
- func WithInputVars(celEnv *cel.Env) ProcessorBuilder
- func WithLogger(defaultLogger logr.Logger, logBuilder LogBuilder, detached bool) ProcessorBuilder
- func WithMatrix(pool pond.Pool) ProcessorBuilder
- func WithMonitor(enabled bool, interval time.Duration, dev io.Writer) ProcessorBuilder
- func WithNeeds() ProcessorBuilder
- func WithOtelMetrics(meter metric.Meter) ProcessorBuilder
- func WithOtelTrace(logger logr.Logger, tracer trace.Tracer) ProcessorBuilder
- func WithOutput(outputFactory OutputFactory, withInternals, decouple bool) ProcessorBuilder
- func WithOutputVars() ProcessorBuilder
- func WithPipe(tee bool) ProcessorBuilder
- func WithRecover() ProcessorBuilder
- func WithReport(report Reporter) ProcessorBuilder
- func WithResult() ProcessorBuilder
- func WithRetry() ProcessorBuilder
- func WithRun(defaultPullPolicy runtime.PullImagePolicy, driver runtime.Interface, ...) ProcessorBuilder
- func WithSecretVars(osEnv, defaultSecret map[string]string, secretWriter secretWriter) ProcessorBuilder
- func WithSkipBlacklist(blacklist []string) ProcessorBuilder
- func WithSkipDone(skipDone bool) ProcessorBuilder
- func WithStdioRedirect(tee bool) ProcessorBuilder
- func WithTags(globalTags []Tag) ProcessorBuilder
- func WithTemplate(template v1beta1.Template) ProcessorBuilder
- func WithTimeout() ProcessorBuilder
- func WithTmpDir() ProcessorBuilder
- type Recover
- type Report
- type Reporter
- type Result
- type Retry
- type Run
- type SecretVars
- type SkipBlacklist
- type SkipDone
- type StdioRedirect
- type Step
- type StepContext
- func (c StepContext) DeepCopy() StepContext
- func (t StepContext) FromV1Beta1(vars *v1beta1.Context)
- func (t StepContext) HasTag(key string) bool
- func (t StepContext) Merge(c StepContext) StepContext
- func (t StepContext) Tags() []Tag
- func (t StepContext) ToV1Beta1() *v1beta1.Context
- func (t StepContext) WithTag(tag Tag) StepContext
- type Tag
- type Tags
- type Teardown
- type Template
- 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 ErrEmptyMatrix = errors.New("empty matrix")
View Source
var ErrSkipBlacklist = errors.New("skip blacklisted step")
View Source
var ErrSkipDone = errors.New("skip step marked as successful")
View Source
var ErrTimeout = errors.New("operation timed out")
Functions ¶
func AbortOnError ¶
func ContainerSpec ¶ added in v0.0.29
func ContainerSpec(container *runtime.ContainerSpec, template *v1beta1.Template)
func SuffixName ¶ added in v0.0.29
Types ¶
type AllowFailure ¶
type AllowFailure struct {
}
type Bootstraper ¶
func Builder ¶
func Builder(spec *v1beta1.Step, builders ...ProcessorBuilder) []Bootstraper
func WithDebug ¶ added in v0.0.29
func WithDebug(logger logr.Logger, debug bool, spec *v1beta1.Step, processors ...Bootstraper) []Bootstraper
type Concurrent ¶
type Concurrent struct {
// contains filtered or unexported fields
}
type Executable ¶
type Executable func() (StepContext, map[string]v1beta1.ParamValue, error)
type GarbageCollector ¶
type GarbageCollector struct {
// contains filtered or unexported fields
}
type InputVars ¶ added in v0.0.26
type InputVars struct {
// contains filtered or unexported fields
}
type Next ¶
type Next func(ctx 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 OutputFactory ¶
type OutputFactory func(ctx StepContext, stepName, short string) (io.Writer, io.Writer, OutputCloser)
type OutputParam ¶ added in v0.0.19
type OutputVars ¶ added in v0.0.26
type OutputVars struct {
// contains filtered or unexported fields
}
type PipelineBuilder ¶
type PipelineBuilder interface {
Build(pipeline v1beta1.Pipeline, entrypoint string, inputs map[string]v1beta1.ParamValue, stepCtx StepContext) (Executable, error)
}
type ProcessorBuilder ¶
type ProcessorBuilder func(spec *v1beta1.Step) Bootstraper
func WithAllowFailure ¶
func WithAllowFailure() ProcessorBuilder
func WithAnd ¶
func WithAnd() ProcessorBuilder
func WithConcurrent ¶
func WithConcurrent(pool pond.Pool) ProcessorBuilder
func WithEnvVars ¶ added in v0.0.26
func WithEnvVars(osEnv, defaultEnv map[string]string) 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, provider provider.Interface) ProcessorBuilder
func WithInputVars ¶ added in v0.0.26
func WithInputVars(celEnv *cel.Env) ProcessorBuilder
func WithLogger ¶ added in v0.0.19
func WithLogger(defaultLogger logr.Logger, logBuilder LogBuilder, detached bool) ProcessorBuilder
func WithMatrix ¶
func WithMatrix(pool pond.Pool) ProcessorBuilder
func WithMonitor ¶ added in v0.0.31
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 WithOutput ¶ added in v0.0.19
func WithOutput(outputFactory OutputFactory, withInternals, decouple bool) ProcessorBuilder
func WithOutputVars ¶ added in v0.0.26
func WithOutputVars() ProcessorBuilder
func WithPipe ¶
func WithPipe(tee bool) ProcessorBuilder
func WithRecover ¶ added in v0.0.19
func WithRecover() ProcessorBuilder
func WithReport ¶
func WithReport(report Reporter) ProcessorBuilder
func WithResult ¶ added in v0.0.7
func WithResult() ProcessorBuilder
func WithRetry ¶
func WithRetry() ProcessorBuilder
func WithRun ¶
func WithRun(defaultPullPolicy runtime.PullImagePolicy, driver runtime.Interface, outputFactory OutputFactory, teardown chan Teardown) ProcessorBuilder
func WithSecretVars ¶ added in v0.0.29
func WithSecretVars(osEnv, defaultSecret map[string]string, secretWriter secretWriter) ProcessorBuilder
func WithSkipBlacklist ¶ added in v0.0.7
func WithSkipBlacklist(blacklist []string) ProcessorBuilder
func WithSkipDone ¶
func WithSkipDone(skipDone bool) ProcessorBuilder
func WithStdioRedirect ¶ added in v0.0.19
func WithStdioRedirect(tee bool) ProcessorBuilder
func WithTags ¶ added in v0.0.36
func WithTags(globalTags []Tag) ProcessorBuilder
func WithTemplate ¶ added in v0.0.19
func WithTemplate(template v1beta1.Template) ProcessorBuilder
func WithTimeout ¶
func WithTimeout() ProcessorBuilder
func WithTmpDir ¶ added in v0.0.9
func WithTmpDir() ProcessorBuilder
type Reporter ¶ added in v0.0.29
type Reporter interface {
Report(ctx StepContext, name string) error
}
type SecretVars ¶ added in v0.0.29
type SecretVars struct {
// contains filtered or unexported fields
}
type SkipBlacklist ¶ added in v0.0.7
type SkipBlacklist struct {
// contains filtered or unexported fields
}
type StdioRedirect ¶ added in v0.0.19
type StdioRedirect struct {
// contains filtered or unexported fields
}
type Step ¶
type Step interface {
Processors() []Bootstraper
Entrypoint() (Next, error)
}
type StepContext ¶
type StepContext struct {
context.Context `json:"-"`
Dir string
DataDir string
Matrix map[string]string
Inputs map[string]v1beta1.ParamValue
Steps map[string]*StepContext `json:"-"`
Envs map[string]string
Secrets map[string]string
Containers map[string]cruntime.ContainerStatus
NamePrefix string
Secret string
Env string
Outputs []OutputParam
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
AdditionalStdout []io.Writer
AdditionalStderr []io.Writer
Template *v1beta1.Template
StartedAt time.Time
EndedAt time.Time
OutputVars map[string]v1beta1.ParamValue
Error error
// contains filtered or unexported fields
}
func NewContext ¶
func NewContext() StepContext
func (StepContext) DeepCopy ¶
func (c StepContext) DeepCopy() StepContext
func (StepContext) FromV1Beta1 ¶
func (t StepContext) FromV1Beta1(vars *v1beta1.Context)
func (StepContext) HasTag ¶ added in v0.0.29
func (t StepContext) HasTag(key string) bool
func (StepContext) Merge ¶
func (t StepContext) Merge(c StepContext) StepContext
func (StepContext) Tags ¶ added in v0.0.19
func (t StepContext) Tags() []Tag
func (StepContext) ToV1Beta1 ¶
func (t StepContext) ToV1Beta1() *v1beta1.Context
func (StepContext) WithTag ¶ added in v0.0.29
func (t StepContext) WithTag(tag Tag) StepContext
Source Files
¶
- allow_failure.go
- and.go
- builder.go
- concurrent.go
- context.go
- debug.go
- env_vars.go
- errors.go
- garbage_collector.go
- if.go
- inherit.go
- input_vars.go
- logger.go
- matrix.go
- monitor.go
- needs.go
- otel_metrics.go
- otel_trace.go
- output.go
- output_vars.go
- pipe.go
- processor.go
- recover.go
- report.go
- result.go
- retry.go
- run.go
- secret_vars.go
- skip_blacklist.go
- skip_done.go
- stdio_redirect.go
- tags.go
- template.go
- timeout.go
- tmpdir.go
- utils.go
Click to show internal directories.
Click to hide internal directories.