gitlabci

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: 11 Imported by: 0

Documentation

Overview

Package gitlabci runs renovate by triggering a pipeline in a central GitLab project and polling it to completion.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor struct {
	// contains filtered or unexported fields
}

Executor triggers pipelines in a central GitLab project.

func New

func New(cfg config.Executor, client *gogitlab.Client, handles HandleStore, log *slog.Logger) (*Executor, error)

New builds a gitlabPipeline Executor; variable templates are parsed and validated here so bad templates fail at startup. handles may be nil to disable run persistence (no re-adoption after restarts).

func (*Executor) AdoptRunning added in v0.4.0

func (e *Executor) AdoptRunning(_ context.Context) ([]executor.AdoptedRun, error)

AdoptRunning resumes polling pipelines whose handles were persisted by a previous instance. Handles of other executors are left alone; corrupt ones are deleted.

func (*Executor) Name

func (e *Executor) Name() string

Name returns the executor's configured name.

func (*Executor) Run

func (e *Executor) Run(ctx context.Context, spec executor.RunSpec) error

Run triggers the pipeline with rendered variables and polls it until a terminal status or ctx cancellation.

type HandleStore added in v0.4.0

type HandleStore interface {
	SaveRunHandle(key, data string)
	LoadRunHandles() map[string]string
	DeleteRunHandle(key string)
}

HandleStore persists active-run state so pipelines can be re-adopted after a restart. Satisfied by store.Store; may be nil (no persistence).

Jump to

Keyboard shortcuts

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