Documentation
¶
Index ¶
Constants ¶
View Source
const DefaulMaxReports = 100
View Source
const GitSummaryFileName = "git.json"
View Source
const HeaderAPIKey = "X-API-Key"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BundleOptions ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCollector ¶
type GitSummary ¶
type GitSummary struct {
DiffStat *git.DiffStat `json:"diffStat"`
CommitFiles []git.CommitFile `json:"commitFiles"`
}
type PredictOptions ¶
type RunEnv ¶
type RunEnv struct {
ActorName string
CIProviderName client.CIProviderName
GitRef string
GitRefName string
GitRepo string
GitSha string
Group string
RunAttempt int
RunId int
RunNumber int
CIEnv *map[string]interface{}
}
func (RunEnv) RunRequest ¶
func (env RunEnv) RunRequest() client.CIRunRequest
type UploadOptions ¶
type UploadOptions struct {
// Repo is the path to the git repository directory.
Repo string
// Reports is the path to the JUnit reports directory.
Reports string
// Started is the start time of the run. If nil, `NOW()` is returned from
// the API.
Started *time.Time
// MaxReports is the maximum number of reports that can be found in the
// reports directory. If it exceeds the threshold, an error is returned.
//
// If omitted (or zero), DefaulMaxReports is used.
MaxReports int
// Debug enables verbose log messages. By default (false), only messages
// with level info are visible.
Debug bool
// Client is the used HTTP client for all API requests.
Client *http.Client
}
Click to show internal directories.
Click to hide internal directories.