Documentation
¶
Index ¶
- Constants
- func ConvertDeployment(dep Deployment) *typespb.Deployment
- func ConvertEnvironmentReference(env EnvironmentReference) *typespb.EnvironmentReference
- func ConvertJob(job Job) *typespb.Job
- func ConvertJobReference(job JobReference) *typespb.JobReference
- func ConvertMergeRequest(mr MergeRequest) *typespb.MergeRequest
- func ConvertMergeRequestNoteEvent(event MergeRequestNoteEvent) *typespb.MergeRequestNoteEvent
- func ConvertMergeRequestReference(mr MergeRequestReference) *typespb.MergeRequestReference
- func ConvertMetric(metric Metric) *typespb.Metric
- func ConvertPipeline(pipeline Pipeline) *typespb.Pipeline
- func ConvertPipelineReference(pipeline PipelineReference) *typespb.PipelineReference
- func ConvertProject(p Project) *typespb.Project
- func ConvertProjectReference(project ProjectReference) *typespb.ProjectReference
- func ConvertSection(section Section) *typespb.Section
- func ConvertTestCase(testCase TestCase) *typespb.TestCase
- func ConvertTestReport(testReport TestReport) *typespb.TestReport
- func ConvertTestReportReference(testReport TestReportReference) *typespb.TestReportReference
- func ConvertTestSuite(testSuite TestSuite) *typespb.TestSuite
- func ConvertTestSuiteReference(testSuite TestSuiteReference) *typespb.TestSuiteReference
- func ConvertUserReference(user UserReference) *typespb.UserReference
- func JobSpan(job Job) *tracepb.Span
- func NewResourceSpan(attrs map[string]string, spans []*tracepb.Span) *tracepb.ResourceSpans
- func PipelineSpan(pipeline Pipeline) *tracepb.Span
- func SectionSpan(section Section) *tracepb.Span
- type Deployment
- type Environment
- type EnvironmentReference
- type Job
- type JobArtifact
- type JobKind
- 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 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 ConvertDeployment ¶ added in v0.14.0
func ConvertDeployment(dep Deployment) *typespb.Deployment
func ConvertEnvironmentReference ¶ added in v0.14.0
func ConvertEnvironmentReference(env EnvironmentReference) *typespb.EnvironmentReference
func ConvertJob ¶
func ConvertJobReference ¶ added in v0.10.0
func ConvertJobReference(job JobReference) *typespb.JobReference
func ConvertMergeRequest ¶
func ConvertMergeRequest(mr MergeRequest) *typespb.MergeRequest
func ConvertMergeRequestNoteEvent ¶ added in v0.10.0
func ConvertMergeRequestNoteEvent(event MergeRequestNoteEvent) *typespb.MergeRequestNoteEvent
func ConvertMergeRequestReference ¶ added in v0.10.0
func ConvertMergeRequestReference(mr MergeRequestReference) *typespb.MergeRequestReference
func ConvertMetric ¶ added in v0.10.0
func ConvertPipeline ¶
func ConvertPipelineReference ¶ added in v0.10.0
func ConvertPipelineReference(pipeline PipelineReference) *typespb.PipelineReference
func ConvertProject ¶
func ConvertProjectReference ¶ added in v0.10.0
func ConvertProjectReference(project ProjectReference) *typespb.ProjectReference
func ConvertSection ¶ added in v0.10.0
func ConvertTestCase ¶ added in v0.10.0
func ConvertTestReport ¶
func ConvertTestReport(testReport TestReport) *typespb.TestReport
func ConvertTestReportReference ¶ added in v0.12.0
func ConvertTestReportReference(testReport TestReportReference) *typespb.TestReportReference
func ConvertTestSuite ¶ added in v0.10.0
func ConvertTestSuiteReference ¶ added in v0.12.0
func ConvertTestSuiteReference(testSuite TestSuiteReference) *typespb.TestSuiteReference
func ConvertUserReference ¶ added in v0.10.0
func ConvertUserReference(user UserReference) *typespb.UserReference
func NewResourceSpan ¶ added in v0.10.0
func PipelineSpan ¶ added in v0.10.0
func SectionSpan ¶ added in v0.10.0
Types ¶
type Deployment ¶ added in v0.14.0
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 ¶ added in v0.14.0
type EnvironmentReference ¶ added in v0.14.0
type EnvironmentReference struct { Id int64 Name string Tier string Project ProjectReference }
type Job ¶ added in v0.10.0
type Job struct { Id int64 Name string Pipeline PipelineReference Ref 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 AllowFailure bool Manual bool Retried bool Retryable bool Kind JobKind DownstreamPipeline *PipelineReference RunnerId string }
type JobArtifact ¶ added in v0.12.0
type JobArtifact struct { Job JobReference FileType string Name string DownloadPath string }
type JobReference ¶ added in v0.10.0
type JobReference struct { Id int64 Name string Pipeline PipelineReference }
type MergeRequest ¶ added in v0.10.0
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 ¶ added in v0.10.0
type MergeRequestDiffStats ¶ added in v0.10.0
type MergeRequestNoteEvent ¶ added in v0.10.0
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 ¶ added in v0.10.0
type MergeRequestParticipants struct { Author UserReference Assignees []UserReference Reviewers []UserReference Approvers []UserReference MergeUser UserReference }
type MergeRequestReference ¶ added in v0.10.0
type MergeRequestReference struct { Id int64 Iid int64 Project ProjectReference }
type MilestoneReference ¶ added in v0.10.0
type MilestoneReference struct { Id int64 Iid int64 Project ProjectReference }
type NamespaceReference ¶ added in v0.10.0
type Pipeline ¶ added in v0.10.0
type Pipeline struct { Id int64 Iid int64 Project ProjectReference Name string Ref 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 MergeRequest *MergeRequestReference User UserReference }
type PipelineReference ¶ added in v0.10.0
type PipelineReference struct { Id int64 Iid int64 Project ProjectReference }
type ProjectReference ¶ added in v0.10.0
type ProjectStatistics ¶ added in v0.10.0
type TestCaseStatus ¶ added in v0.12.0
type TestCaseStatus string
type TestProperty ¶ added in v0.12.0
type TestReport ¶ added in v0.10.0
type TestReportReference ¶ added in v0.12.0
type TestReportReference struct { Id string Pipeline PipelineReference }
type TestSuiteReference ¶ added in v0.12.0
type TestSuiteReference struct { Id string TestReport TestReportReference }
type UserReference ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.