Documentation ¶
Index ¶
- Constants
- func GitBranchFromInfo(info string) string
- func NewSender(logger *logrus.Logger) sender
- func SearchReportFiles(pattern string) ([]string, error)
- type RequestData
- type RequestPayload
- func (r RequestPayload) FailureCount() (int, bool)
- func (r *RequestPayload) GetBranch()
- func (r *RequestPayload) GetBuildNumber()
- func (r *RequestPayload) GetBuildURL()
- func (r *RequestPayload) GetHostname()
- func (r *RequestPayload) GetRunData()
- func (r *RequestPayload) GetSHA()
- func (r *RequestPayload) GetUploadToken()
- func (r *RequestPayload) GetVendor()
- func (r *RequestPayload) Setup()
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 SearchReportFiles ¶
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()
Click to show internal directories.
Click to hide internal directories.