Documentation
¶
Index ¶
- Constants
- func ConvertTestReport(xmlReport junitxml.TestReport, job JobReference) (TestReport, []TestSuite, []TestCase)
- type CoverageClass
- type CoverageClassReference
- type CoverageLine
- type CoverageMethod
- type CoveragePackage
- type CoveragePackageReference
- type CoverageReport
- type CoverageReportReference
- type CoverageSource
- type Deployment
- type Environment
- type EnvironmentReference
- type Issue
- type IssueSeverity
- type IssueState
- type IssueType
- type Job
- type JobArtifact
- type JobKind
- type JobLogProperty
- type JobReference
- type MergeRequest
- type MergeRequestDiffRefs
- type MergeRequestDiffStats
- type MergeRequestNoteEvent
- type MergeRequestParticipants
- type MergeRequestReference
- type Metric
- type MilestoneReference
- type NamespaceReference
- type Pipeline
- type PipelineReference
- type Project
- type ProjectReference
- type ProjectStatistics
- type Runner
- type RunnerAccessLevel
- type RunnerReference
- type RunnerStatus
- type RunnerType
- type Section
- type TestCase
- type TestCaseStatus
- type TestProperty
- type TestReport
- type TestReportReference
- type TestSuite
- type TestSuiteReference
- type UserReference
Constants ¶
View Source
const ( TestCaseStatusFailed = "failed" TestCaseStatusError = "error" TestCaseStatusSkipped = "skipped" TestCaseStatusSuccess = "success" )
Variables ¶
This section is empty.
Functions ¶
func ConvertTestReport ¶
func ConvertTestReport(xmlReport junitxml.TestReport, job JobReference) (TestReport, []TestSuite, []TestCase)
Types ¶
type CoverageClass ¶
type CoverageClassReference ¶
type CoverageClassReference struct {
Id string
Name string
Package CoveragePackageReference
}
type CoverageLine ¶
type CoverageMethod ¶
type CoveragePackage ¶
type CoveragePackageReference ¶
type CoveragePackageReference struct {
Id string
Name string
Report CoverageReportReference
}
type CoverageReport ¶
type CoverageReportReference ¶
type CoverageReportReference struct {
Id string
Job JobReference
}
type CoverageSource ¶
type CoverageSource struct {
Report CoverageReportReference
Path string
}
type Deployment ¶
type Deployment struct {
Id int64
Iid int64
Job JobReference
Triggerer UserReference
Environment EnvironmentReference
CreatedAt *time.Time
FinishedAt *time.Time
UpdatedAt *time.Time
Status string
Ref string
Sha string
}
type Environment ¶
type EnvironmentReference ¶
type EnvironmentReference struct {
Id int64
Name string
Tier string
Project ProjectReference
}
type Issue ¶ added in v0.18.0
type Issue struct {
Id int64
Iid int64
Project ProjectReference
CreatedAt *time.Time
UpdatedAt *time.Time
ClosedAt *time.Time
Title string
Labels []string
Type IssueType
Severity IssueSeverity
State IssueState
}
type IssueSeverity ¶ added in v0.18.0
type IssueSeverity string
const ( IssueSeverityUnspecified IssueSeverity = "" IssueSeverityCritical IssueSeverity = "CRITICAL" IssueSeverityHigh IssueSeverity = "HIGH" IssueSeverityLow IssueSeverity = "LOW" IssueSeverityMedium IssueSeverity = "MEDIUM" IssueSeverityUnknown IssueSeverity = "UNKNOWN" )
type IssueState ¶ added in v0.18.0
type IssueState string
const ( IssueStateUnknown IssueState = "" IssueStateOpened IssueState = "opened" IssueStateClosed IssueState = "closed" IssueStateLocked IssueState = "locked" IssueStateAll IssueState = "all" )
type IssueType ¶ added in v0.18.0
type IssueType string
const ( IssueTypeUnspecified IssueType = "" IssueTypeEpic IssueType = "EPIC" // (experimental) introduced in 16.7 IssueTypeIncident IssueType = "INCIDENT" IssueTypeIssue IssueType = "ISSUE" IssueTypeKeyResult IssueType = "KEY_RESULT" // (experimental) introduced in 15.7 IssueTypeObjective IssueType = "OBJECTIVE" // (experimental) introduced in 15.6 IssueTypeRequirement IssueType = "REQUIREMENT" IssueTypeTask IssueType = "TASK" IssueTypeTestCase IssueType = "TEST_CASE" IssueTypeTicket IssueType = "TICKET" IssueTypeUnknown IssueType = "UNKNOWN" )
type Job ¶
type Job struct {
Id int64
Name string
Pipeline PipelineReference
Ref string
RefPath string
Status string
FailureReason string
CreatedAt *time.Time
QueuedAt *time.Time
StartedAt *time.Time
FinishedAt *time.Time
ErasedAt *time.Time
QueuedDuration time.Duration
Duration time.Duration
Coverage float64
Stage string
Tags []string
Properties []JobLogProperty
ExitCode int64
AllowFailure bool
Manual bool
Retried bool
Retryable bool
Kind JobKind
DownstreamPipeline *PipelineReference
Runner RunnerReference
}
type JobArtifact ¶
type JobArtifact struct {
Job JobReference
FileType string
Name string
DownloadPath string
}
type JobLogProperty ¶ added in v0.17.0
type JobReference ¶
type JobReference struct {
Id int64
Name string
Pipeline PipelineReference
}
type MergeRequest ¶
type MergeRequest struct {
Id int64
Iid int64
Project ProjectReference
CreatedAt *time.Time
UpdatedAt *time.Time
MergedAt *time.Time
ClosedAt *time.Time
Name string
Title string
Labels []string
State string
MergeStatus string
MergeError string
SourceProjectId int64
SourceBranch string
TargetProjectId int64
TargetBranch string
DiffStats MergeRequestDiffStats
DiffRefs MergeRequestDiffRefs
Participants MergeRequestParticipants
Approved bool
Conflicts bool
Draft bool
Mergeable bool
UserNotesCount int64
Milestone *MilestoneReference
}
type MergeRequestDiffRefs ¶
type MergeRequestDiffStats ¶
type MergeRequestNoteEvent ¶
type MergeRequestNoteEvent struct {
Id int64
MergeRequest MergeRequestReference
CreatedAt *time.Time
UpdatedAt *time.Time
Type string
System bool
Internal bool
Author UserReference
Resolvable bool
Resolved bool
ResolvedAt *time.Time
Resolver UserReference
}
type MergeRequestParticipants ¶
type MergeRequestParticipants struct {
Author UserReference
Assignees []UserReference
Reviewers []UserReference
Approvers []UserReference
MergeUser UserReference
}
type MergeRequestReference ¶
type MergeRequestReference struct {
Id int64
Iid int64
Project ProjectReference
}
type MilestoneReference ¶
type MilestoneReference struct {
Id int64
Iid int64
Project ProjectReference
}
type NamespaceReference ¶
type Pipeline ¶
type Pipeline struct {
Id int64
Iid int64
Project ProjectReference
Name string
Ref string
RefPath string
Sha string
Source string
Status string
FailureReason string
CommittedAt *time.Time
CreatedAt *time.Time
UpdatedAt *time.Time
StartedAt *time.Time
FinishedAt *time.Time
QueuedDuration time.Duration
Duration time.Duration
Coverage float64
Warnings bool
YamlErrors bool
Child bool
UpstreamPipeline *PipelineReference
DownstreamPipelines []*PipelineReference
MergeRequest *MergeRequestReference
User UserReference
}
type PipelineReference ¶
type PipelineReference struct {
Id int64
Iid int64
Project ProjectReference
}
type ProjectReference ¶
type ProjectStatistics ¶
type Runner ¶ added in v0.22.0
type Runner struct {
Id int64
ShortSha string
Description string
RunnerType RunnerType
TagList []string
Status RunnerStatus
Locked bool
Paused bool
RunProtected bool
RunUntagged bool
CreatedAt *time.Time
ContactedAt *time.Time
CreatedBy UserReference
}
type RunnerAccessLevel ¶ added in v0.22.0
type RunnerAccessLevel string
const ( RunnerAccessLevelNotProtected RunnerAccessLevel = "NOT_PROTECTED" RunnerAccessLevelRefProtected RunnerAccessLevel = "REF_PROTECTED" RunnerAccessLevelUnknown RunnerAccessLevel = "UNKNOWN" )
type RunnerReference ¶ added in v0.22.0
type RunnerStatus ¶ added in v0.22.0
type RunnerStatus string
const ( // Runner that contacted the instance within the last 2 hours. RunnerStatusOnline RunnerStatus = "ONLINE" // Runner that has not contacted the instance within the last 2 hours. RunnerStatusOffline RunnerStatus = "OFFLINE" // Runner that has not contacted the instance within the last 7 days. RunnerStatusStale RunnerStatus = "STALE" // Runner that has never contacted the instance. RunnerStatusNeverContacted RunnerStatus = "NEVER_CONTACTED" // Unknown runner status. RunnerStatusUnknown RunnerStatus = "UNKNOWN" )
type RunnerType ¶ added in v0.22.0
type RunnerType string
const ( RunnerTypeInstance RunnerType = "INSTANCE" RunnerTypeGroup RunnerType = "GROUP" RunnerTypeProject RunnerType = "PROJECT" RunnerTypeUnknown RunnerType = "UNKNOWN" )
type TestCaseStatus ¶
type TestCaseStatus string
type TestProperty ¶
type TestReport ¶
type TestReportReference ¶
type TestReportReference struct {
Id string
Job JobReference
}
type TestSuiteReference ¶
type TestSuiteReference struct {
Id string
TestReport TestReportReference
}
type UserReference ¶
Click to show internal directories.
Click to hide internal directories.