reporter

package
v0.0.0-...-185445a Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package reporter implements a reporter interface for gerrit

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a gerrit reporter client

func NewReporter

func NewReporter(cookiefilePath string, projects map[string][]string, lister pjlister.ProwJobLister) (*Client, error)

NewReporter returns a reporter client

func (*Client) GetName

func (c *Client) GetName() string

GetName returns the name of the reporter

func (*Client) Report

func (c *Client) Report(pj *v1.ProwJob) error

Report will send the current prowjob status as a gerrit review

func (*Client) ShouldReport

func (c *Client) ShouldReport(pj *v1.ProwJob) bool

ShouldReport returns if this prowjob should be reported by the gerrit reporter

Jump to

Keyboard shortcuts

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