Documentation ¶
Index ¶
- type Client
- type JSONClient
- func (c *JSONClient) CreateReport(repo string, flaky []string, writeFile bool) (*Report, error)
- func (c *JSONClient) GetFlakyTestReport(jobName, repo string, buildID int) ([]Report, error)
- func (c *JSONClient) GetFlakyTests(jobName, repo string) ([]string, error)
- func (c *JSONClient) GetReportRepos(jobName string) ([]string, error)
- type Report
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { CreateReport(repo string, flaky []string, writeFile bool) (*Report, error) GetFlakyTests(jobName, repo string) ([]string, error) GetReportRepos(jobName string) ([]string, error) GetFlakyTestReport(jobName, repo string, buildID int) ([]Report, error) }
JSONClient contains the set of operations a JSON reporter needs
func Initialize ¶
Initialize wraps prow's init, which must be called before any other prow functions are used.
type JSONClient ¶
type JSONClient struct{}
Client is simply a way to call methods, it does not contain any data itself
func (*JSONClient) CreateReport ¶
CreateReport generates a flaky report for a given repository, and optionally writes it to disk.
func (*JSONClient) GetFlakyTestReport ¶
func (c *JSONClient) GetFlakyTestReport(jobName, repo string, buildID int) ([]Report, error)
GetFlakyTestReport collects flaky test reports from the given buildID and repo. Use repo = "" to get reports from all repositories, and buildID = -1 to get the most recent report
func (*JSONClient) GetFlakyTests ¶
func (c *JSONClient) GetFlakyTests(jobName, repo string) ([]string, error)
GetFlakyTests gets the latest flaky tests from the given repo
func (*JSONClient) GetReportRepos ¶
func (c *JSONClient) GetReportRepos(jobName string) ([]string, error)
GetReportRepos gets all of the repositories where we collect flaky tests.