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
AdoptRunning resumes polling pipelines whose handles were persisted by a previous instance. Handles of other executors are left alone; corrupt ones are deleted.
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).