executor

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package executor defines how renovate runs are started and awaited; implementations live in the subpackages gitlabci, kubernetes and docker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adoptable

type Adoptable interface {
	AdoptRunning(ctx context.Context) ([]AdoptedRun, error)
}

Adoptable is implemented by executors that can re-attach to runs already in flight after a server restart.

type AdoptedRun

type AdoptedRun struct {
	Repo platform.Repo
	Wait func(ctx context.Context) error
}

AdoptedRun is an in-flight run discovered at startup.

type Executor

type Executor interface {
	Name() string
	// Run executes renovate for spec and blocks until the run finishes.
	// Implementations MUST honor ctx cancellation: the dispatcher enforces
	// the global run timeout through ctx.
	Run(ctx context.Context, spec RunSpec) error
}

Executor starts renovate runs.

type RunSpec

type RunSpec struct {
	Repo   platform.Repo
	Reason platform.Reason
}

RunSpec describes a single renovate run.

Directories

Path Synopsis
Package docker runs renovate as containers against a local Docker daemon.
Package docker runs renovate as containers against a local Docker daemon.
Package gitlabci runs renovate by triggering a pipeline in a central GitLab project and polling it to completion.
Package gitlabci runs renovate by triggering a pipeline in a central GitLab project and polling it to completion.
Package kubernetes runs renovate as Kubernetes Jobs and can re-adopt running Jobs after a server restart via labels.
Package kubernetes runs renovate as Kubernetes Jobs and can re-adopt running Jobs after a server restart via labels.
Package noop provides a shadow-mode executor: it accepts runs, logs the decision and does nothing.
Package noop provides a shadow-mode executor: it accepts runs, logs the decision and does nothing.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL