Versions in this module Expand all Collapse all v1 v1.0.5 Nov 9, 2023 GO-2024-2998 +1 more GO-2024-2998: Woodpecker's custom environment variables allow to alter execution flow of plugins in go.woodpecker-ci.org/woodpecker GO-2024-2999: Woodpecker's custom workspace allow to overwrite plugin entrypoint executable in go.woodpecker-ci.org/woodpecker Changes in this version + var DefaultTracer = TraceFunc(func(state *State) error { ... }) + var ErrCancel = errors.New("Canceled") + var ErrSkip = errors.New("Skipped") + func SanitizePath(path string) string + func SetPipelineStepsOnPipeline(pipeline *model.Pipeline, pipelineItems []*Item) *model.Pipeline + type ExitError struct + Code int + Name string + func (e *ExitError) Error() string + type Item struct + Config *backend_types.Config + DependsOn []string + Labels map[string]string + Platform string + RunsOn []string + Workflow *model.Workflow + type LogFunc func(*backend.Step, multipart.Reader) error + func (f LogFunc) Log(step *backend.Step, r multipart.Reader) error + type Logger interface + Log func(*backend.Step, multipart.Reader) error + type OomError struct + Code int + Name string + func (e *OomError) Error() string + type Option func(*Runtime) + func WithContext(ctx context.Context) Option + func WithDescription(desc map[string]string) Option + func WithEngine(engine backend.Engine) Option + func WithLogger(logger Logger) Option + func WithTaskUUID(uuid string) Option + func WithTracer(tracer Tracer) Option + type Runtime struct + Description map[string]string + func New(spec *backend.Config, opts ...Option) *Runtime + func (r *Runtime) MakeLogger() zerolog.Logger + func (r *Runtime) Run(runnerCtx context.Context) error + type State struct + Pipeline struct{ ... } + Process *backend.State + type StepBuilder struct + Curr *model.Pipeline + Envs map[string]string + Forge metadata.ServerForge + Last *model.Pipeline + Link string + Netrc *model.Netrc + Regs []*model.Registry + Repo *model.Repo + Secs []*model.Secret + Yamls []*forge_types.FileMeta + func (b *StepBuilder) Build() ([]*Item, error) + type TraceFunc func(*State) error + func (f TraceFunc) Trace(state *State) error + type Tracer interface + Trace func(*State) error Other modules containing this package go.woodpecker-ci.org/woodpecker/v2 go.woodpecker-ci.org/woodpecker/v3