tjcancel

package
v0.0.0-...-053b097 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package tjcancel contains code in charge of cancelling stale tryjobs.

Cancellator responds to tasks scheduled when a new patch is uploaded, looking for and cancelling stale tryjobs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cancellator

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

Cancellator is patterned after Updater to support multiple tryjob backends.

func NewCancellator

func NewCancellator(tn *tryjob.Notifier) *Cancellator

func (*Cancellator) RegisterBackend

func (c *Cancellator) RegisterBackend(b cancellatorBackend)

RegisterBackend registers a backend.

Panics if backend for the same kind is already registered.

Jump to

Keyboard shortcuts

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