clpurger

package
v0.0.0-...-797cded Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package clpurger purges CLs with a trigger for which Runs can't be started.

Index

Constants

This section is empty.

Variables

View Source
var NoNotification = &prjpb.PurgingCL_Notification{}

NoNotification indicates that no notification should be sent for the purging task on a given CL.

this is just for readability.

Functions

This section is empty.

Types

type Purger

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

Purger purges CLs for Project Manager.

func New

func New(n *prjmanager.Notifier, g gerrit.Factory, u clUpdater, clm *changelist.Mutator) *Purger

New creates a Purger and registers it for handling tasks created by the given PM Notifier.

func (*Purger) PurgeCL

func (p *Purger) PurgeCL(ctx context.Context, task *prjpb.PurgeCLTask) error

PurgeCL purges a CL and notifies PM on success or failure.

func (*Purger) Schedule

func (p *Purger) Schedule(ctx context.Context, t *prjpb.PurgeCLTask) error

Schedule enqueues a task to purge a CL for immediate execution.

Jump to

Keyboard shortcuts

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