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.
Click to show internal directories.
Click to hide internal directories.