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.