clpurger

package
v0.0.0-...-51f9457 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 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

This section is empty.

Functions

This section is empty.

Types

type Purger

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

Purger purges CLs for Project Manager.

func New

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