reporter

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MultiBefore  = "before"
	MutliPartial = "partial"
	MultiAfter   = "after"
)
View Source
const IdempotencyKeyHeader = "Idempotency-Key"
View Source
const MultiErrorMessage = `` /* 474-byte string literal not displayed */

Variables

This section is empty.

Functions

func GitBranchFromInfo

func GitBranchFromInfo(info string) string

func NewSender

func NewSender(logger *logrus.Logger) sender

func SearchReportFiles

func SearchReportFiles(pattern string) ([]string, error)

Types

type RequestData

type RequestData struct {
	RunData   [][]byte `json:"run"`
	Filenames []string `json:"file_names"`
	Multi     string   `json:"multi"`

	Hostname        string            `json:"hostname"`
	ReporterVersion string            `json:"reporter_version"`
	Flags           map[string]string `json:"flags"`

	Branch string `json:"branch"`
	SHA    string `json:"sha"`
	Tag    string `json:"tag"`
	PR     string `json:"pr"`

	Slug        string `json:"slug"`
	CIName      string `json:"ci_name"`
	BuildNumber string `json:"build_number"`
	BuildURL    string `json:"build_url"`
	Job         string `json:"job"`
}

type RequestPayload

type RequestPayload struct {
	IdempotencyKey string
	UploadToken    string
	Filename       string

	RequestData RequestData

	Logger *logrus.Logger

	Vendor ci.IVendor
}

func (RequestPayload) FailureCount

func (r RequestPayload) FailureCount() (int, bool)

func (*RequestPayload) GetBranch

func (r *RequestPayload) GetBranch()

func (*RequestPayload) GetBuildNumber

func (r *RequestPayload) GetBuildNumber()

func (*RequestPayload) GetBuildURL

func (r *RequestPayload) GetBuildURL()

func (*RequestPayload) GetHostname

func (r *RequestPayload) GetHostname()

func (*RequestPayload) GetRunData

func (r *RequestPayload) GetRunData()

func (*RequestPayload) GetSHA

func (r *RequestPayload) GetSHA()

func (*RequestPayload) GetUploadToken

func (r *RequestPayload) GetUploadToken()

func (*RequestPayload) GetVendor

func (r *RequestPayload) GetVendor()

func (*RequestPayload) Setup

func (r *RequestPayload) Setup()

Jump to

Keyboard shortcuts

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